text stringlengths 8 267k | meta dict |
|---|---|
Q: Raw SQL with Doctrine I want to execute a query in raw SQL with Doctrine. I have an error but I don't know where.
$my_id = 12;
$pdo = Doctrine_Manager::getInstance()->getCurrentConnection()->getDbh();
$q = 'SELECT date FROM my_table WHERE my_text LIKE "%'.$my_id.'%" ORDER BY date DESC LIMIT 1';
$r = $pdo->query($q)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612280",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I wait for location.href to load a page? Is it possible to know when a page has loaded using location.href? My current code looks like this and I want to trigger some events to happen once my page has finished loading. I tried using $.get but it breaks my current implementation of jquery address so this won't w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612285",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: I have a CSS overflow issue On this website http://rwl.rwlwater.com/ I have a small issue... I added overflow: hidden to the featured slider div, the pictures were showing up stacked if the javascript was enabled or the user had a slow internet connection..
But now I have another problem.. The description had a litt... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How bad it is to keep calling malloc() and free()? I'm sending a text file - client-server
breakup the text into packets each of 512 bytes
but some packets contain text less than max size so on the servers side when receiving each packet I'm calling malloc() to build a string again , is this a bad practice ?
is it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612292",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Session State Issue When visiting a page, I am storing a value in session state. When I click back on the browser, the value in session reverts to its original value. Why does this happen? I am not resetting the value when i go back.
This happens on iPhone and iPad - all other browsers do NOT roll back the session ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612295",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can I reuse a TCP connection? I'm connecting to a website and retrieving HTTP data by sending it a GET request. And I have to connect to the same site twice to retrieve two different pages. I'm new to network programming but I believe the connect function connects to the server, and creates a tcp connection.
Now eac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: sort NSDictionary values by key alphabetical order I can get an array of dictionary keys sorted by values, but how to I get an array of values sorted by dictionary keys? I've been looking everywhere with no luck. Any help appreciated.
A: This might work:
NSArray * sortedKeys = [[dict allKeys] sortedArrayUsingSelect... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612299",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: What is the proper way of using RMI remote objects on the client side? In a dialog (window) let suppose we have some buttons and when a button is pressed a remote method invocation take place.
How it is better:
*
*create the remote object (registry.lookup()) one time and use this object every time we need a remot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612301",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android Sqlite sqlite3_bind_parameter_count Hi we want to execute statements that contain the standard sqlite named placeholderpatter like "select * from contatct where contactid=@contactid"
Such statements are defined on our server for other applications (iOS, WIndowsPhone etc.)
I found nothing ind the android.data... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612303",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can i get a website to open up a page server side? I want to create a callback feature. E.g. The client does something but then we need to open up a page with a few GET variables to one of our partners. Therefore id like to make a PHP script which opens a website with all the data in the URL (The user shouldnt s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612307",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Maven: Non-resolvable parent POM I have my maven project setup as 1 shell projects and 4 children modules. When I try to build the shell. I get:
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project module1:1.0_A0 (C:\module1\pom.xml) has 1 error
[ERROR... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612309",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "143"
} |
Q: Get request_token and request_secret from Foursquare I want to get my access_token and access_token_secret from developer.foursquare.com. I read and used
oauth_key = 'my_key'
oauth_secret = 'my_secret'
oauth = Foursquare::OAuth.new(oauth_key, oauth_secret)
request_token = oauth.request_token.token
request_secret ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612311",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to show Text in the text file separated by commas in a DataRow or a GridView in c# I have created an application in C#. I want to display the text in the text file separated by commas in a DataRow or a GridView.
I am using this code to display the text in a listbox
private void button1_Click(object sender, Event... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Offset UITableView Index - Overlap with iAd I have a table based app with an iAd at the top. I have added a A-Z index to the Table View. The index is now obscured by the iAd at the top.
Can anyone suggest a good way to fix this ?
Thank you.
A: You can drag a UIView on top of a UITableView in Interface Builder to gi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Play a System Sound using HTML I would like to know if is possible to play a SYSTEM sound using HTML 5 (even with js).
I recently found out this article that show how to do it, but for my understanding is only with attached external sound (like mp3 or other). I would need instead use some OS SYSTEM sound.
Thanks guy... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bash, weird variable scope when populating array with results I am parsing command output and putting results into array.
Works fine until exiting the inner loop - output array is empty.
declare -a KEYS
#-----------------------------------------------------------------------------#
get_keys()
{
# this extracts key... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612320",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Cannot alter table (add unique constraint) in a SQL PL store procedure for db2 I am trying to create a store procedure in SQL PL for db2. A new field needs to be added as part of the unique key, so I need to drop the previous uk first, and then add the new unique key. That worked fine for MS SQLServer and Oracle, bu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612323",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need input with adding second MySql Update in conditional IF just trying to add a second Update inside the second if (if $amount == "0.00"
It all works perfectly, until I try to add this bit in below:
Bit to add:
$updateSQL = "UPDATE brick_codes
SET number_of_uses= '$number_of_uses'
WHE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612326",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PhoneGap and Retina display I'm creating an app for iPhone using phoneGap, but I'm sure it is not working using retina display, instead of that, it is using the old iPhone3 resolution.
Is there any way to have 2 versions for iPhone when developing using phoneGap? this is, one version using retina and another version... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612330",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: Rails error "wrong number of arguments (1 for 0)" I am using a scope to filter my results :
@hotels = @hotels.type(params[:hotel_type]) unless params[:hotel_type].blank?
with
scope :type, lambda { |type|
self.scoped.where('hotel_type_id IN ( ? )', type.join(', ')) unless type.blank?
}
And params[:hotel_type] =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612333",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: creating a jQuery plugin having issues with when implemented multiple times on the same page I have created a jQuery plugin that changes the generic select box into something pretty, however I am having a problem, when the plugin is used more than once on the page I run into problems, for example when I trigger the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DbContext mapping tables dynamically If i have a dbContext who's connection string is created during a context creation and then I want to map the table names based on some of that information....how would I pass in that data to the table mappings? For instance:
private object createContext(string name, string coun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Running java hadoop job on local/remote cluster I'm trying to run hadoop job on local/remote cluster. This job in future will be executed from web application. I'm trying to execute this piece of code from eclipse:
public class TestHadoop {
private final static String host = "localhost";
public static void... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612347",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Does adoCon.open in asp returns any value I am establishing a connection to a mssql server database in asp using the command
adoCon.Open "Driver={SQL Server}; Server=" & host_name & "; Database="
& db_name & "; Uid=" & user_name & "; Pwd=" & password
Now my question is how to know if this connection establishmen... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612348",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using Delphi Subversion integration to check files in from another folder So we're converting from VSS to delphi and we use a lot of include paths.
We'd like to at least attempt to conform to whatever the Delphi IDE decides is the right way to do this, but it's non-obvious.
Apparently, you can't include files in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612352",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I programmatically get access to GMAIL attachments? Currently I've signed up for a subscription service that sends me data as an email attachment...it's a zip file. I get a file everyday.
What I want is a program that runs every day that downloads the attachment from Gmail and then opens the zip file and pr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612355",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: web service calling I'm novice at webservices. So, I have web service:
public interface IReportingService
{
[OperationContract]
void SendStatistics(StatisticsInfo info);
[OperationContract]
void CloseTranslationSession(StatisticsInfo info);
}
if I go to http://localhost/ReportingService.svc?wsdl, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612356",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mainframe access to Facebook data I am working on a request to allow our Unisys mainframe users to access their Facebook data from non-GUI terminals. Based on the "no scraping, no automation" Facebook terms-of-service, and the way Facebook's oAuth authentication works, I don't see how the mainframe software can log ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612361",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: GPU usage via scripts or API is there any way to find the GPU usage in windows?
Either via scripts (vb, tcl,...)
or any API or library in high level languages.
A: Riva Tuner has an SDK to allow plugins / other applications to access GPU statistics, such as current clock speed, current fan speed, current temperature... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612364",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: getting timeout error when select the 50th page in telerik RadGrid I am loading 100000 records in the Radgrid, if I am doing anything (select 50th page in RadGrid Pager Control or Filter something in the RadGrid) in the radgrid it's taking too much of time to load, sometimes I got the error like "Not enough storage ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612367",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bison/Flex declaration mess... how what should I include/declare where? I'm using Bison and Flex to make a reentrant scanner/parser pair but can't wrap my head around where everything is to be included and declared.
First of all, I'm using reentrant Flex so I need to pass the yyscan_t scanner type first to Bison by ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: How to convert AsciiDoc to Perl POD? How to convert manpage written in AsciiDoc lightweight markup language automatically into Perl's POD (Plain Old Documentation)?
Perhaps something that converts from DocBook to POD (the conversion from AsciiDoc sources to manpage format i.e. troff goes via DocBook (via XML)).
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Insert text in textarea at caret position
Possible Duplicate:
How to insert text at the current caret position in a textarea
I want to insert text in a textarea using javascript at the caret position, i already have the code to find the position, whats the code to put text at that particular position?
Thanks,
Ja... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: EXC_BAD_ACCESS when using VBO I've made some rendering with out using VBO. Now i want to add VBO for more complex rendering. I'm just creating a VBO now, keeping the old rendering as it was and i render nothing with VBO now. Here is the code:
GLuint bufId;
glGenBuffers(1, &bufId);
glBindBuffer(type, bufId);
glBuffer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612376",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CSS error with position and overflow on all browsers I have set up a scrollable div that until recently was scrolling and now appears to be jammed at the top. The only difference is the addition of position: relative;.
Here is a FIDDLE
http://jsfiddle.net/PMzcB/
Any ideas why?
A: Change z-index to a positive value... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612379",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use bash to concatenate a list of items I have a list of items like:
ERR001268_chr6
ERR001312_chr6
ERR001332_chr6
ERR001361_chr6
ERR001369_chr6
ERR001413_chr6
ERR001433_chr6
ERR001462_chr6
ERR001698_chr6
ERR001734_chr6
ERR001763_chr6
ERR001774_chr6
ERR001799_chr6
say now I want to concatenate E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Exact c# result of sql datediff I'm trying to get the number of days (calculated byu datediff) in sql and the number of days in c# (calculated by DateTime.now.Substract) to be the same, but they return different results....
//returns 0
int reso = DateTime.Now.Subtract(expirationDate).Days;
vs
//returns 1
dateD... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Replace text at top-level of node without breaking formatting of children If I have the following html code:
<div id="element">
Qwerty Foo Bar
<span style="color: red;">This text should/will never be changed by the script.</span>
</div>
And I want to change "Foo" to "baz", I can do the following:
var element = doc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612391",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to draw Ropes using cocos2d texture programming I am new to cocos2d framework but I have good experience in iPhone application programming. We can draw lines between 2 points using ccDrawLine command. What I need to do is draw a Rope which connects the two points similar to ccDrawLine
The rope is straight.
I ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612392",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cassandra Insertion Error I have a 4 Node Cassandra cluster with 2 Cassandra nodes and 2 brisk nodes[cassandra+TT]. Brisk beta 2
I used cassandra-cli to insert create and update column families
My insertions and projections are are always getting failed. For example
Counter Column family
[default@StatsKeySpace] cr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Which `boost::system::error_code` value should be provided when `boost::asio::ip::tcp::resolver::resolve()` fails? I want to return a boost::system::error_code indicationg whether a host/service could be resolved or not. There might be multiple reasons why a host/service look-up failed (e.g. network connection probl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612395",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Reverse String in Java without using any Temporary String,Char or String Builder Is it possible to reverse String in Java without using any of the temporary variables like String, Char[] or StringBuilder?
Only can use int, or int[].
A: String s = "Hello World!";
for(int i = 0; i < s.length(); i++)
{
s = s.subs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612396",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Strange behaviour when returning an array from class_eval'ed method With Ruby 1.9.2, I'm using class_eval to extend a class.
def slugged(fields)
# assign string to variable only for easier debugging
method = <<-EOS
def slug_fields
#{ fields.is_a?(Array) ? fields.inspect : ":#{ fields }" }
end
EOS... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612397",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android - retrieving text input from an alertbuilder dialog I've got a View defined in an xml file. It contains two Edittext fields (amongt other things like text)
I use an AlertBuilder to trigger a dialog where a user enters text(such as username and pass) into both edittext fields. When I try to retrieve the strin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612399",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to select Y values at X position in Groovy? this is sort of a mathy question...
I had a question prior to this about normalizing monthly data here :
How to produce X values of a stretched graph?
I got a good answer and it works well, the only issue is that now I need to check X values of one month with 31 days ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612401",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Git Rebase or SVN Reintegrate for Feature Branches? We are currently using SVN, but considering moving to Git to support our new workflow, which relies heavily on rebase.
We're considering a development workflow where each individual feature is developed on a separate branch, then merged into trunk/master when it's ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Convert Word Mail Merge documents from 2003 to 2010 format I need to convert about 100 mail merge documents from 2003 to 2010 format(.doc to .docx).
The trouble I am having is that in order to convert the documents I need to open them. But some of them won't open because I don't have the correct header files/ any da... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612404",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MPI distribution layer I used MPI to write a distribution layer. Let say we have n of data sources and k of data consumers. In my approach each of n MPI processes reads data, then distributes it to one (or many) of k data consumers (other MPI processes) in given manner (logic).
So it seems to be very generic and my ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Workflow services correlation I would like to implement next workflow scenario:
I have workflow service with two branches. Operation2 (Receive activity) is correlated with CorrelationHandle “handle2” which is initialized from message header.
The flow is next:
1) Someone calls Operation1 and it initializes cor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612407",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: INotifyPropertyChanged, no UI updates I looked around the web for an answer, but can't seem to get this to work. Here is what I have:
public class UIValues : INotifyPropertyChanged
{
private double zoomValue = 1;
private static readonly UIValues instance = new UIValues();
public event P... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Map Isn't Returning Correct Numbers I have a map that is acting up and not returning the correct number. It did then it didn't, now it's just not returning. Any help is appreciated. Thank you.
struct file_data
{
std::wstring sLastAccessTime;
__int64 nFileSize ;
};
int GetFileList(const wchar_t *se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What are some approaches for gathering and conveying compiler errors The simplest approach is just to throw an exception with error information at the first occurrence of an error. Perhaps another approach is to pass a mutable list argument through analysis functions. But I've noticed the F# compiler for example wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612413",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Delphi (XE2): Trial - what can I do? What about my old Delphi? I have been at RAD Studio XE2 World Tour here in Poland in Cracov and I really love new features, so Im almost sure, Ill buy it. But now I downloaded trial version and I want to ask about two things:
Firstly: What can I do with it? I mean - can I build f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612418",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: php.ini display_errors not respected OS X Server I am running an 10.6.8 OS X Server. It acts as a web server using the built in PHP and Apache.
PHP is at 5.3.4
Apache is at 2.2.17
I am trying to disable the reporting or errors to end users with a server wide setting.
I have tried the following:
in PHP.ini
error_re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612424",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Regular Expression change text between tags I have some code in the following layout,i m using textcrawler to do a find and replace
<a>
Name=LineA
epsium
ask
answer
line=10
color=red
</a>
<a>
Name=LineB
Color=Blue
</a>
...
Now the question is what regular expression i need to use so as to remove the second block o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612426",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Difference between uint8_t and unspecified int for large matrices I have a matrix that is over 17,000 x 14,000 that I'm storing in memory in C++. The values will never get over 255 so I'm thinking I should store this matrix as a uint8_t type instead of a regular int type. Will the regular int type will assume the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612428",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why are some functions located densely and others are aligned and padded with int 3 instructions? I compile the following program with Visual C++ 10:
include <Windows.h>
int _tmain(int /*argc*/, _TCHAR* /*argv*/[])
{
Sleep( 0 );
return 0;
}
and look into disassembly. There're lots of C++ runtime functions i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612430",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Outlook Signature folder in Windows OS I have been working on an application which integrate with VSTO components in order to leverage MS Office including Outlook. In this, I have a method which read the all defined outlook signature and import it into our application. All works well and I am accessing the signature... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using js to determine if an element's width is determined by its content? I want to know if there's a way I can use jQuery or javascript to determine, given an element, if its width is set by a css style (either inline, inherited or directly) or if its being determined by the size/length of its content.
A: One idea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Django validating ImageField dimensions etc I have a custom clean method below:
def clean_image(self):
image = self.cleaned_data['image']
if image:
from django.core.files.images import get_image_dimensions
w, h = get_image_dimensions(image)
if not image.content_type in settings.VALID_... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612445",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Should I prefer NSNotificactionCenter or .NET events when using Monotouch? When developing in Monotouch, is it "better" to us real .NET events or NSNotificationCenter?
Simple example: I have a UIViewController. It offers an event "CallbackWhenDisappeared". This event is triggred in ViewDidDisappear. Who ever is inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612448",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C++ conversion const pass-by-reference Given a template pass-by-reference conversion/type-cast operator (without const) is possible:
class TestA
{
public:
//Needs to be a const return
template<typename TemplateItem>
operator TemplateItem&() const {TemplateItem A; A = 10; return A;}
};
i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: EntityFramework Repositories drives from an Interface and abstract class : how to use dependency inject on ASP.NET MVC Ok, let me break down what I have been trying to do :
First of all here is the abstract generic repository of mine :
public abstract class Repository<T, C> where T : class where C : DbContext, new(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Reading an IEnumerable multiple times Let's say I have some code:
var items = ItemsGetter.GetAllItems().Where(x => x.SomeProperty > 20);
int sum1 = items.Sum(x => x.SomeFlag == true);
And for example I need some other sum from the items collection later in the code.
int sum2 = items.Sum(x => x.OtherFlag == false);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612462",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: JasperReports - Conditional style per locale? Is there a way to use a different styles, or redefine a style, based on a report parameter locale? I need to modify font sizes for certain languages.
A: I have implemented this in the past using external style templates. There is a sample on jasperforge that illustrates... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I reliably use code from github in vendor/gems? I like to vendor as many gems as possible, except those that must be built on each platform (libxml, etc.) but sometimes I like to use some bleeding-edge code rather than the gems that are out there on the gem servers.
Can I clone a github gem directly into ven... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612477",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Error while adding WebSphere in Eclipse I am trying to use WebSphere v6.0 with Eclipse. When I try to add the runtime server for a Dynamic Web Project, I get the following error:
Missing classpath entry \your_server_root\was-6.0\properties
Why?
A: My thought? Add that entry to the CLASSPATH.
Another thought woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612478",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Access to jquery selection while in context of a Google Maps Info Window I have a web page that uses JQuery extensively, with no issues. It's basically a Google Map, with extra buttons, implemented as custom controls.
However, when I popup an Info Window, I want to put up some text in that window, but also a button.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612480",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I display post without comments using the Comments plug-in Below is the code generated from facebook plugins page:
<div id="fb-root"></div>
<script> (function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Initializing a new class in its own constructor I have a User class. One of the properties needs to be an "associated" user, so it's type needs to be User. Right now when I initialize the class, I get a stack overflow when it tries to initialize the Associated property. Current code:
public class User {
public U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612488",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: workaround to read proper dimension when display : 'none' Are there any workarounds to read proper element dimensions when it's display value is set to none?
Well, one would be to hide it without changing the display, but visibility property instead. While it gives proper dimensions, the element affects document flo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML to PDF Solution (Handling Content, Headers and Footers) I'm trying to create a "report" by generating a PDF based on HTML.
At first, I simply attempted to write raw encoded HTML to a document and then print that document using Javascript. However, this gave me little to no control involving headers and footers.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: xcode4 svn commit failed: File .xcodeproj/project.pbxproj is out of date Just getting started in xcode 4 and svn, opened my project (had been using xcode3 and svn) but now when I commit I have no trouble except when I try to commigt the file project.pbxproj and I get the message about being out of date. Probably a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Implementing pthread pool I need to implement a thread pool using pthreads. I could not move forward. I found similar question here
But that still does not clarify my question. My question is once a thread runs to its termination can I use it again? Another way of putting this question is, How does a thread return t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Change Text Color of Menu Item in ASP.Net Navigation Menu From Javascript I have an ASP.Net Navigation Menu control with 1 item that I need to dynamically change the color of the text if certain conditions exist. I have a function set to run every 1 second to check for those conditions and needs to set the text of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you loop through an enum in C#? for (int i = (int)MY_ENUM.First; i <= (int)MY_ENUM.Last; i++)
{
//do work
}
Is there a more elegant way to do this?
A: Enums are kind of like integers, but you can't rely on their values to always be sequential or ascending. You can assign integer values to enum values that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612507",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "32"
} |
Q: How to mock wcf service(transformed from asmx) by Moq I have Silverligth Unit test Application (.net 4.0) and I've added reference to my WCF service(3.5)
And here are my codes
MyService.svc
<%@ServiceHost Language="VB" Service="MyServiceWS.Service1" %>
MyService.asmx
<System.Web.Services.WebService(Namespace:="http... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Matlab shrink image array based on another array I have an array that is holding an image of size (560 x 296) which is the original image that I input into my program. Now I have another array of the same size (560 x 296) that is filled with 0s and 1s. The 1s mark the position of pixels I want to keep in the origina... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: JasperReport 4.1.2 - Using complex Java Bean and subreports I'm facing a problem when trying to generate a report based on some java bean's.
Suppose I have this configuration: a master bean, say
Bean1
*
*String name
*String age
*ArrayList bean2
Bean2
*
*String text
*ArrayList
Bean3 is the last child of the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: declarative authorization in Java EE is there any declarative way in Java EE to restrict method calls based on both the caller and the target entity?
Let's say I have a Forum object and a user set with the Moderator role, but this is on a per-forum basis. The moderator is the only one that can call the deletePost() ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC rendering model not the way I expect Today I faced a problem and I'm not able to get weather I understand something wrong about ASP.NET MVC (and possibly MVC in general) or I miss something about it's implementation.
So, I have a simple model hierarchy:
public class Child
{
public Child(int notId, bo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612518",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: groovy singleton pattern Q1. What is the best way to implement the singleton pattern using groovy? What are the other options available in groovy to support the singleton mechanism?
Any example that would be useful.
Q2. Does groovy support something like File changed listener?
A: Regarding Q2: while groovy itself d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to tell if an object is a RegExp object?
Possible Duplicate:
typeof for RegExp
I have a routine that is testing to see if an object matches given criteria.
testForMatch(objectToTest, matchCriteria) {
// all my testing logic here.
}
The parameter matchCriteria is an object that could look like this, for e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612523",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Parse output from a process that updates a single console line Greetings stackoverflow members,
in a BackgroundWorker of a WPF Frontend i run sox (open source console sound processing tool) in a System.Diagnostics.Process. In that same way i use several other command line tools and parse their output to poulate prog... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612524",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Creating search box using links in html file? I will preface this question with the fact that I am extremely new to HTML and CSS.
I currently have an engineering page at my company I have inherited that has a ton of links. I have organized into some general categories. However, it has been expressed that they would ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: setting submit name outside the form I have a zend_form for updating and inserting data.
I want it to have diffrent sumbit labels but it doesn't seem to work.
My form:
class Staff_Form extends Zend_Form
{
public function init()
{
$this->setAction('')
->setMethod('post');
$fir... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612528",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: HTTPS on app store - what is the process? (I think this question has been asked before, but the answers have been contradictory and may be out-of-date by now)
I'm creating an app which uses HTTPS, using the ASIHTTPRequest library.
My company is based in the UK, and the app will only be released in the UK.
Do I need ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612541",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Windows Phone 7: All I get is System.MethodAccessException This is my first time to develop apps in Windows Phone 7 and I was not that welcome. LOL.
Anyways, my problem is this MethodAccessException and am not sure why it keeps throwing me that exception.
Here's what I was trying to do.
*
*Getting Application Sta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612550",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to call methods in objective-c? I am actually following a tutorial to create a custom view.But when i try to call methods it doesnot work
Here is the tutorial
http://dialogtree.com/2011/02/ios-development-a-shape-class/
So
1)I have created a new iPhone project Test.xcodeproj
2)Include both the classes form tuto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612553",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: File handling : Extra characters in output #include <stdio.h>
int main () {
FILE *fp;
char ch;
char data[100];
int i;
fp = fopen("file.txt","r");
i=0;
while( (ch=fgetc(fp)) != EOF) {
data[i]=ch;
i++;
}
i=0;
while(data[i]) {
printf("%c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DotNetNuke Upgrade Telerik Error I'm trying to upgrade from 05.05.00 to 05.06.03 and getting Telerik-Install-Errors which I can't solve..
Anyone can help?
00:00:00.015 - Installing Package File Telerik_05.04.00_Install: Error!
00:00:01.466 - Installing Package File Telerik_05.05.00_Install: Error!
00:00:02.05... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612556",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: From where may I download the Flash Builder SDK equivalent to Flash Player 11? I wish to use Stage3D and Context3D in ActionScript. For that I need to download the beta version of Flash Player 11. However, I can't find the equivalent Flash Builder SDK with the mxmlc executable that can compile ActionScript into Flas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Available implementations of a distributed REST queue I have the following (common, I guess) scenario: a master node holding a list of items (urls, jobs, whatever) to be processed, and a set of N worker nodes.
Each worker pops an item from the queue, does something, then notifies the master node that the job has suc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612558",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Guidance with header and main template - seek best practice please I'm new to C++ and was needing some help in terms of using the best coding practices. Basically I have created my header file (character.h) with the following data:
using namespace std;
class character
{
//available to all
public:
ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612561",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Write conflict in very simple Access form with subform This one is stumping me because what I'm doing seems so straightforward.
I have an unbound form (frmAdmin) with a listbox (lstUsers) and a subform that also contains a listbox (lstUsergroups).
lstUsers is unbound and shows a list of usernames (row source is the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: C# Select list items at the same index as another list A little stuck once again.
I have been trying to find a way to code the following (all of my attempts failed unfortunately...)
I have two arrays/lists whatever you want to call them.
Both have different items in them, although they will always have the same num... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make Visual Studio close running process before performing build? I'm building WinForms application using Visual Studio 2010. Every time I make a change in the code I have to run the application and check how it works. The problem is that I do this frequently and once I forget to close the previous instance o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612566",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Error JSF 2.1: java.io.FileNotFoundException:*/*.xhtml Not Found in ExternalContext I have an a error in Jboss 7.0.2 "Arc", spring webflow 2.3.0.RELEASE with richfaces 4.0.0.Final(Myfaces 2.1.1):
12:34:19,729 SEVERE [org.apache.myfaces.renderkit.ErrorPageWriter] (http--127.0.0.1-8080-2) An exception occurred: javax... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612567",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to add mouse listener to a component in a custom JTable header cell renderer I implemented a custom header cell renderer which is used by a JTable instance.
private final class TableHeaderCellRenderer extends DefaultTableCellRenderer {
private static final long serialVersionUID = 6288512805541476242L;
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UILabel to display Emoji emotions rather than their unicode values \ueXXXX I'm retrieving values from a server in XML format, the server sends the following string:
"This is a nice string with Emoji \ue056\ue056\ue056\ue057\ue057\ue056\ue056"
I have been struggling to make my UILabel display the emoji icons rather t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7612570",
"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.