text stringlengths 8 267k | meta dict |
|---|---|
Q: Replace strings only outside of quotes using RegEx I have a string like:
varA*varB%+Length('10%')
I want to replace all the "%" characters not within single quotes with "/100" to end up with
varA*varB/100+Length('10%')
Methinks this is a job for a RegEx?
A: non regex solution and not that dirty either ;)
str... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529827",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need to add textboxes to gridview cell on Edit select I could really use some help on this. I have been searching for a solution on the web but haven't been able to find much help.
I need to add textboxes to a gridview edit cell, based on the number of rows of text in one of the cells. I have coded the capture of th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529833",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: want to remove textview on top of screen How to remove textview right under status bar?. Its used to display app name by default. Even I delete main.xml, it does not work. I want move up widgets after removing textview.
Thanks
A: The textview you are talking about is knowing as Title bar of the application, which ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Dimension error in MATLAB's Neural Network Toolbox (NNtool) target matrix I am exploring MATLAB's Neural Network Toolbox (NNtool), and I am running into a problem of having incompatible dimensions of target matrix. The exact error message is:
com.mathworks.jmi.MatlabException: Insufficient number of outputs from ri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET Logging WebService I work on some ASP.NET projects in collaboration with other developpers and I'm thinking about building a homemade logging solution. But before starting anything I would like to know if something similar to what I'm intended to code already exists.
I'm looking for a tool, framework or whateve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: kqoauth including I have downloaded kqoauth. I had a really hard time to include it in my project.
Finally, I used its .dll and added it using LIBS += -itsDLL.
It was working great on the simulator.
However, when I try to deploy for the symbian, building fails and the error is:
warning: Missing dependency detected:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529851",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android: Custom preference screen size problem I'm using a custom layout to display preferences so that I can insert an ad banner at the bottom of the screen. The idea is to have the banner stick to the bottom of the page, and have the preferences displayed in the rest of the screen in a scrollview.
I have a problem... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Retrieving multiple arguments for a single option using getopts in Bash I need help with getopts.
I created a Bash script which looks like this when run:
$ foo.sh -i env -d directory -s subdirectory -f file
It works correctly when handling one argument from each flag. But when I invoke several arguments from each f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529856",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "74"
} |
Q: emacs: How to stop search after file ending? I somehow could not figure out how I can search in Aquamacs so that the search stops at the file end and does not "wrap around" (continuing from the file beginning).
If one steps through the search result, one could manually stop at the last item, but I typically step thr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delegate problem when calling function from EventHandler I am trying to use the timer class in C# for this TCM Updater and I keep getting an error: "Delegate to an instance method cannot have null 'this'."
I thought I would just have to add "this" to the beginning of the function, but still getting that error. Any i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ggplot2 not present in rpy2 for python? I am working with rpy2 v2.1.9 in Python3.2, I don't understand why I can't use the library ggplot2
import rpy2
from rpy2.robjects import r
r.library("ggplot2")
Here is the error message I got
Error in function (package, help, pos = 2, lib.loc = NULL, character.only = FALSE, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best way to do jquery form validation? Okay, so we have input boxes for the following:
firstname, lastname, email, password, city, state, captcha, terms and conditions
I've done the validation for all of these input boxes.
This validation is seperate for each ID, and works via change()
The e-mail and captcha use aj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Beginner WCF Service setup I'm trying to figure out WCF Services. I got 1 to work 1 time and now I can't seem to get this to work at all (even following the previous examples). I don't understand several things about the WCF Services. For example why does it need endpoints. What purpose do they serve? However, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ruby on Rails: Updating data after form submission This is my form:
<table>
<tbody>
<% form_for :HhActiveCarrier, @carriers, :url => { :action => "update" } do |f| %>
<% for carrier in @carriers %>
<tr>
<%= render :partial => "summary_detail", :locals => {:carrier => carrier, :f => f} %>
</tr>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529874",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WCF returns object with only default values I have a test class CustObject which has DataContract and DataMember attributes. When I return this to the client, however, all values are the default value.
Service Side:
[DataContract]
public class CustObject
{
[DataMember (IsRequired = true)]
public int n1;
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529875",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: taking input from a file i have the following file named asmfile.txt
copy start 1000
read ldx zero
rd indev
rloop tix k100
in order to take linewise input from this file i wrote the following code....
void aviasm::crsymtab()
{
ifstream in(asmfile,ios::in);//opening the asmfile
in.seekg(0,ios::beg);
char ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What would this phone number regex look like? (555) 555 - 5555
Everything above would be required - spacing and all.
A: Try with:
/\(\d{3}\) \d{3} - \d{4}/
A: see below example, only (555) 555 - 5555 will be grepped out:
kent$ cat a
(555) 555 - 5555
(5554) 555 - 5555
(555)555 - 5555
(555) 5554 - 5555
(555) 555 -... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529889",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Control Entry to static library (.a) and never returns I have linked the static library with my code (.a) . But during run time , the control passes to library on the call to API, but it never returns,
ex: archived test_func.o in test.a which has implementation test_func(),
calling test_func() from main.c
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UPDATE multiple rows to Value from another table (FK) I have imported an excel document into MySQL to tidy up and make better use of the data but I am having problems running an update.
All tables used as examples below;
Tables
asset_register
phone
sim
team
The asset_register contains the following cols;
id INT,
ser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529893",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Apply Formating across multiple sheets I have searched and tried multiple different codes and way out there, but have had no luck finding a solution. I am trying to take a macro setup to format one sheet, which works perfectly, and apply the same code to all sheets in the workbook. I have searched multiple codes a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529900",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Syntax error in sqlite trying to create a database I am new to SQLite. I downloaded the latest version of SQLite (both shell and dll) and extract them to my D: drive. I execute the 'sqlite3.exe' file by double clicking on that.
When I try to create the database with the command sqlite3 test.db;, I get this error.
D... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: how to uninstall VMware Workstation from Slackware64-current? I'm trying to uninstall VMware-Workstation 7.x from Slackware64-current to install VMware-Workstation 8. When I run the bundle installer, it tries to uninstall version 7 before attempting to install version 8. But uninstallation process dies out. Since I'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529907",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I put my ASP.NET websites in the wwwroot folder? I have a number of websites that run under IIS on a single machine.
Should I put these websites inside of the C:\inetpub\wwwroot\ folder or inside the C:\inetpub\ folder?
E.g.
*
*C:\inetpub\wwwroot\Website1\
*C:\inetpub\wwwroot\Website2\
or
*
*C:\inet... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529913",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: jQuery highlight search term based on URL I am testing out the plugin "searchHighlight" to highlight search terms on our Search page when one searches for a keywords. The problem is that it only reads the referral URL and I do not know how to modify this so it only reads the current URL that your on instead of the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529916",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access table by offset (?) I have a 1000x1000 matrix, with some data in each entry.
Is it possible to store it sequentially (ie, a row next to the previous one) in a table? I mean, if I could just access the table "by offset" (just like an array), given I won't add/delete any entry, I would save space for the key, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: RVM Install bash script does nothing Trying to install RVM on Ubuntu 11.04 with no joy.
I have installed Curl 7.22.0
When I run:
bash < <(curl -s https://rvm.io/install/rvm)
or
bash < <(curl -sk https://rvm.io/install/rvm)
from terminal, nothing happens, so if anybody has any suggestions
A: Try doing
curl -L htt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529923",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FtpWebRequest.GetRequestStream() after disconnect I'm prototyping an ftp utility that will save a user's progress, and re-upload a given file from where they started if their internet were to disconnect. (It's for clients with slower connections).
The idea is to open a file stream and ftp stream, and write to the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Protect call to remote php script
*
*I have on a server a PHP scrip that updates a DB.
*I want to be able to call this script from remote, either from another server or
my localhost PC using a GET, or from the browser using AJAX,
*But I don't want anyone to be able to call this script unless
allowed.
So far I si... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Capture click event in ItemsControl item This is a Windows Phone 7 Silverlight app. I have an ItemsControl that is displaying a scrolling list. I'm using a Grid as the container in the ItemTemplate. I want to capture a click event (touch) on the Grid to navigate to a details view for the item clicked. However, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529940",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Beanbinding vetoableChangeSupport addVetoableChangeListener Any one can tell what vetoableChangeSupport.addVetoableChangeListener is. I found this in Beansbinding. What vetoableChangeSupport.addVetoableChangeListener is for and its uses.Also you can go here. How can we get make use of it in beansbinding and applicat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Close popover - Objective-c Good Day,
I'm having a problem to close a popover after selecting a line (UITableView). I've tried the following methods, but were unsuccessful.
[self dismissModalViewControllerAnimated:YES];
iMAPClientesPesquisar *a = [[iMAPClientesPesquisar alloc] init];
[a.popover dismissPopoverAn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to display a confirmation box when I click a checkbox inside a datatable in websphere jsf portlet without using java script I am developing a websphere jsf portlet where I need to display a confirmation box when a check box inside dataTabale is clicked. All selected items will be updated in the database. I am av... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MongoDB dot notation when updating Answer: It was only a bug of 1.4.4. Upgrade to 2.0 has solved the problem.
I have the following object in Mongo:
{
_id: "foo",
bar: "baz",
list: {
42: { some: "prop" }
}
}
I want to add in the "list" a key 43, so I'm doing the following:
db.collection.update({
_id: "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What's the best practice for handling mostly static data I want to use in all of my environments with Rails? Let's say for example I'm managing a Rails application that has static content that's relevant in all of my environments but I still want to be able to modify if needed. Examples: states, questions for a quiz... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Sending screenshot via C# I'm saving by capturing screenshot via that code.
Graphics Grf;
Bitmap Ekran = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppPArgb);
Grf = Graphics.FromImage(Ekran);
Grf.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimarySc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Can't view any calendar view Has anyone seen it where a user cannot view any calendar views across site collections? He can see all the events in standard list view format, but any calendar-type view only shows the month and no events.
Could this be an IE issue?
A: This one took a little bit of thought. The user c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cookie doesn't store information in php? Why Cookies doesn't store information in php ?
even in this simple code ..
<?
setcookie("test","Cookies teso");
echo "My cookie value: ".$_COOKIE["test"];
?>
A: They will be available on the next page load. From the documentation:
Cookies will not become visible unti... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529975",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Subversion: Get ip-address of user in pre-commit hook? We're hosting a subversion repository for distrubuted software development. So non-employees have access to some of our sorce code. Our company's IT security policy requires us to virusscan all files uploaded from outside of our corporate intranet. All internal ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529976",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jquery performing a selector on an element variable I'm having difficulty with performing a selector operation on an element variable. First I'm selecting my table element in my page using jquery.
var $popup = null;
$popup = $("#popup_List");
<div id="popup" class="popup_block">
<table id="popup_List"><tr><t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: jquery global var? how to do this? Okay I have this above my validation:
var error = true;
Below this all of my validation takes place, for example:
/* FIRST NAME VALIDATION */
$("#firstname").change(function () {
var firstname = $('#firstname').val();
if (firstname == ""){
$('#firstname').css({"bor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529983",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: disable or lock mouse and keyboard in Python? Is there a way of disabling or locking mouse and keyboard using python? I want to freeze the mouse and disable the keyboard.
A: Totally different take since all the solutions mentioned above use a quiet outdated library(pyhook) and this pyhook method personally didnt wo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Encrypt an integer to get only numeric characters in JAVA I have a database id that start from 1 to ... and I need encrypt this number to use for pursuit number.
how to generate numeric string by encrypting the database id and decrypt it?
pursuit number must be short as possible.
A: How secure do you need this enc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: PHP character encoding � sign instead of à Hi this is a very strange error I have on some pages of this joomla website:
http://www.pcsnet.it/news
If you go into the details of a specific news the à character is correctly displayed.
Other accented characters seem not affected.
I've checked that UTF-8 encoding is defa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7529996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Compare the nearest cells I need to compare one cell with next and if next is greater more than 3 than first, than to make it's color.
example: 1 2 6 3 2 8
1 compare with 2 = do not do nothing
2 compare with 6 = make it's color
6 compare with 3 = make it's color to
3 compare with 2 = do not do nothing
2 compare with... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530001",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flip flopping data tables in Postgres I have a table of several million records which I am running a query against and inserting the results into another table which clients will query. This process takes about 20 seconds.
How can I run this query, building this new table without impacting any of the clients that mi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530002",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Error when using FileSize(F) in Delphi 2010 I'm writing an application to log microscope usage but the following piece of code generates an error E2010 incompatible types "WideString' and "TDataFile" at the line that reads: SetLength(Items, FileSize(F)); I have narrowed down the problem to FileSize(F), just a number... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530004",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I log an exception thrown and caught in 3rd-party (external) library? My application uses some third-party libraries. I need to log some exceptions that occur inside lib (e.g. exceptions about read file), but these exceptions are caught in the same library.
Is there some way I can log these exceptions myself, e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: javascript - replacing spaces with a string I'm new to Javascript and need a bit of help with program on a college course to replace all the spaces in a string with the string "spaces".
I've used the following code but I just can't get it to work:
<html>
<body>
<script type ="text/javascript">
// Program to replace ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Editing an animated GIF I'd like to edit an animated gif to change its background from white to #f5f5f5:
Photoshop can import it and shows as layers, but saves only the first frame. Are there any editors, preferably online tools that allows it?
Many thanks for your help!
A: Graphics Gale is used by a lot of pixel ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Validating iphone receipt from c++ I'm trying to validate an iphone receipt from a c++ server (I have the receipt encrypted with base64, I'm composing a json object according to apple docs, and then I open a socket to the sandbox and send a POST request).
The server responds with error 503 Service Unavailable.
I sus... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Apache Velocity foreach loop #continue Is there a #continue command for jump to next iteration in foreach loop?
A: Based on the documentation, Apache Velocity does not appear to have a #continue function for its foreach loop.
In case it might help, it does have a foreach break directive, added in 2008.
A: I have a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530019",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Auto-building a native install AIR app I'm developing an AIR application that will be run on both OSX and Windows (it's part of an internal tool chain). Part of the functionality of the application requires shelling out to external processes, so I've created a native installer package to get access to NativeProcess... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530023",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: dismiss the UIKeyboardTypeDecimalPad in UIScrollView background I am dealing with what seems to be a somewhat rudimentary problem. I am trying to dismiss a UIKeyboardTypeDecimalPad that has a UIScrollView background. I have seen some solutions that involve putting a done button where the decimal is if you have just ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Require BeautifulSoup in a Python Package - What's needed in setup.py? I'm writing a setup script for a python distribution, foo. My code requires BeautifulSoup, so currently my directory is structured like so:
<root>/
setup.py
__init__.py
foo.py
BeautifulSoup/
__init__.py... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MvcMiniProfiler profiling web app and lower layers I have MiniProfiler set up and working in my ASP.NET MVC app. My controllers make calls via WCF to a BLL which in turn talks to the database. I would like to see profiling from the WCF service alongside the existing profiling I see from the web app. Is it a case of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530027",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Cakephp Newbie Model question I have a table familiars , a table mages and a table mages_familiars where I keep which familiar belongs to which Mage.
How can I model this cross reference table?
Thanks in advance
A: You don't need the intermediary table unless it's possible that a familiar can belong to multiple mag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How do I select data from a select query in MySql? I am using MySQL 5.5. I have a query which returns results like this
quantity| maxPrice| minPrice |avgPrice| counts
"10" "23.50" "23.50" "23.500000" "1"
"15" "15.75" "15.75" "15.750000" "1"
"23" "100.71" "100.71" "100.710000" "1"
"25" "210.00" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530031",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sqlite3 How to get number of rows in table without reading all the rows? Can some shed some light on hoe to get the number of rows (using php) in a table without actually having to read all the rows? I am using squlite to log data periodically and need to know the table row count before I actually access specific da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530032",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: EditText Field Is Crashing My Android App Hi all i have updated my post to show the full xml file, which will show if i am doing something wrong.
i implemented a custom dialog with an edit text field and it keeps crashing. I will
also like to access the values filled in the text field. Any idea where i am going wr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jqGrid table search How can I get a jQgrid without editing and having select search elements as like:
http://www.ok-soft-gmbh.com/jqGrid/ToolbarSearchValidation.htm
A: I think the demo that you've linked to is using jqGrid's filterToolbar feature:
see: http://www.trirand.com/jqgridwiki/doku.php?id=wiki:toolbar_s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530035",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: iOS SDK: Is there a way to recognize when a user double taps the home button and when he locks the screen Is there a way to make a difference between the user tapping the home button twice and the user locking the screen? I know that in both cases the app delegate's method applicationWillResignActive: is called, but... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530037",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Built in parsing of a string to a Scala case object? Is there any way to automatically parse a case object from a string, in Scala? Using some built in / automatically generated Scala function?
For example, I have these case objects: (please note that there's a sealed parent class)
abstract sealed class FlagReason
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530039",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Gnu C++ macro __cplusplus standard conform? The Gnu C++ compiler seems to define __cplusplus to be 1
#include <iostream>
int main() {
std::cout << __cplusplus << std::endl;
}
This prints 1 with gcc in standard c++ mode, as well as in C++0x mode, with gcc 4.3.4, and gcc 4.7.0.
The C++11 FDIS says in "16.8 Predefi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "34"
} |
Q: Cache key length in asp.net I was investigating the MVC3 source and came across the following (in OutputCacheAttribute.cs) which is called when generating a key to use for output caching:
// The key is typically too long to be useful, so we use a cryptographic hash
// as the actual key (better random... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530050",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: colorbox refreshing parent window without closing popup I am using colorbox for showing pop ups. Is this possible to reload parent window without closing pop. I mean I want to do actions/events in the pop up and the changes should be displayed at parent window.
Thanks
A: You can definitely play with the elements in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Understanding managed beans/backing beans I am learning Java EE 6 and I am trying to grasp the overall image of it. I am reading about JSF and how adding components. I am setting/reading values from the components to a bean which has the @ManagedBean annotation.
I have some trouble understanding it properly. What i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: select() function in C# im new to C# and any help/feedback would be appreciated. im trying to develop a a client-server program in c#, however i do have different clients sending information to the server side. Is there any function similar to the c language select() such that can help to get all the information fro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530055",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to stop ui background thread on blackberry I've addded 5 button in horizontalFieldManger.
When i click the button i gets image url from server there after i get the image.
I loaded the image in on verticalfiedlManager on the same screen..
My code is.
Thread loadImageThread = new Thread()
{
publ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530056",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Find by intermediary attribute in a has_many :through in Rails
Possible Duplicate:
Rails has_many :through Find by Extra Attributes in Join Model
I have the following many to many setup in my model:
class Project < ActiveRecord::Base
has_many :projectcollaborations
has_many :partners, :through => :projectcoll... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530059",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: HTML Parsing: Clicking element with "onclick" handler does not update WebBrowser ReadyState I am looking for a way to CLICK an HTML element on a page programmatically. If the page is opened in a Browser and we need to click on a <A> element then instead of clicking we can retrieve the HREF property and Navigate to t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: New open graph settings I am using Facebook comments for my wordpress blog, so far evertyhing was working good, but recently, when the user comment on my site, their comment doesnt get posted on their profile even though they thick the option saying publish this on facebook at the comment box. Is there any recent se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Accessing smartcard keystore in an applet, through a js call I am attempting to access the smartcard keystore, by an applet, through a js call.
I am searching for best pratices, and hopefully a guide, minding the security issues.
What I can and cannot do in it?
Just the use of doPrevileged is enough?
What are the li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Timezone or Time conflict I deployed a Rails App but I'm getting the times wrong on the created_at columns.
I go to rails console production and ran Time.now and I get the correct time.
I logged in to MySQL and ran SELECT NOW(); and I get the correct time.
But when a new record is created into the database I get ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you create a custom collection editor form for use with the property grid? I am trying to incorporate a property grid control with a class that has a list/collection of another class as one of the properties. Lets call them class A and the list would be containing class B for reference.
I was wanting to inco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: What is the best way to compute intersection and difference of 2 sets? I have 2 lists List<Class1> and List<Class2> that are compared by same property Class1.Key and Class2.Key (string) and I want to write a function that will produce 3 lists out of them
*
*List<Class1> Elements that are present in both lists
*L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing a UISlider value into stringByEvaluatingJavaScriptFromString? I have a UISlider and I'm trying to pass its value into a window.scrollBy string. Basically, I'm attempting user-configurable auto-scrolling of web content.
The actual scrolling is working, but I'm unable to pass a value into the JavaScript by usi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set a background drawable on a clicked GridView item in Android? I have a GridView with a bunch of icons and I need to select one. And by select I mean:
*
*I need the drawable id to store into a database (so I can access it later)
*I need to draw some kind of visual cue on the grid to let the user know wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530087",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Precompiling assets with Capistrano shows error on load 'deploy/assets' I'm using rails 3.1.0 and trying to setup Capistrano to precompile assets. Capistrano v2.8.0 has "load 'deploy/assets'" in Capfile. But when I run "cap deploy" it shows the following error:
cap deploy
/usr/lib/ruby/1.8/capistrano/configuration/l... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is java.util.Observable thread-safe? In java's Observer pattern classes Observer and Observable, are calls made to Observable objects's notifyObservers(Object arg0), in different threads, thread-safe?
Example:
I have multiple threads, all Observables, that will be calling notifyObservers(...) ever so often. All thes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530095",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Rails select form helper needs to save multiple attribute values of one object I have a form where I'm creating an interview for a job posting and one of the fields is a dropdown where I select the candidate (from a list of candidates created on another page) that I plan to interview.
So far I'm able to save the det... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530096",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bluetooth On Android: my Socket.connect() Blocks forever, and Socket.close does not unblock I have been working on a bluetooth app for android for awhile now and I just discovered this problem. When I preform mySocket.connect(); in my bluetooth service class it occasionally blocks indefinitely. I read the documentat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Is there a way to ensure that a Silverlight ScrollViewer keeps the top item completely visible In Silverlight 4, is there a way that whenever you page down a ScrollViewer (i.e click the scroll bar in the area adjacent to the thumb) whatever item is at the top is completely visible. I still need it to scroll smooth... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530101",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to drop all of the indexes except primary keys with single query I am planning to drop all of the indexes except the primary keys. I made the primary keys myself but all other indexes was suggestion of SQL Server.
After dropping all indexes which are not primary keys, planning to use SQL Server profiler tuning ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530103",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: A question on semaphore value if a process terminates abnormally after decrementing the semaphore value if a process goes down after decrementing the value of semaphore from 1 to 0, as per my understanding the value of semaphore remains as 0.
If the same process comes up again and tries to re-acquire the same semap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Tracking the Successfully uploaded File Names by 'Uploadify' Jquery plugin I am using 'Uploadify' Jquery plugin in my MVC 3.0 application to upload multiple files.
Its working fine, but showing the list of files which got failed while uploading.
How to track the Successfully uploaded File Names?
My script looks li... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Qt Creator "Cannot create file (...) qtcreator.xml" (Mac) Qt Creator starts up with several error messages saying that:
"Cannot create file /Users/[username]/.config/Nokia/qtcreator.xml: Permission denied"
And when I exit:
"Cannot create file /Users/[username]/.config/Nokia/toolChains.xml: Permission denied"
The pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Android service to listen for incoming text from server I need android service which will run in background and listen for urls from server.
Then that application will take data from urls and save it to hard disk.
My question in first place is, is it possible for android service to listen for incoming text from serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Oracle data distribution across date index There's a situation that arises in large database tables (~50 million rows) where users need to browse date-indexed records.
But users browsing the data do not necessarily know where on the timeline data occurs and where the gaps are. In past projects, I've quantized the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Conflict between QTMovie / QTMovieView and custom C++ framework I'm experiencing an insane problem...
A simple Cocoa application with QTMovieView, in which a specific movie file is set or an application which loads and renders QTMovie manually works fine, however if I just link my custom Objective C++ framework, the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: DataGridTemplateColumn sizing I have a WPF app with a DataGrid containing 10 DataGridTemplateColumns. When I bind a collection of objects to the data grid they all display fine in the grid. The only problem is that if I have I more rows than will fit on the screen without scroll bars, the columns only autosize to fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Server-side processing - how to refresh the table on outside event (checkbox clicked)? If there is a series of checkboxes defining some additional conditions on the data (like "Male", "Female") above a server-processed DataTables table and the user makes some selections -
How to tell the table to reload the new aaDa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Javascript form error array not registering I have made a fiddle so you can test it for your yourself:
http://jsfiddle.net/ProjectV1/9XQtb/
Javascript
I have coded some simple validation and before the function created an array for form errors, at the end of the function there is an if statement that if any of the a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530137",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Size limit of a string passed to function as a parameter I have a function with one parameter like : function(a){/do something/}
if I pass a string to the function then is there any size limit of string which I can pass?
A: It's not defined in the standard ==> implementation dependant.
A cool resource. Cool because... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530141",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the best practise for a link that trigger javascript Let's say I have a label that triggers some javascript. For example:
HTML:
<a href="#" id="some_id">Trigger action!</a>
<!-- or, with appripriate CSS : -->
<span id="some_other_id">Trigger action!</span>
jQuery:
$("#some_id").click(function() {
alert("... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530143",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Android GridView empty I hope to have a little 'more than lucky and find someone who can help me ...
Let me explain my idea of what I do have a list of strings on the left and right of the screen a list of icons that allow you to perform various operations on strings on the left
This is about the idea that I need.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530148",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Testing an array of structures in mxunit What is the best way to test a function that returns an array of structres in mxunit? Right now i'm doing something like this:
var actual = variables.pbj.getFunctions(); //returns [{name="getAccountNumber", value="0"},{name="getAccountName", value=""}]
var found = false;
/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530151",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bad exp calc function? What is wrong with this function? When I use 31 for exp, this function becomes an infinite loop! How can I fix that? Please help and optimize this function for me if you can, thanks.
public function exp_calc($exp)
{
$level2 = 30; // Required EXP for 2nd level
$current_lvl =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Google Maps - How to make the marker a link that opens in a lightbox I have created a google maps page with custom markers and locations. I want the user to be able to click on the marker of a location and it opens a lightbox on that page. Is this possible? Thanks!
A: You'll want to check out this documentation pag... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Draw invalidated rectangle using WM_PAINT In order to draw a text over a ComboBox (or whatever else), I override WndProc() and catch 0x000F message -- which is WM_PAINT.
Code is like the following:
Protected Overrides Sub WndProc(ByRef m As Message)
MyBase.WndProc(m)
If m.Msg = &HF Then
TextRenderer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530166",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Add shortcut to application's menu I am trying to create an application which adds a menu item to the android installed applications menu. I have been successful at creating homescreen menu but still want my shortcut to be added to the applications menu as well. Is this possible? if so, how can i accomplish this?
Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7530167",
"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.