text stringlengths 8 267k | meta dict |
|---|---|
Q: asp.net mvc action result and count question I am working on a plugin based architecture. Its kind of social networking site.
For a user, I can have pictures, blogs, videos. but they all come from modules.
So, when you visit a user profile, you see tabs, saying pictures, videos and other things.
I have an interface... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562905",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make sure a thread gets the most recent variables modified by another thread? Ok, so I am making a 2D game, and all the map is represented in a 2D Array. I have this huge methods that modifies the map based on what is already in the map. So after a while implementing features, the FPS is lowering, so I decide... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: In SQL Server Reporting Services, how do I limit Previous function's scope to a group? I am working on a report that gets, for example purpose, 5 columns from database.
Lets say ProductionCountry, Industry, ProductGroup, ProductId, Price.
I am grouping them on ProductionCountry, Industry and ProductGroup.
Visually i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562908",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: replace all occurences of "\x0d" in a Java String
Possible Duplicate:
How do I replace a character in a string in Java?
how can i replace all occurences of '\x0d' in a Java String??
*
*I have tried myString.replaceAll("\x0d", "")... does not works
and all the answers below does not work have tried that alrea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Session variable is lost on RedirectToAction in IE My .NET MVC3 website is being loaded through an iframe on the parent website. They GET a controller's action on my website with certain parameters in the query string. My action validates these parameters, stores them in session and does RedirectToAction() to a di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Better Way to Pass Data from child to parent in UINavigationController, and modal presentations: reference to parent or delegates? So lately I have been trying ways to pass data from a child to a parent view controller. I have settled with two. The delegates approach:
http://timneill.net/2010/11/modal-view-controlle... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Scope_Identity() returning incorrect value fixed? I've been searching hi and low for an answer to this and figured I would turn to the stackoverflow community. I have been avoiding using type identity id fields fields within sql server and nhibernate due to this bug: http://connect.microsoft.com/SQLServer/feedback/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Re-enable radio inputs with a clear function I've tried a number of different things, including typical form reset and jQuery examples I've found across the web with no luck.
Screenshot:
The Goal:
I have a rankable list where a user is expected to rank items from 1-6 according to importance to them. If they select ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to dynamically change the Spinner's items I have two spinners. Country and City.
I want to dynamically change the City's values upon Country selection.
I know how to create and initialize the values of Country but don't know how to set and change the City's values.
Any guidance is appreciated.
UPDATES1
The probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Memory-optimizing recursive calls in C I have a recursive function which can be written like:
void func(TypeName *dataStructure, LL_Node **accumulator) {
func(datastructure->left, accumulator);
func(datastructure->right, accumulator);
{
char buffer[1000];
// do some stuff
}
retu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562936",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: how should I go about making many reports in the same ruby application I am making an app that contains a lot of information the few users will want to have reports against. I might write 10 different reports against the 3 tables involved. Should I create multiple methods on a report_controller to access each repo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ParVector map is not running in parallel I have a bit of code like:
val data = List(obj1, obj2, obj3, obj4, ...).par.map { ... }
and the ParVector is roughly 12 elements large. I noticed that all of my work is being done in the main thread so I traced down the stacktrace and found that in the following line (in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: CSS is not working for links I can not figure out why the below css will not do what it appears to do, if anyone can explain why or help show what I am doing wrong, would greatly appreciate.
<style>
.button-blue a:link{
text-decoration: underline overline; color: red!;
background: #55a4f2!;
padding: 12px ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: is there an "onAnything" javascript event? have dumb question.
Here I've got three events calling the same function, connected to the same <div>:
<html>
<head>
<script type='text/javascript'>
function universal_action_handler( event ) {
var eType = event.type;
var eTarget = event.target || event.srcElement;
co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Modulo doesn't work I know this will seem like a really stupid question, but I just don't get why this isn't working. This:
System.out.println(5 % .10);
And it's returning:
0.09999999999999973
I really have NO IDEA. I'm just learning Java, and I'm pretty good with C#, so I tried with C# to. C# seemed to return th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Uneven axis in R plot Is it possible to draw an uneven axis in R? I know that I can specify labels at specific spots, but I mean, I want a particular section of my graph to be spread out. For instance, imagine an X axis such as:
-10 -5 0 1 2 3 4 5 10
where there is equal spacing between each of the above values.
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Converting large numbers to String format for comparison I am trying to compare numbers that are so large that even BigIntegers cannot deal with them. My solution is to convert the numbers to Strings and use String comparison on them.
Will this work? I am not really sure how to implement something like this. I am ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What does this statement mean in C? I am trying to understand the piece of code written in C and not sure I understand it fully.
Here is the function written in C:
int
gsl_multimin_diff (const gsl_multimin_function * f,
const gsl_vector * x, gsl_vector * g)
{
size_t i, n = f->n;
double h = GS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android - how to create music note sound? Folks,
In my android app, I need to display a musical instrument such that the user (mostly children) could press a key and I play the music note through the speaker.
I am trying to understand what it takes to generate a music note under Android. The examples on sound that I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562960",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using ClientSideValidations gem inside ajax rendered partial I am currently using the ClientSideValidations gem and stuck while rendering a partial using ajax and trying to validate addresses inside that rendered partial with the gem mentioned above. Nothing happens when entering a wrong combination specified in the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: converting existing web project using maven I have been trying to convert a web project that produces a war file to maven. my existing project structure is as follows -
MyWebProject
|
-- WEB-INF/src - contains a bunch of packages like com.myweb.client, com.myweb.server etc
-- WEB-INF/test - contains 1 package com.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: sending cross-domain messages via PHP and JSON Ok, so I am building a CMS one of the features I wanted to add is ability for me to send messages to my friends which are also using the CMS currently in development mode. This point of the idea is to allow more fluent communication between me and them, since e-mail can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562967",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Varbinary text representation to byte[] In C#, how can I take the textual output that SQL Server Management Studio shows as the contents of a varbinary column, and turn that text into the byte[] that is stored in the column?
A: SqlConnection conn = new SqlConnection(yourConnectionString);
SqlCommand cmd = n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "18"
} |
Q: How to keep a JButton pressed after its JPanel loses focus I have found how to keep a JButton in its pressed state using this code:
JButton[] buttons;
.
.
.
public void actionPerformed(ActionEvent e)
{
for(int i = 0; i < buttons.length; i++)
{
if(e.getSource() == buttons[i])
{
bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: ListBox items as AutoCompleteCustomSource for a textbox I have populated some items into a listbox using the datasource property. Now I need to set the AutoCompleteCustomSource for a textBox from the items listed in the listbox. Precisely, the DataSource for the ListBox and the AutoCompleteCustomSource for the textB... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to access this json data with JavaScript / Ajax? {"4255":"Alpine 50W x 4 Apple® iPod®-Ready In-Dash CD Deck","4254":"Alpine 50W x 4 In-Dash CD Deck with Detachable Faceplate","4251":"Alpine 50W x 4 Apple® iPod®-/Satellite Radio-/HD Radio-Ready Marine CD Deck","4256":"Alpine 50W x 4 Apple® iPod®-Re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Upgrade Current Target to IPhone Not IPad I currently have an ipad app and would now like to turn it into a universal app for both iPad and iPhone. The problem is I cant seem to find the feature to upgrade my iPad app to universal. There is an option to go from iPhone to iPad but not the other way around.
Any ideas?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562992",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Are the MIT Introduction to C++ lecture notes any good? I've been wondering if these lecture notes from an Introduction to C++ course are good material for me to learn the language.
Does this material contain any gross factual errors in it? Will I learn some concepts in a wrong way with them? Will I get any bad prac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7562994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calculating shipping & handling - JavaScript I'm trying to accomplish the following problem:
Many companies normally charge a shipping and handling charge for purchases. Create a Web page that allows a user to enter a purchase price into a text box and includes a JavaScript function that calculates shipping and han... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563003",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WAS server - attach policy set to a single JAX-WS client I have a java project (*.jar) that has code for 10 JAX-WS clients. One of the clients uses WS-Security and needs policy set/bindings to be attached to it. Remaining nine clients use plain HTTP without any security to invoke respective services.
I used instruc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I simulate ctrl-F5 with jQuery? So the refresh should discard the cache, how to do it with jQuery?
A: The ability to modify the browser cache is outside the scope of what jQuery can do.
A: This won't be possible.
Just increment the version number to your javascript reference like this every time you wish to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: JPA/hibernate order by subclass attribute Is it possible to query for entities of a base class, but order by an attribute of a subclass?
For example, (JPA annotations omitted)
class Base
{
int base;
}
class SubA extends Base
{
int subA;
}
class SubB extends Base
{
int subB;
}
and assume that the database... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ascii character not showing in browser I have an MVC Razor view
@{
ViewBag.Title = "Index";
var c = (char)146;
var c2 = (short)'’';
}
<h2>@c --- @c2 --’-- ‘Why Oh Why’ & ’</h2>
@String.Format("hi {0} there", (char)146)
characters stored in my database in varchar fields are not rendering to the browser.
This e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563014",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Linq to XML, get parents when a child satisfy condition I need some help. I have this xml document:
<?xml version="1.0" encoding="utf-8"?>
<MyItems>
<Parent upc="A00000000000000000000001" sku="" archivo="pantalon1.jpg">
<Child upc="101" sku="" archivo="image##.jpg">
<GrandChild archivo="im... | {
"language": "es",
"url": "https://stackoverflow.com/questions/7563020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: NullPointerException in Android onClick ERROR/AndroidRuntime(545): at no.jarle.f02.myActivity.onClick(myActivity.java:38)
public void onClick( View v )
{
tvTextView.setText(editText1.getText()); <--- line 38
}
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563022",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Javascript to remove text I am trying to remove the text, "Hi Mom" from an html page using javascript after it loads.
I can not use any framework like jQuery.
I can use the DOM, but will not know where it is, other than it's wrapped in a tag somewhere.
Can this be done in plain old Javascript?
A: Here's a pretty s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WindowsImagingComponent or System.Windows.Media.Imaging I need to work with some bitmaps in managed code and save them as PNG files. Should I use Microsoft.WindowsAPICodePack.DirectX.WindowsImagingComponent, or System.Windows.Media.Imaging? They both seem very similar, and I'm not sure why I would choose one over th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: oodle.com API - Use it with PHP? I am working on a web-application using PHP/Ajax , It include an RSS aggregator of blog posts , I want to add a new functionality that gives us the ability to post into oodle or vast.
I tried to integrate the oodle.com API with PHP but I didn't find enough support .
http://www.oodle.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Putting $variable string into "string" I have question because i think i doing unnecessary job.
e.g.
$phone = "222-333-444"
echo "Phone number is " . $phone;
$phone['2'] = "222-333-444"
echo "Phone number is " . $phone['2'];
Please explain is there ANY ANY ANY reason to do it the way above rather than"
$phone = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: I have to make public URLs for private actions? Lets say I have a website where I allow users to perform actions (communicate, post photos, etc) on their friends on my site (they are friends on Facebook). This is private information between User A and User B.
Before the new Open Graph [beta] I would encode as much i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Can I add a newline and an HTML link in UITextView? Messing about with interface builder for the first time, exploring my options. Text seems to be in one long batch--found another thread where someone was importing an SQL db, but I just want to type something with a CR. Or should I just make a new TextView item for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563045",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to recover bluetooth packet loss?? Android I'm currently creating an Android App where it collects data through bluetooth and draw a real time graph but it seems like after short while there is packet loss and graph comes out weird. I've been searching for a while how to recover the loss but seems like there is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using OUTPUT with joined tables Why doesn't the following work?
INSERT INTO dbo.Pending_Break
(Pending_Pod_ID, Break_Date_Time, Break_Length, Booked_Length)
OUTPUT INSERTED.Pending_BH_ID -- This is the inserted identity
, INSERTED.Pending_Pod_ID
, INSERTED.Break_Name
, INSERTED.Break_Da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563057",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Javascript - Input field On Change Set Cookie of Value Thanks to anyone in advance that can help me in my issue.
I'm simply trying to save the value of a form input type="text" to a cookie when the input value has changed. Think I almost had it, but I cannot get it to work.
Here is what I have so far
-This is the ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: cakephp - Unable to retrieve session in controller I am having problems with cakephp session. I created a session in my controller (users/home) then I attempted to retrieve it in another controller, but I wasn't able to get it.
Also, I created another session in another controller and was unable to retrieve it in t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how do i create all possible letter combinations with php I looked around stack overflow and couldn't find a sample on what I needed.
how would I create something like this?
so lets say i want all possible combinations of up to 5 characters.
the output would look like this:
aaaaa
aaaab
aaaac
aaaad
..etc
A: Ok, be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to calculate the number of "Tuesdays" between two dates in TSQL? I'm trying to figure out how to calculate the number of "Tuesdays" between two dates in TSQL?
"Tuesday"could be any value.
A: @t-clausen.dk & Andriy M as response to t-clausen.dks response and comments
The query uses the fact that 1900-01-01 was a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Inserting in MySQL Table Error I wonder is anyone can help me with this annoying problem. Trying to insert some data into a table. In the mean time, I want to leave out some fields and not insert something there. For some reason I'm getting Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING error. Is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using a class/struct/union over multiple cpp files C++ I am trying to create a class in C++ and be able to access elements of that class in more than one C++ file. I have tried over 7 possible senarios to resolve the error but have been unsuccessful. I have looked into class forward declaration which doesen't seem t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using hashmaps, breaking loops and user input in java I'm fairly new to programming in general and need some help.
I am using the Java.util.TimeZone to retrieve the IDs (city names) and their time zones. I am using a hashmap to implement this. I have put the city names and the time zones in the map and I am now tryi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I make instructions appear at the user's request? I need to provide information for various clients when they log in to build a profile. I will be using HTML and Javascript for this purpose. What I would like is a concise set of instructions followed by an option to show more detailed instructions. If the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563080",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Key-up event in Emacs, or poll keyboard state? In emacs is there is a way to check for a key-up event, or, alternatively, is it possible to poll the keyboard and check if a key is currently pressed?
A: Emacs elisp API don't allow you get info how long key pressed and if it still currently pressed.
Emacs work not on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Converting ^M Character to Whitespace without Line Break using PHP I'm trying to convert ^M character to a white space character, but having hard time doing this.
In PHP, I used "wb" option so, it wouldn't write DOS character into the file. fopen("file.csv", "wb")
It was successful, but still has line breaks instead... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Data constructor in template haskell I'm trying to create the ring Z/n (like normal arithmetic, but modulo some integer). An example instance is Z4:
instance Additive.C Z4 where
zero = Z4 0
(Z4 x) + (Z4 y) = Z4 $ (x + y) `mod` 4
And so on for the ring. I'd like to be able to quickly generate these things, and I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: ExtendedFormAuthenticator in JBoss 7 I'm porting a legacy application from JBoss 4.2.3 to JBoss 7 (the web profile version). They used a custom login module and used a valve to capture the login failure reason into j_exception. They did this by putting context.xml into the web-inf directory of the war, with the foll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: SQL Server: FAILING extra records I have a tableA (ID int, Match varchar, code char, status = char)
ID Match code Status
101 123 A
102 123 B
103 123 C
104 234 A
105 234 B
106 234 C
107 234 B
108 456 A
109 456 B
110 456 C
I want to populate status with 'FAIL' when:
For same match, ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I restore the files that I have deleted in Eclipse? I'm working on eclipse and sometimes I have to delete some lines of code that indeed I prefer to backup on a notepad file (because I never know if that lines of code could be useful in another moment), so I have to select all the code I have to delete, ctrl+x, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Send reminder: 2 months, 1 month and one week before expiration date I was wondering how I can send reminder to my users (via email) two months, a month and one week before their account expiration date (eg. $accountExp which is a unix timestamp)?
A: You'll need to set up a cron job to work out if an email needs to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563110",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I add a boolean column to an SQL result set based on comparison with a second table Essentially I have the first part of the question answered and here is the SQL statement I have so far...
SELECT DbaRolePrivs.GRANTEE,
DbaRolePrivs.GRANTED_ROLE,
ApplicationRoleDefinition.ROLE,
Application... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Java SQL output format table result I got everything working and it prints the right result with header (column name) and value. However I wanted to change a plain and unorganized result into a really nice output table format just like MySql table result with dash lines from query. How do I do that?
Statement statem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Saving an image of a UIElement rendered larger than it appears on screen I have a chart that I'm displaying to the user and I want to be able to export the chart as an image to disk so they can use it outside of the application (for a presentation or something).
I've managed to get the basic idea working using PngBi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Windows Phone 7 Mango saving the state of a CookieContainer update1: After more research I'm not sure this is possible, I created a UserVoice entry on fixing it.
I'm trying to save CookieContainer on app exit or when Tombstoning happens but I've run into some problems.
I've tried to save CookieContainer in the AppSe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Data-structure to store "last 10" data sets? I'm currently working with an object Literal to store temporary information to send to clients, it's like a history container for the last 10 sets of data.
So the issue that I', having is figuring out the most efficient way to splice on object as well as push an object in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: binary tree swapping method I'm having trouble with swapping nodes between two binary trees.
I'm trying to swap the current node with the passed node in the tree, but I can't figure out how; I can only seem to swap the parents of the nodes, but not the nodes themselves.
Can anyone give me some direction?
public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Single Signon Implementation in ASP.NET ( Different Domains with two different applications ) we have a production site like www.Domain1.com, and developing a new web application www.domain2.com, and would like to implement single sign on.
I am looking for solution pretty much like how google works like login to g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Buffer overflow to jump to a part of code My teacher gave me some code and I have to run it and make it jump to the admin section using a buffer overflow. I cannot modify the source code. Could someone explain how I could jump to the admin method using a buffer overflow? I'm running it on ubuntu 8.10 and it was c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563125",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linq to Entities: Where clause containing ToString fails I can do the following:
var result = DB.Products.ToList() // .AsEnumerable() too
.Where( p => p.ID.ToString() == ViewModel.ID);
But it pulls all the products instead of only what I want, then filters locally. Without the ToList(), it fails to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: what is the difference between eq("+index+") and eq(index) in jQuery In an example where eq() function is used, it was used as eq("+index+")
I haven't seen syntax like this before. What does "+" sign on both sides mean? How is it different from eq(index)?
Thank you!
A: In jQuery, eq refers to two slightly differen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Lowercase true/false keywords in Aptana PHP editor Is it possible to make TRUE/FALSE autocompletion lowercase in Aptana?
A: Well, seems like there is no such option. So I've created feature request at Aptana's bug tracker: http://jira.appcelerator.org/browse/APSTUD-3585
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7563131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem submitting existing app to iTunes Connect I have an app that is already in the App Store.
For this current build I made a new project (I rebuilt everything from scratch) and signed it with my previous application key.
When I try to submit it to the App Store through XCode Organizer I get the error:
No Suita... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: FireBird: How do you nest a select in an if? I'm very new to FireBird, but I want to know how I can use a select statement as part of my conditional criteria. I feel like I've been to the internet in back trying to find a way to do this, but haven't come up with much. Below is my attempt at getting this to work. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563134",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Customize a document_view and add a div? This feels like a newbie question but:
I am trying to create a new page from the drop-down display menu so that I can supply a background color to the page (so end user doesn't have to go into the html and add a div). I tried adding a new (empty) div to the template but it's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python: preventing caching from slowing me down I'm working on a web app with very aggressive caching. Virtually every component of the web app: views, partial views, controller output, disk loads, REST-API calls, Database queries. Everything that can be cached, at any level, is cached, all using decorators.
Natural... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using xs:alternative in Visual Studio I am trying to use xs:alternative in an XSD, however Visual Studio 2010 does not recognise xs:alternative as a valid child for xs:element. I am using xmlns:xs="http://www.w3.org/2001/XMLSchema" as my namespace.
I have tried some of the examples I have found online and VS2010 doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563145",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: passing xpath to xquery I usually hardwire the xpath in the xqueries like so:
let $xml :=
<books>
<book price="1">
<name>abc</abc>
</book>
</books>
return $xml/book/name
I am trying to figure out if there is a way to path xpath as a string variable and use it in the xquery something like so:
declare variab... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is it possible to access the html of a site with a 204 response code via java.net? I am trying to read a website using the java.net package classes. The site has content, and i see it manually in html source utilities in the browser. When I get its response code and try to view the site using java, it connects succe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how marge each value from the same array onto each key I have this array and I can't figure out how to dissect it and get it to built onto itself.
I have compiled my array to what I think might be the easiest to keep track of:
Array
(
[domain.com] => Array
(
[dev] => Array
(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563149",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bug in Div height IE Hihi,
I´m slicing down the main layout for a webpage.
For some reason the div id="main" won´t align to the header
url: http://nicejob.is/clients/pizzahollin/www/forsida.htm
As you can see the div id="main" (in green) match perfectly with the header
in Chrome and Firefox, but in IE the "main" goe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: ODBC via ssh tunnel to a 3rd machine At work we have a SqlServer database that cannot be connected to from outside our internal network. If we want to work remotely we can ssh into several other servers on our network and then work via X Forwarding so the development applications have access to the database.
This... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563156",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove ETX character from the end of a string? (Regex or PHP) How can I remove the ETX character (0x03) from the end of a string? I'd either like a function, otherwise I can write a regular expression, all I want to know is how to match the ETX character in a regular expression? trim() doesn't work.
A: To co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: execv and testing correct absolute paths I'm trying to test absolute paths on a linux machine to find where a program is located so I can run it with my specific arguments. The problem is, when I find it, I keep adding more strings to the correct path as well as memory leak by freeing the dynamically allocated memor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563164",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MVC 3 Route problem ActionLink result "http://localhost:5089/Article/GetArticlesByCategory?category=ASP.NET&categoryId=2". i want to show that link type "http://localhost:5089/Blog/ASP.NET". what is wrong route named "Article".
Routes:
routes.MapRoute(
"Default", // Route name
"{contr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563167",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detect which word has been clicked on within a text I am building a JS script which at some point is able to, on a given page, allow the user to click on any word and store this word in a variable.
I have one solution which is pretty ugly and involves class-parsing using jQuery:
I first parse the entire html, split ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "51"
} |
Q: Prevent Main UI to collapse from child thread I have this code:
class FinalUI1 extends javax.swing.JFrame
{
//do something
Thread t;
try {
t = new Thread(new PcapTool(null));
t.start();
} catch (InterruptedException e) {
// TODO Auto-g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563172",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: href from json in android xml I have and app and on my main menu page I want to load a clickable ad (href) from json.
example :
'nationalad':
"<"img src=\"http:\/\/www.mywebsite.com\/images\/national\/fullrz_2_4e657ae4df4ee_mywebsite.JPG\">"
This is the value I am getting back from json :
"<"img src="http:/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563174",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jqGrid is empty, even though pager shows results I'm upgrading from jqGrid 3.6.3 -> 4.1.2.
After upgrading the grid always displays empty, even though the pager shows the correct number of results (6 in this case). I can see that the JSON is being retrieved and is valid.
No error is displayed, and nothing is written... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Iphone google plus stream page How does stream page of google plus works on iphone, where you can slide the view left to right or vice versa (Nearby - Circles - Incoming). Is there any native control or sample codes?
A: This doesn't exactly answer your question, but you can use the Google API Objective-C Client to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563182",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Making an array available outside of a function I have the following code:
class Transaction : public transactor<>
{
public:
Transaction(arg1, arg2) // can put any number of args
:transactor<>(arg1)
{
//some initialization
}
void operator()(argument_type &T)
{
//create an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563188",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: best practice for handling PHP to mysql queries? I find myself writing very similar queries many times in an application I am making. I am looking for ideas on how I could organize and handle many different SELECT queries? I am not asking about how to optimize or secure the queries, I'm asking how I could organize m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563192",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Anything wrong with short-lived event handlers? For example, is there anything wrong with something like this?
private void button1_Click(object sender, EventArgs e)
{
Packet packet = new Packet();
packet.DataNotSent += packet_DataNotSent;
packet.Send();
}
private void packet_DataNotSent(object sender... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563194",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: std::vector, element pointer and input interator I don't have my copy of Meyer's Effective C++ with me, so please forgive the question.
template <class InputIterator>
void insert ( iterator position, InputIterator first, InputIterator last );
For vector's insert, is a byte* to a raw memory block a valid InputIt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563197",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Can a Grails plugin use the datasource from the app that uses it? I want to use a plugin to share a bunch of domain classes and controllers between multiple applications. Each application will use its own database. I'd like the domain classes in the plugin to store their data in the same database as the applicatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563198",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: from domain model to transaction script The new place I started at is just starting to develop a completely new product from scratch. They are going transaction script in application services, completely dumb entities, and a hand rolled DAL with stored procedures (the argument is that nhibernate doesn't optimize sql... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563200",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: How to get MVC remote validation working I have an Invoice Model which has an areaId property:
public class Invoice : IEntity, IValidatableObject
{
...
[Required(ErrorMessage = "Region is a required field.")]
[Display(Name = "Region:")]
[Remote("Check","Invoice")]
public ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Filenames and paths trouble The following example "walks" through a directory, prints the names of all the files, and calls itself recursively on all the directories.
import os
def walk(dir):
for name in os.listdir(dir):
path = os.path.join(dir,name)
if os.path.isfile(path):
print pa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I Use A Javascript Array Object As An Argument In A Function? How? So I'm trying to create a function that takes in an array (I guess it's more of a JSON object, or so we were told) object and returns a value based on that array, but I keep getting an error, so I'm pretty certain I'm doing this wrong.
I'm fairl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563206",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Using app.yml to set root web address in Symfony 1.4 Alright, so this is a question more or less questioning how intelligent this design decision was in a symfony project, rather than a question to get something functioning.
A coworker of mine recently decided forms should post certain data on a site using this acti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563210",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: IIS 7.5 and MVC 3 using Windows Authentication - Getting 401 for static content, but never get prompted for credentials I have a MVC 3 site running on Server 2008 R2 with IIS 7.5. I am wondering why, (using fiddler), I keep getting 401 responses on static content followed immediately by either a 302 or a 200? Is thi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Scala Enums - How to assign initial values? object WeekDay extends Enumeration {
type WeekDay = Value
val Mon, Tue, Wed, Thu, Fri, Sat, Sun = Value
}
How would you set an initial value so WeekDay.Mon == 1 and WeekDay.Tue == 2 and so on would be true?
There's a constructor in Enumeration, Enumeration(initial: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563213",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Linking multiple times a single cross platform object file? If I compile a cross-platform piece of code into an object file, will it be possible to use the linker to create separate platform-dependent executables (.exe,.bin) from that single binary file?
EDIT: It seems the answerers don't really understand my questi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7563218",
"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.