text stringlengths 8 267k | meta dict |
|---|---|
Q: How to change child tag order in XML (Generated by PHP) I have one application in flash in which multiple users can log in and can upload images. when user log in he can view images uploaded by him and also can view images uploaded by other users(only allowed images). for that i am generating xml file through php.
p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524950",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Can a WP7.1 app use UdpAnySourceMulticastClient to communicate with Android and iOS Can UdpAnySourceMulticastClient be used in a WP7.1 app to communicate with Android and iOS? If it is possible is there any limitations on the datasize that can be transferred?
A: There is no restriction on the type of sender (or re... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: UI Automation Tool Im new to Automation and I'm involved in developing an Automation Tool which can be used to Automate and Record all the current Process that are handled in a machine using .NET. Is it possible to automate all those process and thier controls using a Tool.
Please help me with this. Please refer me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524954",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: zoom controller not working in webview in android I am suffering from a strange problem in order to implement WebView in android. I am trying to load html5 supported web page in my WebView, but the problem is default zoom controller is not working in WebView.
i tried with the following code.
webview.getSettings().s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524957",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Persistance storage for UIVIew I am creating dynamically some "n" number of UIView Object in my application.I can able to drag, drop these objects to any position in the screen & chenge change their some of property .Now i want to save all these details with persistance storage ,so that whenever i launched the appli... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Sort an array with respect to sorting of an another array iphone sdk I have a situation here, I have two arrays,array1 and array2 and one tableview. I have loaded array1 to the table view. So here, I'm sorting array2, I've done that, but how can I sort array1 with respect to the change in array2 and to reload array1... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524963",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: skip the screenlock protected void onPause()
{
super.onPause();
// If the screen is off then the device has been locked
PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE);
boolean isScreenOn = powerManager.isScreenOn();
//screen locked
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524966",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: creating subdomains and Sharing authentication on 2 different project/solution/application I am trying to create a website with subdomains in asp.net mvc. But I am not sure how to do this. When setting up this new solution in visual studio is it best to have a different project for each subdomain or have one projec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: jQuery.post refreshes my page? I have the following code with a form on my page. But when I click submit, it seemed like my page refreshes.
form:
<form action='#' method='post'>
<div><input type='text' name='name' /></div>
<div><input type='submit' value='Save' /></div>
</form>
JS:
<script type='text/javas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: jQuery Box Area Problem I have a problem - I have 2 or 3 boxes and I am trying to fit them perfectly into a bigger square box of max-width 445px. All boxes should be sized to fill the bigger box.
I don't know what any of the box widths or heights will be and therefore the second two boxes should be sized relative to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ERD - Entity relationship diagram - complex and tricky relations Here is the scenario.
Two completely different Entities are independently related to the third entity in the same way. How do we represent it in the ERD? or (Enhanced ER)
Ex:
*
*Student "BORROWS" BOOK (from the library)
*DEPARTMENT "BORROWS" BOOK... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Adobe Acrobat converting data entered into fdf How can i convert the data entered in Adobe Acrobat form fields (using submit button) to a fdf file? Anybody has any ideas.?
A: You can convert HTML to PDF very simply - i use this
http://code.google.com/p/wkhtmltopdf/
| {
"language": "en",
"url": "https://stackoverflow.com/questions/7524979",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best way to write a Gradle task that can be customised from the command line? I want to provide defaults for my properties, but allow them to be overridden from the command line in a relatively easy way.
I'm using Gradle 1.0 Milestone 3.
This is what I've got, it works pretty much the way I want but it's quite verbo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524986",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Disable Warning 1591 message in VS 2010 How to disable Warning #1591 message in VS 2010? Now I get Error List filled up wore than 200 such messages. I would like not to have them here. I use XML comment on some of class properties.
A: Go into the project properties, the Build tab and in the "Suppress warnings" tex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Android : click link in a page within web view I have included a web application within android web view , and there is a link in the webpage which opens some other site , when the link is clicked it works fine for the first click, however when clicked for the second time the website is not found ,
the code is :
@O... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524990",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: asp.net handle page early? In my Application_BeginRequest I have a list of things I check for rewriting purposes. At the very end I rewrite all paths to default.aspx which then simply has the following
<%@ Page Language="C#" EnableSessionState="False"%>
<%@ Import Namespace="MyWebsite"%>
<% PageRequest.WritePage();%... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524991",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: FastCGI/Python thread/timing issue? I'm using the Pyramid framework on a shared server on which mod_wsgi isn't supported. Once I deployed the project, I started getting 500 errors with no really helpful error messages:
[Thu Sep 22 21:40:52 2011] [warn] [client IP] (104)Connection reset by peer: mod_fcgid: error read... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7524995",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP ADODB with MySQL: ADODB object not working within functions Given a file called index.php which contains:
$db = NewADOConnection($db_dsn);
if (!$db) die("Connection failed");
$arrpage = $db->GetArray("SELECT * FROM somewhere");
include("functions.inc.php");
details("SELECT * FROM somewherelse");
The $arrp... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525007",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem Retrieving Data from SQL Server using C# and ADO.Net window form I took an video from you tube to Retrieving Data from SQL Server using C# and ADO.Net
http://www.youtube.com/watch?v=4kBXLv4h2ig&feature=related
I Do the same as him in the video...
I want to show data from an sql database in a DataGridView.
I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525008",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Implementing mutex in a user level thread library I am developing a user level thread library as part of a project. I came up with an approach to implement mutex. I would like to see ur views before going on with it. Basically, i need to implement just 3 functions in my library
mutex_init, mutex_lock and mutex_unloc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525010",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Getting the size of some rows in a MySQL-Table I need to get the physical size of some rows in a MySQL-Table.
There are some solutions how to read out the size of a whole table over the information scheme, e.g. this article.
Is there a way to get the size of a subset of a table? Of course I could manually read out e... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525011",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Delphi: How to wait all info to be read from socket using thread I have Delphi lib which must return information read via socket.
function GetBufferInfo(Address: PChar): PChar; export; stdcall;
var
BD: TBufferData;
begin
BD := TBufferData.Create;
Result := PChar(TBufferData.GetData);
BD.Free;
end;
TBufferDa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525012",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Bare minimum of learning in c++ (or what can I skip) I'm currently cramming up on c++ in order to complete a specific task for my 3rd year Applied Computing degree project. Im by no means a programmer but I am going top have to program an App.
My most comfortable language is c# so this is what I will be using for th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525013",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-5"
} |
Q: Programatic navigation in Visual SourceSafe Maybe this is a very simple problem, but I just can't figure it out. Is there any way to navigate to a certain folder in MS Visual SourceSafe from an external application?
Maybe some sort of command line parameter? (of course that would only work if VSS is closed). Or is t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525015",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C# Float to Real in SQL Server I am attempting to use Entity Framework and have a contact database that has Longitude and Latitude data from Google Maps.
The guide says that this should be stored as float.
I have created my POCO entity which includes Longitude as a float and Latitude as a float.
I have just noticed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525021",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Standard string behaviour with characters in C++ I have a problem which I do not understand. I add characters to a standard string. Whe I take them out the value printed is not what I expected.
int main (int argc, char *argv[])
{
string x;
unsigned char y = 0x89, z = 0x76;
x += y;
x += z;
cout <<... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525026",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: WAMP PHP says it's deprecated | =& I'm using WAMP2 with PHP 5.3.4
When I use =& in my code it says it's deprecated. Why? Is there any alternative?
Thanks
A: If you're using it with objects - then it's superfluous since php 5.0, as long as objects always are passed by reference.
So just replace your =& with = and be... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525043",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Unable to check if a javascript checkbox array element is checked or not? What is want is - when the checkbox is checked option no. 5 in select list will be selected and when the checkbox is unchecked option no. 0 will be selected in the select list.
The select list and the checkboxes are generated dynamically in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525044",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Copying unmanaged memory to Managed byte array I need to read unmanaged memory into a managed byte array.
For this I have an IntPtr reference to unmanaged memory and a length which represents the size of the unmanaged memory that is of interest to me.
I use the following code to read that into a managed byte array.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525047",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Random string avoiding words in array behaving incorrectly I found some unexpected behavior in my code, so made two examples to demonstrate what was happening and couldn't figure things out from there. What I found was odd to me, and perhaps I'm missing something.
Goal: Create a random string and avoid anything spec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525048",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Controlling an embedded user interface I am busy with a small project that allows for the controlling of an embedded hardware user interface to be moved from state charts and simple constructs as if .. else to a more visual representation.
I would now like to begin testing on a real project. I am looking for an open... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525049",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Imagehack and paperclip how to create a thumb and define path and filename? I am trying to create a thumb with and uploaded image. I also want to resize the uploaded image to 672x378 and the thumb is should be 219x123.
The path for the thumb should be photographer/image/:id/thumb:Filename
I have installed imageshack... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525052",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Localization using ultrasonic sensors I don't know if this is the right place to ask this question.
I am working on a project in which I have to use ultrasonic sensors only to do "simultaneous localization and mapping" of robot. I have 8 such sensors. Assume that i have enough computation power and the limited sens... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525053",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How can i create executable apple .app file from my java .jar file? I have created an executable java Swing .jar application. It works fine on Windows. The application hierarchy is :
application.jar
images(Folder) .......... Contains all images the application uses.
libraries(Folder) ....... Contains all external j... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525060",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make "Enter" Key Behave like Submit on a JFrame I'm Building a Client/Server application.
and I want to to make it easy for the user at the Authentication Frame.
I want to know how to make enter-key submits the login and password to the Database (Fires the Action) ?
A: One convenient approach relies on setDe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525061",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to remove the Username field from the UserCreationForm in Django I want my user registration page to display email and password field, and no username.
I have created this Register Form:
class RegisterForm(UserCreationForm):
email = forms.EmailField(label = "Email")
#fullname = forms.CharField(label = "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525062",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: The apk must be signed with the same certificates as the previous one I am trying to upgrade my previous version app into the Android market,but it shows an error as "The apk must be signed with the same certificates as the previous one". I am also having previous version apk file.but dont know how to solve this cer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525065",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Accesing a strict private field using the RTTI consider this simple code
{$APPTYPE CONSOLE}
uses
Rtti,
SysUtils;
type
{$M+}
TFoo = class
strict private
class var Field1 : Integer;
field2 : Integer;
private
field3 : Integer;
class var Field4 : Integer;
end;
Var
ctx : TRttiConte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525071",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Php Managing online / offline? I wonder if this is a good solution for a medium size social site. Its about managing online/offline indications of users. My solution is to include a script on each page that first of all updates the "last activity" field of the current user with a timestamp, then i select all users t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525073",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to use Virtualizer in a web aplication? In my application i am using Jasper reports to generate the report in various formats. Now i am trying to generate a report for a huge resultset. When i went through the net, found that we can to use virtualizers in order to handle huge data.
I am using JRSwapFileVirtuali... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525075",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Sitemesh or XSLT for layout I am designing a layout for my crm project now.
Now i am ended with 2 options one is sitemesh to define the layout or XSLT to define a layout.
Sitemesh will run at runtime from the server , it wont cause any issue if the number of request is high?
I guess XSLT will run at the browser base... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525079",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Proper SQL query command with SQL Compact is failing I've got a function that stores temporary information generated for every user authenticated in the system. This 'session ID' is a string stored in a Sessions table, along the original ID of the user which authenticated and was given said session identifier.
The f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525082",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: htaccess regular expression syntax I want redirect url
http://www.domain.com/category/abc-xyz-zzz-2010-150857.html
to
http://www.domain.com/category/150857-abc-xyz-zzz-2010.html
But if
http://www.domain.com/category/150857-abc-xyz-zzz-2010.html
not redirect
this is my htaccess but not work
RewriteRule ^([^.]+)/... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525098",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Change the URL in partial post back I am developing a shopping site where user can search products using different criteria.
On checked_changed event of check box i want to change URL, but condition is that my page does not make full post back..
A: This answer will help you......
You need HTML5-able browser and som... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525102",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: getting a user-inputed variable in django template wihtout using forms I have a django template which also has a div element that takes in a user_inputed value.
When the value is entered, I call a javascript function say onSubmit(user_input)
<input type="text" class= "inputtext" onKeyPress="return onSubmit(this.valu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525107",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: ROR + Unable to install tiny_tds Here I am trying to fetch data from MS-SQL Server 2008 to my Rails application on Ubuntu 10. But I am unable to install tiny_tds. I follow the step given at github. But no response. Please guide me to setup correctly.
Used gem command :: gem install tiny_tds
This command as well :: g... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525109",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "23"
} |
Q: Unable to Uninstall yahoo messenger from system Hi i've installed Yahoo messenger on my system.
Now i want to uninstall. But i can't able to uninstall through Control Panel\Programs and Features.
When i click uninstall button, a dialog alert displayed as
"An error occurred while trying to uninstall yahoo messenger.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525111",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is this JSON, How do I parse this JSON? {suggestion:[{query:"Cakung, Djakarta, Jakarta Capital Region, Indonesia",interpretation:{term:[{start:0,end:6,feature_type:"",feature_id:"0x2e698b10568c13a1:0x400c5e82dd4c010",matched:1,target:1,term_start:0,term_end:1,type:9938},{start:8,end:16,feature_type:"",feature_id:"0x... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525112",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: HTML email text alignment & image issues I an having a problem with my HTML email.
My email is working correctly in most cases, the problem arises when I send to windows live mail.
1) opening the email in widoew live mail in IE all of the text becomes centered even though I have used the 'style="text-align:left;"' ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525115",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to view old Sybase sql (.db) database data and convert into Sql server I got a .db database file which one of my friend created through PowerBuilder 6 in Win98. Later I wanted to test that database file, but was not able to view or open it in any of common db viewer and not able to get any data out of it.
pleas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525116",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Should i have to put the copy protection to my Application if i have given Android Licensing to my Application? I have added the Android Licensing to my Application. to check for the application licensing.
There is also one option like copy protection during uploading the application on Android Market.
So if i have ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525118",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to make the entire row in a table clickable as a link, except the last column? I managed to get the rows in my table to be clickable and linked to the href attribute of the <a> element. However I started to have issues when I made the selector only select the rows except the last column.
With the below code the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525120",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: First element in a div is off-center (this line is because SO was chopping parts off...)
Dear element-in-a-div,
Why oh why must you be ever so maddeningly off center?
I'm using the following stylesheet:
body {
font-family: Helvetica, Arial, sans-serif;
}
a {
text-decoration: none;
}
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525121",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: call back of completion of iteration is not getting called using https://github.com/caolan/async
struggling for getting run the loop by async so finding end of execution of loop is handled .
and
results=[]
async.forEach(nfiles, function(item ){
console.log(item);
results.push(item);
}, function(err){... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525129",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Which python web framework has hassle-free development and deployment? I have written a web API in BaseHTTPServer. It is meant to be used only on localhost. It returns JSON objects on GET/POST operations.
http://localhost:8888/operation?param
and code is like
def do_GET(self):
if self.path=="operation":
s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525130",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Create dynamic hibernate criteria query with subcriteria I have a Java class which has some field annotated with @SearchCriteria(criteria = "class1.class2.field"). criteria parameter inside annotation means for with class this field should be set as hibernate criteria, it mean that, if field marked for example:
@Sea... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525132",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to programmatically determine if the class is a case class or a simple class? How to programmatically determine if the given class is a case class or a simple class?
A: Currently (2011), you can use reflection to find out if the class implements the interface scala.Product:
scala> def isCaseClass(o: AnyRef) = o... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525142",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Assign value in integer returned from stored procedure + Sybase I am calling a stored procedure from another stored procedure. That stored procedure is returning an integer value always so I am accepting that value in one integer variable.
EXEC @IsBusinessDay = LiteIsWorkingDay @ExecutionStart
But even if stored ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525146",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Drag an Image in XNA I am working on an app in which images are flying on the Screen.
I need to implement:
*
*Hold onto any of the flying images on Tap
*Drag the image to certain position of the user's choice by letting the user hold it.
A: Here is another easy way to do dragging.
Just draw your image (Texture... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525147",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: JTextField's setText method doesn't work from a KeyListener I'm puzzled as to why a JTextField doesn't seem to just "clear out" by using the setText("") method on it, when this is coming from a KeyListener. It works fine from an ActionListener, except that, most amazingly, if the KeyListener method tries to invoke t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525154",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Translating route segments with ZF's gettext adapter I want to try out the route translations in Zend Framework, but I'm using the gettext adapter and the most tutorials have PHP translate adapter, so I'm having problems to make it work.
In the main Bootstrap.php I have the method in which I set the routes:
$front =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525159",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How mvc works in Zend framework Thanks for previous replies..
I am trying to print Hello_world using zend framework. I wrote php file in model folder and return string value as a "Hello_world". In controller i access the value of PHP like this
$value = new TextReturner();
$this->view->setValue = $value->hel... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525165",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Allegro 4.2.4 in palette mode on Windows7 corruption I have problem with Allegro 4.2.4 running palette mode (256 colors) in Windows 7. I found over Internet solution of killing explorer and it's working indeed, however it would be ridiculous to expect that end user will kill explorer when trying to play game.
Then I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525168",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to COUNT a field not directly related to the where expression on ORACLE I am trying to find out How many students are enrolled in all units, that are associated with a particular course.
I have tried.
SELECT COUNT(studentID) AS Expr1
FROM Course CROSS JOIN
Enrolment
W... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525169",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Load the iphone app automatically when phone boots I am doing a tracking kind of application for internal use of an organization and do not wish to submit it to app store.
What I am doing in the application is I am tracking the phone calls, messages etc.
My app runs in background once I start the app manually and ke... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525171",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Android: how to change image each touch I would like to change an image each time the user touches the screen. I would like to have user tap the screen and the image changes each time and at the 5th touch it would loop back to the original image with added text.
I have looked at
How would I set an ImageButton to ch... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525176",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to zip file using "ZipArchive library" in iphone ? I want to implement ZipArchive in my project.
Using this library I want to archive files like images into zip file.
How can I do that ?
A: try my code
Zipcode :
NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525180",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Linking a webcam in a flex application i am having a very strange problem while linking a webcam i xperience following error
ArgumentError: Error #2126: NetConnection object must be connected.
at flash.net::NetStream/ctor()
at flash.net::NetStream()
Following is my code in main.mxml
<fx:Script>
<![... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525183",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to set a binding in Code? I have the need to set a binding in code.
I can't seem to get it right tho.
This is what i have tried:
XAML:
<TextBox Name="txtText"></TextBox>
Code behind:
Binding myBinding = new Binding("SomeString");
myBinding.Source = ViewModel.SomeString;
myBinding.Mode = BindingMode.TwoWay;
myBi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525185",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "112"
} |
Q: call procedure syntax error? Give the following stored procedure :
DELIMITER $$
DROP PROCEDURE IF EXISTS ric_forn$$
CREATE PROCEDURE ric_forn (IN nome_forn VARCHAR(100) , OUT msg VARCHAR(100))
BEGIN
DECLARE num_rec INT;
IF (nome_forn = '') THEN
SET msg = "Attenzione il nome inserito non è valido !";
END IF;
... | {
"language": "it",
"url": "https://stackoverflow.com/questions/7525189",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to append additional text with existing html content in android? I am Developing an application.In which i am appending a text to existing text which is stored in .html file, the location for the .html file is in my application's "assets" folder. I know how to load html with URL but my problem is to append the t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525196",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: YouTube video fails to load with iOS UIWebView W're developing an iPad app (iOS 4.3.5) that uses UIWebView to load YouTube videos. About once in five times a YouTube video will fail to load and I only see the following blank screen with YouTube's logo:
Looking in the debug logs I can only see the following warnings... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525199",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to set more than one alarm for calendar events in android? I have already worked on calendar events and for each event the alarm should ring with notification. The problem i face is, If i set more than one event, the last set event is alone notifying the user with alarm. But all the other events doesn't ring ala... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525201",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Need help for routing in asp.net webform i want to achieve few redirection like
when user will type this www.mysite.com/label/uk or www.mysite.com/label.aspx/uk then my labeluk.aspx will load or
when user will type this www.mysite.com/label/us or www.mysite.com/label.aspx/us then my labelus.aspx will load or
when us... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525205",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: select Case with subqueries select and using Top Hi i want to retrive the list of browsers used by user id
Table Contains
UserID int
BrowserName nvarchar(40)
here is my Query
select browser =
CASE
WHEN ( PATINDEX('%IE%',BrowserName) IS not null) THEN SUBSTRING(BrowserName,PatIndex('%IE%',BrowserName),8... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525207",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to prevent CSS inline style when Browser Zoom in? When using Safari or Chrome, I have a problem when using the Zoom-in view tool. On an image slider it forces to add inline style of a DIV element and specifically its height (which obviously overrides any other styles).
The div should be set at 340px, but automa... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525208",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Use a batch file to write txt to another file How would i add this text to a file because it seems to get confused with the other greater than less than signs thanks
echo >> C:\docs\thisdoc.txt
A: If I've got you right, you want to write the text "echo >> c:\docs\thisdoc.txt" in a file? Then you need to escape the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525211",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to "scale" a numpy array? I would like to scale an array of shape (h, w) by a factor of n, resulting in an array of shape (h*n, w*n), with the.
Say that I have a 2x2 array:
array([[1, 1],
[0, 1]])
I would like to scale the array to become 4x4:
array([[1, 1, 1, 1],
[1, 1, 1, 1],
[0, 0, 1, 1]... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525214",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "39"
} |
Q: Routing error for GET] "/firstapp" I was trying to write my first program after installation, but I got an error like below:
Routing Error
No route matches [GET] "/firstapp"
I've tried to change my config/routes.rb file but nothing changed. This is my config/routes.rb
Firstapp::Application.routes.draw do
resourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525215",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Data api ga, how to get data for multiple pages? I'm using Data api of google to get data in my filters, I'm getting data for page path for single page and I'm stuck at multiple pages. I followed document and passed following query to filters,
$filter = 'ga:pagePath=~/about_us.htm,ga:pagePath=~/index.htm';
Is ther... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525216",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to write a simple makefile for c I need to write a simple make file for my.c, and so after
make
then my program can be run by
./my
my.c can be compiled by this:
gcc cJ/cJ.c my.c -lcrypto -o my -lm
Thanks
I put this in my makefile
all:my
my: cJ.o my.o
gcc cJ.o -lcrypt my.o -o my
cJ.o: cJ/cJ.c
gcc -c c... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525219",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to use javascript to monitor a change in a div value? I have a page with a countdown in a DIV with id ="count"
I would like to monitor this div value so, when it reaches 0, a alert pops up.
I've gono so far as
if(parseInt(document.getElementById('count').innerHTML) < 2){}
But I don't know how to "listen" for t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525220",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Visible elements in a WPF canvas I have a WPF Canvas and a lot of Shapes (StreamGeometry / Path) added to it. I have ScaleTransform defined to zoom into specific region.
I have zoomed into a arbitrary space in the canvas and the Shapes are scaled. Now, is it possible to get the Shapes that are in the visible region ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525222",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Find whether a particular date is an Option Expiration Friday - problem with timeDate package I am trying to write a simple function that (should) return true if the parameter date(s) is an Op-Ex Friday.
require(timeDate)
require(quantmod)
getSymbols("^GSPC", adjust=TRUE, from="1960-01-01")
assign("SPX", GSPC, envi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525226",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: I have a class where data of strings have been stored I have a class where data of strings have been stored.
void testCallback(char *data)
{
NSLog(@"%s", data);
}
in the log it displays the following output,
1.00 2.00 3.00
4.00 5.00 6.00
But i need the output in the following manner,
2.00,3.00
5.00,6.00
so i w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525236",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is there a function or unit sames as TIniFiles that will not save to file? I have a project that use Inifile for reading the data configuration.
I decided to save the configuration to the resource.
i would like to ask help if is there a Unit or function that same as Tinfile or related that saving the data config i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525237",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Maven 2: eclipse-plugin to generate EAR's dependent projects to .project file I'm trying to generate eclipse-project files using Maven2 eclipse-plugin for RAD7.5. All is going well except for the dependencies in the EAR's .project file.
When I run mvn eclipse:eclipse on a clean maven project, I come up with an EAR s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525238",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to Set file permissions- Android I have a doc file on sdcard.
I want to open it in read-only mode. Also I don't want the document viewer to save the file.
The intent to open the file is as follows:
Intent intent = new Intent();
intent.setAction(android.content.Intent.ACTION_VIEW);
File file = new File("/sdcard/t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525239",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to separate lines of a text file using MATLAB.like first 1-3(modes) in one group next 1-3 in second group and so on I would like to separate the parts of the following text file using MATLAB:like first 1-3(modes) in one group next 1-3 in second group and so on...
edit: the file format has been edited since the i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525240",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to save the window state at wxWidgets? I'm constructing a UI using wxWidgets.
In my GUI, I generate a window (wxFrame class) which is accessible through pushing a bitmap button. In that window, I also perform some tasks, again pushing some bitmap buttons and diabling them etc. But I can't close and reopen that w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Install "hunchentoot" error? I want to install hunchentoot on my freebsd box, but quicklisp reports error:
(ql:quickload "hunchentoot")
To load "hunchentoot":
Load 3 ASDF systems:
rfc2388 trivial-backtrace usocket
Install 15 Quicklisp releases:
alexandria babel bordeaux-threads cffi chunga
cl+ssl cl-base64 cl-fad... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525250",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++/CLI DLL project stops linking after conversion from VS2008 to VS2010 I converted a perfectly working Managed C++ DLL project that uses Unmanaged C++ LIBs from VS2008 to VS2010. Beforehand I separately rebuilt the LIBs with VS2010 (they are part of another project that I have no authority over). However, after co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525256",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: backbone.js hover on root dom doesn't work Why the hover event bind on the root dom doesn't work? Though by default, i can put the <div class="activity span"></div> around the template and with a wrapper <div></div> outside, but it sucks.
Please help~ thx
ActivityView = Backbone.View.extend(
className: "activit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: AS3 keyboard input assign to child swf can i assign a keyboard eventlistener in a child swf inside of another swf?
cause i know if a swf inside of swf still only have one stage. cause the parent swf just like a loader container, i want the child swf to have the keyboard event listener.
Thanks
A: How are you loading... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: is it possible phone-calling in ipad? Recent iPads are having provision to insert sim card in that. So with latest iOS SDK, is it possible to call from my application. I know that in-app call is possible from iPhone. But how about iPad? is any api for that? or any app already in market? any tutorials or links .
tha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525273",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Overlaying a place marker image over a static image (ImageView) I've got an ImageView containing a static image (map) and I would like to put a marker on the map where the user clicks.
I have an OnTouchListener registered and it's providing co-ordinates of the click but I don't know how to draw at this location. Ap... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: BigDecimal Problem in java BigDecimal bd= new BigDecimal("00.0000000000");
//now bd format to 0E-10
if(BigDecimal.ZERO.equals(bd) || bd.equals("0E-10"))
{
flag=true;
}
There are two problems in the above code
*
*why variable bd automatically format to 0E-10
*if condition results false value, ie it does not en... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525284",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Do I really have to do write my code differently so just so I can test it? I am coming to c# from ruby on rails where I did TDD using Rspec and Mocha. I was looking to get into get into a mocking framework and an older stackoverflow post pointed me in the direction of MOQ and rhino mocks. I was hesitant to commit to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525286",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to read JSON object I have a JSON object like
{"status":"200","id":"23","username":"nipinponmudi@gmail.com","fname":"hh","laname":"hh","timezone":"2","createdate":"2011-09-20 22:05:24","key":"db3f57a8f2b9abd9d51916232f5a77b9"}
The object above is a response from a server.I want to display these objects in corre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525291",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Is Copy Protection Option on android market make application to uses the User Data of device? I have uploaded the Application with the Copy protection to that application. I have also given the Android Licensing to that Application.
Now After downloading that application from android market, I got some problems like... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7525307",
"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.