text stringlengths 8 267k | meta dict |
|---|---|
Q: Perl multi-dimensional table with headers I'm trying to implement a multi-dimensional table with headers.
Here's an example for 2D:
< dimension1 >
/\ 'column0' 'column1'
dimension0 'row0' data00 data10
\/ 'row1' data01 data11
The headers for rows and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566802",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: About messages from UITapGestureRecognizer The following is from documentation :
Although taps are discrete gestures, they are discrete for each state of the gesture recognizer; thus the associated action message is sent when the gesture begins and is sent for each intermediate state until (and including) the e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566812",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: .load() does not work on IE I am trying to have a little dynamics work in this website http://peps.sqps.nl
Everything seems to work well untill I test the website in IE, it just doesnt give any content back.
The js I use is as following:
$(document).ready(function(){
$('li.navItem a').click(function(){
var url... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566817",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Python: parsing binary stl file I'm having some difficulties while parsing a binary STL file with Python (2.7.1 32-bit and Windows 7 64). The file is a about 450k in size, but my parser suddenly stops working after parsing 244 triangles out of ~8600 with en exception of struct.unpack:
Exception unpack requires a s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566825",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Read data from google docs spreadsheets In my app I have to show the details of a google docs spreadsheet.
In this spreadsheet I have 2 sheets. Each sheet details I have to show in 2 different activities.
Can anyone help me out to implement this functionality. What all things are required for this? I found one jar n... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566836",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Could not load file or assembly 'Ajax' or one of its dependencies. The system cannot find the file specified The additional error message with it is:
I have been facing this error where as i have also included ajax library in my website. Also web.config also has important tags regarding ajaxtoolkit.
Please keep in... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566838",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Get the difference between two SELECT statements I am trying to get the difference between 2 select statements.
Here is the first select:
SELECT 1
SELECT *
FROM h_log_material
LEFT JOIN h_log_stkpnl
ON h_log_stkpnl.MODULE_UNIQUE_ID = h_log_material.MODULE_UNIQUE_ID
where
h_log_material.WO_ID='E11TMB7M05'
and h_lo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566839",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to edit a hardcoded string in compiled DLL? I have a single compiled dll which i need to change a little. It was written by me half a year ago, but I've lost the source code. There's one single hardcoded string in it (it's a filename)
I need to change it from TestPage.html to TestPage1.html (it's not much longer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: wait for an link to appear which is already in the page in selenium Hi i am using selenium with testng.
I have created a code in which i will login to a website and then after that their is a operation that happens and it collects the name of all the ip addresses range given and after scanning their is a link that a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566845",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mapping same entity to itself as a collection Ok, say i have a "Person" entity which needs to have "Person"s as property (say, friends)
Since this is a many to many connection, If i'd create this schema using SQL (Which i'm not, i'm using the hbm.ddl.auto to do it for me) i'd probably make another table containing 2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to restrict users from creating a python object? I have a domain object User. I am looking for some way to restrict other python classes form creating any objects of `user' type.
A: You can use closures to hide the object away from the code but please accept that doing it in Python is considered very unpythonic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: How to persist sessions with Jetty 7 and jetty-maven-plugin? I'd like to configure Jetty to persist sessions on disk, so that restarting Jetty would not lose the sessions, but by reading the documentation I haven't yet got it working.
I'm running Jetty using Jetty Maven plugin (org.mortbay.jetty:jetty-maven-plugin ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566852",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ext.net script error in IE8 that doesn't occur in other browsers (including IE9) I use ext.net controls in ASP.NET WebForms application.
It works fine in Chrome 13-14, Opera 11, FF 6 but not in IE8.
It throws JavaScript errors such as:
Invalid argument
And:
BaseMainContent_MainContent_ctlContent_txtFax_txtCountry... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Setting Java Environment (Apache Tomcat) to encode UTF-8
I want to know how to set-up the Java Environment to encode in UTF-8.
Basically I have JSP pages displayed with some Arabic text but they don't seem to be encoding right.
When I run the pages in the IDE it works fine but on the server where they are host it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why does a spring-security ACL have an identifier? I'm trying to set up our custom version of spring-security but I can't quite understand why an ACL has an identifier that is even supposed to be a primary key if, as I understand it, an ACL itself is never persisted directly in any way but is rather a view on a subs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem in reading XML Hello Guys can you help me solving my problem in reading xml.
I'm just new in xml. Here's the sample xml.
<Org>
<Org ID="1">
<OrgNum>1</OrgNum>
<OrgName>sample1</OrgName>
</Org>
<Org ID="2">
<OrgNum>2</OrgNum>
<OrgName>sample2</OrgName>
</Org>
</... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566865",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Ajax URL property with API variable All I want to do is to be able to specify a User ID and API Key in the URL of an Ajax call:
Currently doing:
$.ajax({
url: "https://www.googleapis.com/plus/v1/people/115332174513505898112?key=AIzaFrCzbKLawSPG8C0tjZDozO1bSWx49mJm13s",
context: document.body,
dataType: 'jsonp'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566866",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Any way of parametrizing whether or not to append inner elements in ant? I am writing an ant file for compiling a flex project (but this question may apply to non-flex ant scripts as well).
I had several targets there that look like this:
<target name="first">
<mxmlc file="${src.dir}/FirstClass.as" output="${out... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to get current NSView in Cocoa? I'm changing my content View from applicaiton
[window setContentView:otherView];
[window setContentView:otherView2]; //etc
What I need, to be able to get always my current Content View, how I can do that?Something like this
[window myCurrentContentView]; or window.view , I coul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: want to find a encode format to improve performance of websocket for web game I use json as the serialize format that runs on websocket in my web game at first.
But there are so much redundancy in json. So I want to find a more effective format to serialize my object.
And then I found protojs(https://github.com/siri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566883",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android Multiple Buttons with different Actions I create buttons dynamically based on the size of an array list that i get from another object. For each entry of the arraylist i need to create three buttons each one with different action.
Like this i need to create 3 times the sizes of arraylist number of buttons. I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Finding overlaping date ranges in an array I have an array of date ranges like this:
[0] => Array
(
[start_time] => 2011-10-01 00:00:00
[end_time] => 2011-10-05 00:00:00
[name] => Apples
)
[1] => Array
(
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Change URL NextGEN Gallery Plugin We are using the NextGen Gallery plugin to generate a slideshow in a Wordpress site. I needed to change the site URL to a a different subdomain, and this seems to have broken the links. The plugin-generated javascript still passes the old URL to swfobject.embedSWF.
Does anyone kno... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adding border to GridBagLayout rows I have a condition where, when ever i create a new row in GridBagLayout, then i have to add an bottom border to that row. How can i achieve this?
A: 1) use JSeparator
2) set/remove Border for JComponent at last line
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7566906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: simple dropdown list i did not found simple dropdown list .
i'm new in mvc3
this part create and fill : ListMonitoringLicenseModelList = new List();
i fill this objectsList in another part and use it to fill MonitoringLicenseModelList
objectsList = new List(...fill objectsList...);
List<MonitoringLicenseMo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Testing Battery Usage I want to test how my application effects the battery of a phone/tablet.
Are there any testing tools which will allow me to do so?
For example, I want to test which modules of my application are consuming the most amount of battery, etc.
A: The question that you have asked is a research topic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566910",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "70"
} |
Q: GWT History JavaScript Not Working in Internet Explorer I am having trouble getting the Google Web Toolkit's History class to work in Internet Explorer, even though it works in Chrome, FF.
I created an app using GWT 2.0 about 12 months ago, and noticed it stopped working sometime. I stripped it back to just the very... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566911",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Is there any equivalent of ProxyPassReverse/ProxyPass for Jboss Is there any equivalent of Apache ProxyPassReverse/ProxyPass for Jboss AS?
A: I'm not sure if JBoss supports anything like this, but it doesn't seem that it should be the role of an application server to also handle all of the numerous and complex feat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: WPF UI detach(pin out) functionality Am looking to implement a detach and popup UI behaviour in my applcation.
It basically means that I will be displaying say, a stackpanel with lot elements on the right side of my page. And on a button click, I want the stackpanel part to popup(removing its allocated space in the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Windows Phone 7 SDK C or C++ Is there any way to use C or C++ on Windows Phone 7? Also i need access to OpenGL from C/C++ and some kind of adapter to C from, for example, C#.
A: Short answer: you cannot. You have to use C# and XNA.
Long answer:
*
*There is no OpenGL API on WP7. You have to use XNA for 3D graphic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Powershell - Form can I continuous update the form using Start-Sleep I am new in Powershell but not to programing
I have created a form to monitor web server availablility
I used Primalforms 2011 which is quite good.
The script works fine and the result is as expected.
The next step is to continuously check the webs... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566926",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: not able to navigate using RedirectToAction I am notable to naviagate to another page using Redirect ie when result is false, then i would like to navigate to exception page which is not happening.
public ActionResult IsLoginExsit(CustomerDO loginData)
{
if (!string.IsNullOrEmpty(loginData.U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to insert image along with text in MySql? I am trying to prepare a sample question paper preparation app.
I am using tinyMCE editor and ajax-file-uploader plugin with it - as some questions may need images along with text.
How do I store my questions that have both image and text into MySql using PhP?
A: I woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566932",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to save and load the contents of a multiline textbox to XML? I have a multiline textbox, and I use databinding to bind its Text property to a string. This appears to work, but upon loading the string from XML, the returns (new lines) get lost. When I inspect the XML, the returns are there, but once the string is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CakePHP Model Associations Here's the deal, i have 2 models: Rus and Audios. I want to use records from Audios in Rus controller, so i go and type in associations like this:
<?
class Rus extends AppModel
{
var $name = 'Ru';
var $hasMany = 'Audio';
}
?>
and
<?
class Audios extends AppModel
{
var $name = 'Audio';
va... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Exception capturing and Error logging I have got a utility class, called ErrorLog, which basically does some basic error logging kinda stuff, recording error messages, stacktraces, etc.
So in my main c# app, I almost always chuck this piece of code, ErrorLog el = new ErrorLog() into the catch(Exception e) part, an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566937",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Convert WSDL1.1 To WSDL2.0 i am asking how can we convert a WSDL1.1 File that contains some WS-SecurityPolicy to a WSDL2.0 file.
I have tried to use the apache woden framework to do so using this tutorial : http://ssagara.blogspot.com/2009/01/converting-wsdl11-to-wsdl20-using-woden.html, but i'am encountering this p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566938",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make a reference to a struct in C# in my application I have a LineShape control and a custom control (essentially a PictureBox with Label).
I want the LineShape to change one of its points coordinates, according to location of the custom control.
I had an idea to set a reference to a LineShape point inside t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566939",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Accessing embedded Solr instance over HTTP I'm running an embedded Solr instance inside a webapp. What is the best way to provide direct (or proxied via the webapp) HTTP access to the Solr instance?
A: Direct access through http for the embedded solr is not an option.
you would need to route the queries to Embedded... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Weird stuff happening while importing modules I hate to give the question this heading but I actually don't know whats happening so here it goes.
I was doing another project in which I wanted to use logging module. The code is distributed among few files & instead of creating separate logger objects for seperate fil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566942",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: actual difference between - (IBAction)pushClear:(id)sender and - (IBAction)pushClear:(NSButton)sender When I link buttons to the source code (.h file in this case) and select NSButton as type it Xcode will write:
- (IBAction)pushClear:(id)sender;
as far as I understand it should be
- (IBAction)pushClear:(NSButton)s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery get response from php file after posting I'm posting some data to a php file with jquery. The PHP file just saves the data and prints the success of fail message. I would like to get the message generated by php file and embed in a div. I'm unable to figure out how i can return the message from PHP file.
Here... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566946",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: MYSQL: Procedure with if statement I'm trying to make a routine that first checks a users password, if it's correct it shall return some values from a different table or change some values in a row.
Is this even possible without making two queries that you handle in PHP? First call for the password, check if its cor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566948",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: QSql module and multithreaded application I'm troubled by how the Sql module works with multithreaded application in Qt.
http://doc.qt.io/qt-5/threads-modules.html#threads-and-the-sql-module clearly states
that "A connection can only be used from within the thread that created it".
However this piece... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566949",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Extjs Tree editor - disable single click to edit I am using tree editor. I need the tree node to become editable only when it is double clicked. So far I have done this
var tree = new Ext.tree.TreePanel({
root: this.getChildren(),
height: 300,
loader: new Ext.tree.TreeLoader(),
useArrows: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why code in any unit finalization section of a package is not executed at shut down? I have an application that uses statically-linked runtime packages as well as designtime packages that use them. For some reason the code in any unit finalization section is not being run at runtime (I can't tell when this started h... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Why the following JQuery does not work on IE browser when I put it in my website? I am using DDCharts JQuery plugin to put some charts in my website. I downloaded the plugin and the original files and examples work fine in Internet Explorer 8+ but when I included in my website, it did work on IE but it worked well o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: CakePhp: Url based internationalization I've a small problem with my internationalization:
I want to have some url looking like this: http://mywebsite/eng/controller/action/params...
I found this http://nuts-and-bolts-of-cakephp.com/2008/11/28/cakephp-url-based-language-switching-for-i18n-and-l10n-internationalizati... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: django model filter question I have a model which I need to filter based on different conditions. I want to avoid having to write complicated nested conditions and fitting a model filter onto every situation.
Is there anyway to concatenate or combine the filter() arguments into a variable and then put that variable ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET web application taking a lot of time to Debug Actually i have an web application where i have a form which takes data from MYSQL database where i have written an Sp to get the data from DataBase(compares 100.000 records and gives 40,000 of records as output) and bind it to Gridview. At the very first time it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566969",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Facebook oauth dialog redirect after login problem on mobile touch site We redirect users to below URL on mobile phones for application authorisation:
https://m.facebook.com/dialog/oauth?client_id=XXXXXX&redirect_uri=http://www.server.com/callback.php&scope=offline_access,user_likes,publish_stream,publish_checkins,u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery ajax working on local file but not working from a remote url? I am currently trying to get data from a remote url using jQuery ajax calls.
I am just using a basic jquery function to do this. When using a local file the functions works correctly but it does not get a remote file.
I'm using the local files usin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566972",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can Vim restore the state exactly after an undo? For example, if I'm in the end of a word and I type 'diwu', the cursor ends up at the start of the word.
Same applies if I have something selected in visual mode (after undo I'd like it to go back to the visual selection I had before the operation I've just undone).
S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566977",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Webdriver/FXDriver utils.js causing 'unresponsive script' error in Firefox I've got some browser tests that run using Watir webdriver and FXDriver and things are generally working ok. However there is one test that loads a lightbox that contains a lot of HTML, and when the tests open this lightbox, Firefox shows a p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: T-SQL: CASE statement in WHERE? I have the following WHERE clause in my SQL query currently:
WHERE c.Town LIKE '%' + @Town + '%'
What I want do is make the first '%' optional - so if the user has selected to just filter by records that just start with the given text, the WHERE would be
WHERE c.Town LIKE @Town + '%'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566982",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ® gets converted to ® in Python while parsing XML My RSS feed ontains:
<title><![ CDATA[HBO Wins 19 Emmy® Awards, The Most of Any Network This Year]]></title>
Now I am parsing RSS and then assigning the title to title as below:
for item in XML.ElementFromURL(feed).xpath('//item',namespaces=NEWS_NS):
title... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to call a method with argment in an input component? I want to call a method with parameter that return a string.
public String MyMethod(Integer param) {
String xx=......;
return xx;
}
And I want to display this result in <p:inputText>. How can I do this? I'm using primefaces.
A: Let's say you have the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Force all axis labels to show In ASP.NET Column Chart, when the chart size is small some axis labels are not shown.
Question: How can I force all the label to show even if they have to overlap?
A: Set the Interval property for the Axis to 1, this will enforce it to display all the available labels irrespective of ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566996",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "25"
} |
Q: Merge Crystal reports .NET 4 C# Good day,
I'm not sure if this is possible but I want to merge 3 Simila reports into 1 at runtime in report viewer. I have 3 reports that are very similar and need to all run at the same time, currently I have to show the viewer 3 times to show all the reports. I would idealy like to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7566997",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Save output of CGI script under different filename than the script name I have a Python CGI script script.py running on a server. It produces a CSV file as output.
I want computer-inexperienced people that don't know about file extensions to be able to just save the file to their hard drive and use it by double-clic... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567005",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to adjust component's size according to the screen ( or display ) size? I tested my application in another mobile phone , a htc mobile phone , and it has a very large screen size. So I was very surprised when I saw the arrangement of the components ! Here is the captured image of the screen from the camera of an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set all post data in ModelMap in Spring MVC? I have many input fields in a form to post data to server side.
And in controller, I want to get all attributes in ModelMap like this:
public String save(ModelMap model) {
....
}
I don't want to use @RequestParam since there are so many fields to be sent. I th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567009",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jquery fullcalendar: JSON data not loading in any browser except FF3 I've got a fullcalendar set up on the following url: http://www.forumtheatrebillingham.co.uk/show-calendar.html
It had been working fine, but now something has gone wrong and the data returned by my JSON feed isn't being displayed in the calendar i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567020",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JavaScript Closures use global setting object or pass it to each function another question concerning javascricpt closures. I have a global "settings object". Is it better to use it from within functions in global scope or pass the object every time a function needs to access the object?
For a better understanding a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to integrate spring social in Spring Roo What's the simple procedures (step-by-step) to integrate Spring Social in Spring Roo? I am currently using STS. Any help would be appreciated.
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7567028",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Using Python, how do I close a file in use by another user over a network? I have a program that creates a bunch of movie files. I runs as a cron job and every time it runs the movies from the previous iteration are moved to a 'previous' folder so that there is always a previous version to look at.
These movie files... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567029",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Boost message_queue: just the constructor lets me configure it, no other member functions available This is a classic Boost message_queue example:
#include <boost/interprocess/ipc/message_queue.hpp>
using namespace boost::interprocess;
struct Data { ... };
int main() {
Data data1;
message_queue::remove("me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567034",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Issue with running a migration on heroku This is a follow up to this post Rails, data structure and performance, where I have attempted to create a Counter Cache on Rails. To not have it to default 0, I have also added updating the column to the existing count value in the database.
Running rake db:migrate on devel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567040",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Prevent duplicate records when I save the values into the ComboBox - C# I have been saving into the ComboBox a value out of the selected column in datagridview with below code.
My question is:How can I prevent duplicate records when I save the values into the ComboBox? How can I do that?
Code:
int ColumnIndex = dgUr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567046",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Parameters of AMDeviceInstallApplication function() Can anyone tell me the parameters of AMDeviceInstallApplication function() in iTunesMobileDevice.dll?
A: AMDeviceInstallApplication(IntPtr sockInstallProxy, IntPtr cfStrPath, IntPtr opts, CallBack callback, IntPtr unknow);
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7567047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: NSThread stop / pause I have created a NSThread instance in my app. After some point I want to pause it. Is there any way how to do that. I tried doing,
if(![myThread isFinished]) {
myThread = nil;
}
but still i m not able to stop that thread.
A: [NSThread sleepForTimeInterval:TIME_TO_PAUSE_THREAD];
OR
YOu have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567054",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: VS2010 takes long time to show a project properties I have Visual Studio 2010 Ultimate installed on my super machine (8 Xeon Processors, 12GB Ram, ...). My problem is that VS2010 takes a long time to open any project properties!!
Does any one knows a fix to this problem?!
Thanks in advance.
A: I found the solution!... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Wrap large text in PHP I want to break a line after certain number of characters like after some 20 characters it should break line after nearest full stop(.) in PHP.
I have a text like this:
A Paragraph follows like "Our Customer service dept. will help you
with any issue you might have. Buyer is responsible fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Some space between divs in line I want to build 'rubber' interface, so I use div with width in %, but when I try to fill 100% of width with several divs, they not intermix on line, but in suome they have 100%. If use table then all fine. Here are examples:
<div style='white-space:nowrap;'>
<div style='width:50%;... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DebugBreak in Unix/ Linux? Do we have similar windows API of DebugBreak in Unix/ Linux. I want to debug a daemon process which should open NetBeans when DebugBreak statement is executed. Thanks in advance.
A: there is __builtin_trap() GCC intrinsic.
A: Whav! this is what I am looking for Embedded break points in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567066",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Reading text from an external applications textbox I am trying to extend some features of a external programm that is not able to use plugins or something. So I have to write my own app that reads the text from a textbox from this external application and trigger some own actions.
By using the FindWindow API in user... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567068",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: LINQ CSV Database - Quick way for except I have a pair CSV Files.
CSV1 :
Option Number , Product Number , Product Name
CSV2 :
Product Number , Product Details , Product Details
The number of records is very high , number of files (pairs generated weekly) is also very high.
CSV2 will have some of the Product details ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567069",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I capture the post parameters from a server file using ajax in jquery? I have
datestring ="name=one"
$.ajax({
type: "POST", url: 'url.com', data:datastring,
complete: function(data){
alert(data);
} ,
success:function() { al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calendar with Outlook like functionality I am trying to do the following for managing appointments.
When the user opens the app, show him a calendar control which will fetch his schedule from the sql server database. If the user is scheduled to meet Mr. A,X and Z on 15th, then the calendar control should display thr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Replace text using sed i am having trouble replacing the modified date in my script via sed.
I am getting the last modified date like this:
olddate=`grep -m1 "Built " script.sh | cut -c 22-29`
I get the current date with:
newdate=`date +%d/%m/%y`
Basically i want to replace old date with new date
sed -i "" "s/$old... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567074",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Alignment one cell in h:panelGrid How to align a particular cell inside a h:panelGrid in jsf 2.0. I am able to align whole table by adding style in the h:panelGrid. But I need only one cell to be aligned center.
Thanks
Brajesh
A: If you want to say that you need only one column (through the word cell) to be aligned... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567078",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Plain JS countdown with repeat and delay I keep running into several issues when creating a countdown script
*
*it does not run smoothly
*hard to make it repeat (closure)
*hard to delay the start and to delay the repeat (closure)
Can someone please help me FIX this code which should work in my opinion but doe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Need help with zend framework paginator I wanted to generate a table with dymanic columns and rows
Example if i have a array of
1.1, 1.2, 1.3, 1.4
2.1, 2.2, 2.3, 2.4
3.1, 3.2, 3.3, 3.4
Currently is displaying 1.1 1.2 1.3 1.4
then 2.1 2.2 2.3 2.4 ...etc
but I wanted to display 1.1 ,2.1, 3.1
then 1.2 2.2 2.3 ... etc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Flex MX:HTML handling errors and loading problems I have a simple mx:html that load a page.. I'd like to show a popup when there is a problem loading the page...
How can I handle this event? I have not find anything useful on the web :(
A: mx:html is based on htmlloader, and unfortunately you cannot read HTTP head... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567084",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Is adding a tickbox that does nothing !ifempty bad or clever? I have a very bespoke system that we will use internally to track payments.
I have an input box, and if the user leaves it blank (Does not know X), it inserts "Awaiting X" into a database instead of the X.
The idea i have to stop the user fill in either ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567086",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ThreadLocal<> and memory leak .Net 4. ThreadLocal<> implements IDisposable. But it seems that calling Dispose() doesn't actually release references to thread local objects being held.
This code reproduces the problem:
using System;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How to learn the link between C++ code and the generated assembly code? My question is specifically for Windows C++ compilers and Visual Studio, but I got offered to interview for a job in finance where they wanted somebody very technical to write real-time multi-threaded code who could analyse at assembly level the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567092",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Json.net serialization of custom collection implementing IEnumerable I have a collection class that implements IEnumerable and I am having trouble deserializing a serialized version of the same. I am using Json.net v 4.0.2.13623
Here is a simplier version of my collection class that illustrates my issue
public class... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "21"
} |
Q: Javascript Regular Expression Problem str = 'autocomplete=\\\"off\\\" name=\\\"composer_session_id\\\" value=\\\"1557423901\\\" \\\/>\\u003cinput type=\\\"hidden\\\" autocomplete=\\\"off\\\" name=\\\"is_explicit_place\\\" id=\\\"u436754_5\\\"';
or use this string
session_id\":1557423901,\"include_source\":\"web_com... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: TabGroupActivity startChildActivity - pause currentActivity Extending TabGroupActivity, when I start a new childActivity:
public void startChildActivity(String Id, Intent intent) {
Window window = getLocalActivityManager().startActivity(Id,
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));
if (wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567100",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Recommendation for Optimum Template Engine for Python Web Dev in a Particular Use Case For Python Web Development, there is a large selection of template engines. My work is limited to a fairly narrow/specific set of use cases. A description of these might suggest to someone who has a working knowledge with many/mos... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Session variable fetched into a local var changes when operating on the local one i noticed a strange behaviour when interacting with session variables in Django.
In one of my app i created a middleware.py file containing a function that copy a session variable that stores an object into a local one and then i chang... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: read pdf from itext I had made a table in pdf using text in java web application.
PDF Generated is:
Gender | Column 1 | Column 2 | Column 3
Male | 1845 | 645 | 254
Female | 214 | 457 | 142
On reading pdf i used following code:
ArrayList allrows = firstable.getRows();
for (PdfPRow currentro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I edit a submit button in Wordpress? I want to add an onclick attribute to the submit button of the media.php section in wordpress adminpanel. Where can I edit this button in Wordpress? It only writes out <?php submit_button( __( 'Update Media' ), 'primary', 'save' ); ?> and I can't find a way to just edit th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Delete cookies UIWebView How to delete cookies in UIWebView? This code:
NSArray* cookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies];
for (NSHTTPCookie *cookie in cookies) {
[cookies deleteCookie:cookie];
}
deletes cookies but when I restart my application, there are same cookies in NSHTTPCookieStora... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Change the font color and size of UISegment Control I want to change the font color and font size of uisegment control. is is possible ?
if any one has do this and any one has solution please tell me or share any helpful link
Thanks.
A: As some other answers mention, you can also use setTitleTextAttributes:forSta... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567131",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: $("#slider_range").slider is not a function Ok, I have included the google api libraries for Jquery UI, like so:
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js' ></script>
Now I have a script that updates some spans and a hidden input on document slide and no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Beginners Moq question on Verifying I'm just playing around with Moq and I cannot work out how to get a call to Verify to work as expected. My problem seems to be that the method I'm calling on the SUT is not being called. Here's my code to test:
public class ImageHandler : BaseHttpHandler
{
public override void ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to fix this generic problem within the repository pattern? I have a type converter which converts a string into an object and vice versa, the type converter takes the local into account. To implement easily several type converters, e.g. for BigDecimal, Point, and so on I decided to make this interface generic.
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567136",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: java : get values from matrix for each time I do an action on y , get values 0 and 1 from table.
String[][] columns = {{"col1" , "col2"}};
int[] values = new int[columns.length];
String[] y = { "TEST", "BUG" };
for (int j = 0; j < y.length; j++)
{
//do some actions
//bellow I need to get at the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7567137",
"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.