text stringlengths 8 267k | meta dict |
|---|---|
Q: Appwidget with square layout not showing properly in landscape mode I have built an appwidget with an square layout, and so it doesn't fit exactly in the standard widget sizes as recommended in http://developer.android.com/guide/practices/ui_guidelines/widget_design.html#sizes.
I chose a 3x2 size (android:minWidth="... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597837",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do i FTP upload directory in Powershell I came across this post:
Upload files with FTP using PowerShell
But I'm looking how i can upload a directory with files in it to a FTP server.
Thanks in Advance
A: You should write a script that loop into directory and then upload files one by one. I don't remember that ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597842",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Dealing with Listeners I know the listeners are supposed to make life easier, especially in a multi-tasking environment like android, but sometimes (to me) it just makes things harder.
Right now I have an ExpandableList activity which presents a list of events, and I want the user to select the group & child of inte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Color change on hover does not work when the background image is changed If the menu.gif here is replaced by a different image then the hover option does not work. Can anybody help me identify the problem
#menus li {
display:inline;
list-style:none;
}
#menus li a {
background:transparent url(img/**menu.gif**) no-re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597847",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to scroll listbox in wpf datagrid row details when IsDeferredScrollingEnabled is set to true I have a wpf datagrid with IsDeferredScrollingEnabled set to true. I have a listbox inside row details template. When I try to scroll the listbox by dragging its scrollbar, its not scrolling because of IsDeferredScrol... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597848",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: security-role-mapping not working with file descriptor Using glassfish 3.1.1 for a Java EE6 project the security role mapping as defined in glassfish-web.xml has no influence on the 'user - role' mapping.
Calling request.isUserInRole("USER") as well as request.isUserInRole("ADMIN") always returns false.
glassfish-w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597849",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to handle exception due to expired authentication ticket using UpdatePanel? I am pretty sure the reason of the error is because the forms authentication "ticket" has expired. When the users have not done any pagerequest for the last 20 minutes and click on any of GridView links (to edit, delete, sort...) the exc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to change ImageView source in Activity onCreate I am working on a android app and I have 3 diff images in my res/drawable and I would like to change which images gets displayed from writing code in my OnCreate in the Acitvity. can this be done?
A: Its very easy to set the change the image of an imageview at ru... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597855",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is there a way to only expose a certain web method in a .Net Web Service to a particular user/group? I have a web service that has multiple web methods. Is there a way to expose only one of these web methods to a certain group or person?
As of right now, I use Windows authentication and user groups for authorization... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597861",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Passing object in RedirectToAction I want to pass object in RedirectToAction. This is my code:
RouteValueDictionary dict = new RouteValueDictionary();
dict.Add("searchJob", searchJob);
return RedirectToAction("SearchJob", "SearchJob", dict);
where searchJob is instance of SearchJob. But I do... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597863",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "35"
} |
Q: Threads vs Processes in .NET I have a long-running process that reads large files and writes summary files. To speed things up, I'm processing multiple files simultaneously using regular old threads:
ThreadStart ts = new ThreadStart(Work);
Thread t = new Thread(ts);
t.Start();
What I've found is that even with sepa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597869",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: valgrind multiple type suppression I'm writing a suppression file for valgrind and I have one like this (taken from the core manual)
{
libX11.so.6.2/libX11.so.6.2/libXaw.so.7.0
Memcheck:Value4
obj:/usr/X11R6/lib/libX11.so.6.2
obj:/usr/X11R6/lib/libX11.so.6.2
obj:/usr/X11R6/lib/libXaw.so.7.0
}
I want to al... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ASP.Net web form and MySQL with SSH In my project I am supposed to access MySQL database from asp.net web form. The MySQL database is protected by SSH. How can I access the MySQL data from web form using the SSH credentials ..???
Thanks in advance
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7597877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: error stray '\302' in program on UIButton setAnimationDuration: I am getting this error "stray '\302' in program ", while I am using this following line of code:
[UIButton setAnimationDuration:1.0];
Can anyone tell how can I resolve this error.
A: \302 is an unprintable character which is somewhere in the your cod... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Removing parts from HTML page in UIWebVIew I'm trying to remove text from html page, and I'm using this code:
NSRange *r;
while ((r = [commentsOnly rangeOfString:@"<[^>]+>" options:NSRegularExpressionSearch]).location != NSNotFound) {
commentsOnly = [commentsOnly stringByReplacingCharactersInRange:r withStri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597880",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best technology for client-server Android App I need to make for school an app that runs on Android. Actually there are two apps, a client and a server. Ther server runs on a PC while the clients run on Android devices. I want to know what is the best technology for this. I know RMI and WebServices are not implement... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597881",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Best practice for Broadcasts, ContentProviders, and ContentRecievers Okay so up front I will say that I am new to Android. I have made a few small projects and played with a few things and done tons and tons of reading. So here is the task I am trying to accomplish:
I have a remote service that runs in the foregr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597882",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can enctype="multipart/form-data" be used for non file inputs as well? Is this allowed?
<form enctype="multipart/form-data" action="__URL__" method="POST">
<input type="text" name="text_input" />
<input type="other_types" name="other_types_input" />
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597888",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: MVC3 & JSON.stringify() ModelBinding returns null model I am trying to get model binding with MVC3 and JSON working but I have had no luck... No matter what I do I seem to be getting a null model on the server.
Method Signature:
public ActionResult FilterReports(DealSummaryComparisonViewModel model)
Javascript UPDA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597892",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: I would like to fill a jqmodal with data coming from a jquery post() I have this code which is functional:
jQuery("#Zone__" + row + "__documents").find("td:eq(3)").mouseover(function(){
var text = jQuery("#Zone__" + row + "__documents").find("td:eq(3)").html();
if(text.indexOf("...") > 0){
jQuery.post("/_common/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 32bit TIFF to another format in Python I need to convert a 32 bit TIFF file (or the corresponding int32 array) to another format that Tkinter can display (like gif fe)
How do I do that? Converting the array to int16 or so completely blurs the picture...
A: PIL is your best friend.
A: You can use PIL, Image Magick,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Reading newly created entity from object context I have ObjectContext and entity, let's call it Device.
Entity key of entity is not autogenerated, and is specified during adding to context.
After adding of new entity with following code
Context.Devices.Add(new Device{Id = someVal, /*initialization*/});
I am trying ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597903",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ODBC Call Syntax for multiple return values So first off, sorry for the length of the question...
So basically I'm having issues calling a stored proc from an Informix database where the stored proc has multiple return value, while using ODBC in .NET (aka an ODBCCommand), and I haven't seen anything on the internet ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597906",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Defining maximum variance of an UITextView If you have a normal UITextView with loads of text in it you can swipe up and down:
*
*if you swipe left or right in a very horizontal line, nothing will happen
*if you swipe left or right with a very slight angle, you will swipe up or down
So there is obviously some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597909",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can i inject dependencies to Symfony Console commands? I'm writing an open source application uses some Symfony components, and using Symfony Console component for interacting with shell.
But, i need to inject dependencies (used in all commands) something like Logger, Config object, Yaml parsers.. I solved this... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "46"
} |
Q: CheckBoxList AJAX async postback issue I have 2 CheckBoxList controls - chk1 and chk2. I need to use an async postback to clear the selections of a CheckBoxList if the other one is selected. The following will not clear chk1 if it had selections, and an item chk2 was checked:
<asp:ScriptManager ID="sm1" runat="serv... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is it possible to show a shell only once all the modules have been loaded? I'm currently working on an application which uses PRISM 4 to divide its functionalities in different modules.
I noticed that my application's Shell, which holds the modules' views in its regions, is loaded and displayed before the modules ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597917",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Scope of System.setProperty in Tomcat This question is "cousin" of this one involving Android. But here we are in Tomcat environment.
If in my webapp I set a property with System.setProperty("property_name", "property_value");, which scope will it be applied to?
*
*all JVM in this machine
*all Tomcat webapps
*on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597925",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Send accelerator with mouse to perform selection of text I need to make selection of text using mouse instead of ctrl+A
I tried:
sendAcceleratorKey(MouseEvent.BUTTON1, "");
but I don't know which argument could I set to say make a click with mouse and let the mouse enforced to select the text.
A: If the text is i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597927",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I use subqueries in a 'containable' condition? In my CakePHP I have ModelA which hasMany ModelB. ModelB has an int value Q.
Can I query ModelA and use containable to ensure that only those ModelB records with the maximum value for Q?
I've tried this:
$this->ModelA->contain(array(
'ModelB.Q =(SELECT MAX(Model... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .NET 4.0 Page.Response.Write vs <%= %> I have some UserControls in a webpage. When I use it in the ASPX code of my UserControl
as such <div><% Page.Response.Write("<a href='http://www.microsoft.com'>test</a>") %></div>, my anchor is rendered at the start of the page:
<a href='http://www.microsoft.com'>test</a><htm... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ArgumentError: assertion message must be String or Proc using assert_select I'm writing a controller test for a rails 3.1 app using testunit 2.4.0.
I want to assert that a certain heading does not appear on the page.
I'm using assert_select like this:
assert_select 'h1', {:text => /Key Dates/, :count => 0}
and get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597931",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: (De)Serializing "Object"s I have to XML (de)serialize the following class:
this gives the following output:
<ArrayOfPropertyFilter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<PropertyFilter>
<AndOr>And</AndOr>
<LeftBracket>Non... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Return substring up to first digit I am trying to group rows by a field that either has the pattern [:alpha:][:digit:].* or [:alpha:][:alpha:][:digit:].* by the substring up to but excluding the digit. i.e. the returned substring will either have one letter, or two.
I am thinking something along the lines of:
SELECT... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597935",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: loading and handling settings in a php we bsite How would I load and handle a large amount of settings. Where I can enable and disable options. So lets say I have a table in mysql called php_settings and then I have 100's of fields that relate to the web site.
How would I load them in and then assign them to an arr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597941",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Determine if element is a text node using jQuery Given a jQuery element, how can I determine if the sibling on the right is a text node and not another element? In PHP, you would compare the nodeType to #text - what's the equivalent in this case?
window.jQuery('body').find('a').each(function (i) {
if(window.jQ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597943",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Javascript Alert pop up not working in IOS for phonegap I have phonegap app build for android and IOS. The alert-box is working great in Android but I am not getting alert in Iphone. Please help.
This piece of code works good for droid:
else {
navigator.notification.alert('Invalid Username or Password!');
}
A: I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Maven : error: generics are not supported in -source 1.3 , I am using 1.6 I have imported an existing Maven project into Eclipse IDE .
I have modified some code in it , it compiled successfully ,
I am using Java 1.6 as compiler
and when i am trying to run maven clean install -X
Its giving the following error
cou... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: windows command config file? I'm running a few different windows command scripts that all reference the same directory. The directory I want to reference changes from day to day depending on what I'm working on. I've looked into taking command line args, but I think the more elegant solution would be to have all the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When and how reliably are MVC filters called? I want to setup some 'stuff' at the start of a controller action, and tear it down after a page has been rendered. I've achieved this by overriding the 'OnActionExecuting' and 'OnResultExecuted' filters (I'm using MVC 2).
The big question I have at the moment is, how rel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597962",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Xml loaded dataset is missing a table When I read an xml file into a dataset, if the root node has more than one of each child tag, it doesn't create a table for the root node. Why is this? Is there any way to get it to generate the root table without modifying the xml?
static void Main(string[] args) {
var ds =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Android, event listener? I have a loop that runs through an array of image views, adding an event listener to each, how can I find out which image view was pressed inside the listener?
imageViewArray[i].setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JSF2.0, how commandButton knows which bean to send this I am starting in JSF2, comming from spring mvc, so I have some doubts that I cannot find answers on Core JavaServer Faces v3
Like this one...
How can the tag h:commandButton know which bean I am talking about ? I can only have one Bean per JSF page, is that it ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597970",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Explanation of Base Class (Flash) and inheritance I have a MovieClip called PopUp where I wrote some code.
I need to make another MovieClip that uses pretty much the same code...can I just use the PopUp class as the base class for my other MovieClip?
They look different but they have the same instances on the stage ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: i looking for how make a refresh of tableView in pulling down? if anyone can help me for make that (pull down to refresh):
source: http://cdn.iphone4jailbreak.org/wp-content/uploads/pull-to-refresh-jailbreak-app-iphone-4.jpg
A: There are several resources to do that:
*
*EGOTableViewPullRefresh - An open source p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597981",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why binary search not find my string? I have an ordered txt file like this:
aaa
bbb
ccc
ddd
eee
I want to check if "ddd" string exists in the file...
Here my func:
- (BOOL) asd:(NSString*)sting
{
NSArray *LinesCount =
[[NSString stringWithContentsOfFile:@"longfile.txt"
encoding:NSStringEncodingConversion... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597984",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I get links that are AJAXy to replace the content inside an iFrame? So, I added to my AJAX links the name of the iframe, target="name", but I think I might be erroring on the replacing part...
page.replace_html("section-content",:partial=>"/path/contents/edit",:object=>@content)
yeah, it's RoR, but that's no... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: 16 bit asm instruction set What set of instructions is used in COM files? I assumed it was 8086, but it seems that I was wrong. In a 8086 manual I found, shl can only accept 1 or cl for its second argument, while immediate values other than 1 work fine for me. In case it matters, I'm using NASM.
Thanks for your time... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Making Selection & Adding tag dynamically in JavaScript I need some help about JavaScript on iPhone UIWebView;
I have HTML like below:
<html>
<head>
<title>Example</title>
</head>
<body>
<span>this example for selection <b>from</b> UIWebView</span>
</body>
</html>
I want to make a selection, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597989",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to determine + key down? Using jQuery, how do I determine that user has pressed '+'. I know that by matching keycode in the keydown event is the way to go, but that is apparently not cross platform. Since, the keycodes vary in Linux OS. Matching to charcode is also not an option because it is not cross browser. ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597993",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Strange (for me) declaration of function What that declaration means in C ?
void help_me (char *, char *);
I'm newbie, but I know about pointers. Seems like this is something different ?
A: This declaration says that help_me is a function taking two pointers to char (for example, two strings).
For a function proto... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597994",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: SQL return max value from child for each parent row I have 2 tables - 1 with parent records, 1 with child records. For each parent record, I'm trying to return a single child record with the MAX(SalesPriceEach).
Additionally I'd like to only return a value when there is more than 1 child record.
parent - SalesTran... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7597995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the complete structure of the browser object in QTP? I know this might be a very basic question but I've recently started using QTP and am still picking up a few things. For the last couple of hours I've been searching for an answer to this but no luck so far.
My question:
In QTP code we usually write:
Brows... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598006",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linq - Query a query result agains a list of strings I have a list of strings
List<string> firstNames = new List<string>();
I have a query result
var contacts = (from p in datacontext.Contact)
How Can I Query the original result (contacts) against the list of strings?
select * from contacts where ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: CodeIgniter: Preventing row_array() vs row() typo's? Twice now I've mistakenly used row() instead of row_array() when fetching a single row result. Usually, it goes unchecked without any warning messages. 15-30 minutes later I finally notice the issue; doh doh!
Does anyone have any good suggestions as to ways to pre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Passenger is listing all files instead of running my Rails application I'm trying to add the Rails application to the a directory of another application and for some reason the rails application is not rendering
Here's a link to my application
Here's VHOST
<VirtualHost 184.106.111.142:80>
ServerAdmin joe@joe.co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598017",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Django flush vs sqlclear & syncdb Can anyone tell if there is a difference between
>manage.py flush # or reset
and
>manage.py sqlclear appname | python manage.py dbshell
>manage.py syncdb
A: Official docs for
flush and
sqlclear
Flush carries out the SQL Drops on the entire db, sqlflush only prints out the SQL... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598024",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Create Custom Search Bar I would like to add a search bar to my activity that should look like this:
My Layout.xml looks like this:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598025",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IOS: index page of a scrollview with infinite paging I have this code:
it's for 3 scroll view to have a random paging
CGRect frame = scrollView.frame;
CGRect frame1 = scrollView1.frame;
CGRect frame2 = scrollView2.frame;
frame.origin.x = frame.size.width * (arc4random() % (arrayimage.count ));
frame.origin.y = 0;
fr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598030",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ASP.NET MVC3 Multilingual webpage Javascripts not working on changing culture name In my multilingual website, Javascripts in all the pages are not working when i am changing the culture name in the web.config file. (using <globalization culture="" uiCulture=""/>)
The javascript is not working for the below mentione... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598033",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Custom Component using JSF I want to create my own tag, but it doesn't work
Component:
package com;
import javax.faces.component.UIOutput;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import java.io.IOException;
public class Printer extends UIOutput {
private String label... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598036",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: Spring Test Configurations I'm fairly new to Spring and my understanding is a bit scratchy so bear with me and word answers for an idiot.
I've started working on a relatively large, maven based project which has a load of (xml) spring configuration. For this we have a bunch of JUnit tests. At the moment spring confi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598038",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Online receipt validation for Mac App Store In-App Purchases For in-app purchases for iOS we can use an online API for validation, meaning that we can validate the purchase on our own server.
Is there any way (API) for such validation of in app purchases for OS X?
I've found only this snippet about in-app validatio... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: I don't understand how "?" is being used here So, I have this PHP code:
$tabid = getTabid($module);
if($tabid==9)
$tabid="9,16";
$sql = "select * from field ";
$sql.= " where field.tabid in(?) and";
Now, how exactly does the ? work here? I vaguely understand that in PHP, ?: is a ternary operator, but the colon is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Displaying errors in divs, one below other I need to display some error messages (one, two, n errors) in a series of divs in my page. They need to appear horizontal centered and fixed at top (even with scroll page).
I tried something like this (for two divs for now):
<div id="mensagens">
<div id... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598058",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: HTML Forms: Display entered data on a separate page I have a simple HTML form like this:
<form name='input' action='thankyou.jsp' method='post'>
<p>Email Address: <input type='text' name='email' size='16' /><br>
<p>Password: <input type='password' name='password' size='16' /><br>
<p>Verify Password: <input type='pas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unique attribute for 2 elements via XML Schema I have the next xml structure:
<menubar>
<menu id="id1">
<menuitem id="id2"/>
<menuitem id="id3"/>
<menuitem id="id4"/>
<menu id="id5">
<menuitem id="id1"/> -error because has the same id as the first menu element
...
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: If the admin don't set the ssh service port on default 22, how can i find the port that he set? nmap can't do the work. I have checked that.
ps: I just use the basic nmap function(nmap host).
Oh, My god. Trust me i don't plan to do bad things. I am just curious! Please don't do -1!
update, use command: nmap -v -p1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to create a Windows-style textbox in a C++ Win32 application I tried this:
#include <windows.h>
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
LRESULT CALLBACK W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598067",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Link in TextField of flash cannot be clicked if it is embedded in different domain I wrote a flash (ActionScript3) based radio streaming player, there is a link in the player for users to click. It's is a "a" tag in TextField. The code looks like this
textField.htmlText = '<u><a href="' + url +'">' + htmlEscape(tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598070",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Izpack: Validator doesn't work? I have a field description in my "UserInputSpec.xml" file.
<field type="radio" variable="selected.source" >
<description align="left" txt="Please select TBPAPIIntegrator data source:" id="combo.text" />
<spec>
<choice txt="IMKB Server" id="combo.item.i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: NULL Exception in EF 4.1 I use Entity Framework 4.1, SQL Server 2008 & .NET 4.0
I have a Sql table:
create table SchemaVersion (
Version int not null,
constraint PK_SCHEMAVERSION primary key (Version)
)
And POCO
[Table("SchemaVersion")]
public class SchemaVersion
{
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598077",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why does my counter variable not come back to 0 in a multithreaded scenario? I'm building a Windows Service base class to manages the polling off a schedule's table of any pending task and the running them.
The Windows service is using the System.Timers.Timer to start the schedule's table polling.
I'm setting the Th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598081",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to set placeholders in like statement query I am creating a PreparedStatement with SQL which have a like statement, and I am setting the placeholders using setString(), method, but it does not give any error or fetch any records. When I run the query direct at database by setting arguments in like statements the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Purpose of Activator.CreateInstance with example? Can someone explain Activator.CreateInstance() purpose in detail?
A: Well i can give you an example why to use something like that. Think of a game where you want to store your level and enemies in an XML file. When you parse this file, you might have an element lik... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598088",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "164"
} |
Q: Books and tutorials about jQuery and Rails 3 I am trying to learn jQuery in Rails 3 context. (I have no experience with other JS libraries). A couple hours Googling didn't turn up much. The only book I can find is Practical Rails with jQuery Projects.
Could you recommend books, tutorials etc. that cover more than ju... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598089",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery dialog and ajax postback A page on my site are auto-reloading every 15th second. It's being done by using jQuery's .ajax function.
My problem are, that everytime the page are being loaded by the user, the form in the dialogs work fine.
But when it's reloaded automatically by the page itself, the inputs are be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598090",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Not specifying which list implementation I have a doubt considering changing this :
List<String> elements = new ArrayList<String>();
elements = elementDao.findElementsById(elementId);
to
List<String> elements;
elements = elementDao.findElementsById(elementId);
(I'm using DAO with Hibernate)
Can this cause any ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598097",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Insert a Linefeed with PDFBox drawString I have to make a PDF with a Table. So far it work fine, but now I want to add a wrapping feature. So I need to insert a Linefeed.
contentStream.beginText();
contentStream.moveTextPositionByAmount(x, y);
contentStream.drawString("Some text to insert into a table.");... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598099",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: jQuery .get - how to display the result of the .get request? I'm TRYING to get jQuery .get to work.
I have two files.
I.
Where I'm perfoming this, on .click event:
$.get("employee.php",
{ FirstName: substr[0], LastName: substr[1] },
function(data) {
// HOW DO DISP... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598105",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: bash if [ -n "$output of a variable" ] line=$(grep "# rvm line" ~/.bashrc)
if [ ! -n "$line" ]; then
echo "found"
else
echo "not found"
fi
What's wrong with my quotes in the first line?
EDIT: The problem is set -o errexit, which I use in my script. I suppose -n is treated as an error, exiting the following pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598106",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Mysqldump with InnoDB tables, how to import them without errors? I've exported a mysqldump of a database with InnoDB tables and foreign key relationships in them, using the --single-transaction flag (that I read somewhere I should use for InnoDB). No problems.
But when trying to import that dump into another existi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598108",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Overlapping mutli-line comments In C#, is there a reason why multi-line /* */ comments can't overlap? This also applies to HTML (and I'm sure lots of other languages) too.
e.g.
/*
int a = SomeFunction();
/* int i = 0; */
int b = SomeFunction();
*/
won't compile.
When writing code I often want to quickly check t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: PHP Fatal error: String could not be parsed as XML I'm trying to include an RSS feed on my website. The following code works locally but causes a fatal error on the live site:
<?php
// Initialise the cURL resource handle:
$ch = curl_init("http://www.blogs.stopjunkmail.org.uk/diary/index.php?/feeds/index.rss2");
// S... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598122",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Determine winner print_r($scores);
Array ( [Player 1] => 39 [Player 2] => 39 [Player 3] => 39 )
Lets say there are a variable amount of players in this array. What is the simplest way to calculate a winner or tie game?
A: Determine the winning score, then get all players with the winning score:
$max_score = max(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598124",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Detecting arrow keys input in C++ using curses on a unix platform is not working after calling a system command I have an application in which the user inputs data and needs to be able to move around the screen using the arrow keys. now I've used the curses library but I am having a problem detecting the arrows afte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598126",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: File Not Found : maven-jaxb2-plugin i am trying to compile schema from an artifact(dependency) using jaxb2 plugin , i followed the topic: Compiling a schema from a Maven artifact in
http://confluence.highsource.org/display/MJIIP/User+Guide#UserGuide-UsingcustomJAXB2plugins
and the code i have is
<plugin>
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598127",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to implement search modes in Android Search Bar pattern? Android Search Bar pattern has a search mode selection drop down. Can anybody tell me how is it implemented? Any pointers to source code/examples would be great.
I want code that works on Android 2.2+ devices.
A: Ok then check this example How to Create ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to search and replace globally, starting from the cursor position and wrapping around the end of file, in a single command invocation in Vim? When I search with the / Normal-mode command:
/\vSEARCHTERM
Vim starts the search from the cursor position and continues downwards, wrapping around to the top. However, w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598133",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "138"
} |
Q: How to read a file as a byte array in Scala I can find tons of examples but they seem to either rely mostly on Java libraries or just read characters/lines/etc.
I just want to read in some file and get a byte array with scala libraries - can someone help me with that?
A: The library scala.io.Source is problematic, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598135",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "83"
} |
Q: Problems sharing CookieContainer between HttpWebRequests on Windows Phone 7 (Mango) I have a production app that makes two calls via HttpWebRequest. The first call sets a session and receives cookies back to maintain the session, the second call is for data from the api. The responses are httponly. I am using a shar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598139",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: FullCalendar date & time handling I am using the FullCalendar script and am having trouble formatting the date/time of EVENTS on the calendar.
I need all the events date/time data to look like:
2011-09-28 08:15:00
All the dates are like this in my JSON source, which display on the calendar correctly. However, if t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: SQL Server 2008 Multi-database Permissions via role or schema or scripting Let's say that there are multiple users in my office that need access to multiple databases that are dependent upon each other. I have users who are sysadmins but as more employees are added I want to be able to apply specific permissions fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598144",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Get the minimum value between several columns I'm using SQL Server 2008;
Suppose I have a table 'X' with columns 'Date1', 'Date2', 'Dateblah', all of type DateTime.
I want to select the min value between the three columns, for example (simplified, with date mm/dd/yyyy)
ID Date1 Date2 Datebla... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598150",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Changing value of constant object with pointer There is such code:
#include <iostream>
int main(){
const int a = 2;
int* ptr = (int*)&a;
*ptr = 3;
std::cout << &a << " " << ptr << " " << a << " " << *ptr << std::endl;
return 0;
}
Result:
0xbf88d51c 0xbf88d51c 2 3
Why these two values differ? What does it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598152",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Executing a Python Script From Python Shell I am trying to access the Amazon Advertising through Python and I created a Python script to automate the authentication process. This file, called amazon.py is located in ~/PROJECT/APP/amazon.py.
I want to be able to play around with the API, so I launched python manage.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to get the form values when i click on submit in sencha touch i new to sencha touch,and i created a login form which accepts user id and password and a login button,so when i click on login button i should get the user id value as a alert.and the code is,
Ext.setup ({
onReady: function () {
var myform=new E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598163",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: What is the purpose of this JS pattern? I am looking through someone else's code and I see this pattern being applied:
var MyObj = function(){
this._myHiMember = this.assignHi();
};
MyObj.prototype = {
assignHi : function(){ return 'hi, ppl';}
};
What is the purpose of creating a reference on the instance t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to run Java programs from the terminal? I am trying to run a Java program from my Terminal. I have Mac OS X 10.7.
teamL javac -jar kxml2-2.3.0.jar XMLHandler.java ServiceEndpoint.java TeamL.java
This is my Eclipse class file structure:
I am not able to find why is this throwing Unable to access jarfile kxml2... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: error insert DateTime c# type to SQL DateTime column i am trying to make INSERT command to my SQLEXPRESS db
and recieve error while trying to enter a value to my DateTime column.
this is the sql command i use:
SqlDateTime sTime = new SqlDateTime(book.PublishedDate);
string sql = string.Format("Inser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7598172",
"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.