text stringlengths 8 267k | meta dict |
|---|---|
Q: Create parameterized Persistence Unit + JTA DataSource at Runtime (context dependent) i'm trying to write an EJB3 Stateless Session Bean which gets the parameter "customerCode" (String).
Dependent on this "customerCode" i want to create an EntityManager (Persistence.createEntityManagerFactory...) with a (dynamically... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512393",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to create a packet which contains two images and two strings and send it via post method in iPhone? I have two images and two strings which have been converted to base64 strings and I wish to send them as packet using POST method. Should i concatenate the base64 strings or is there any other way around?
A: Have... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512403",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: XMPP SMACK file receiving not working on android I am unable to recive the file, which I am transfering from SPARK client.
I am using ASMACK jar Library so it's not possible to get into the library.
ServiceDiscoveryManager sdm = ServiceDiscoveryManager.getInstanceFor(connection);
if (sdm == null){
sdm = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512406",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: two keys one value in android How do I implement the following data ?
somelisttype <int>obj ;
obj 0,0 => val0
obj 0,1 => val1
obj 0,2 => val2
obj 1,0 => val8
obj 2,0 => val9
obj 2,1 => val10
0,0 ; 0,1 are the keys ( or in other way the row index or column index.)
I would like to have following functionality ..
obj... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Remove class if checkbox is checked I want that onload the <span> and <checkbox> classes to be blank:
<span id="checkboxx_<?php echo $nrs['id']; ?>" class="highlight" >
<input type="checkbox" class="checkboxx" id="checkboxx_<?php echo $nrs['id']; ?>" style="padding: 0px; margin: 2px;" <?php echo $value =... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512412",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JSF and automatic reload of xhtml files I had some problems with hot-reloading XHTML files using JRebel, Spring, JSF Mojarra 2.0.3 and WebLogic 10.3.
JRebel reloads regular Java classes and js/css files under /WebContent successfully, but not JSF's .xhtml files. A full republish was necessary to get xhtml files upda... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512414",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "26"
} |
Q: >Call to a member function exec() on a non-object< when I try to call PEAR MDB2 class I have a problem which I seem unable to solve on my own, although the script is kind of simple... I simply want to write sth. in a MySQL database (auto_increment id) with the following script:
<?php
// Create a valid MDB2 object na... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512419",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to data bind Entity Framework objects to a FormView I am data binding to many FormView controls using EF entity instances, but I have to resort to this ridiculous kludge in order to achieve what I want without using EntityDataSource controls:
propertyHeaderSection.DataSource = new List<PropertyDetailsModel> { _p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512422",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to use my Entities and Entity Managers in Symfony 2 Console Command? I want to a few terminal commands to my Symfony2 application. I've gone through the example in the cookbook, but I couldn't find out how to access my settings, my entity manager and my entities here. In the constructor, I get the container (whi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512425",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: error: expected declaration specifiers before ‘namespace’ File name: widgets.c
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
return app.exec();
}
Pro file:
anisha@linux-dopx:~/Desktop/notes/qt> cat qt.pro
############################################################... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512433",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Iterating Performance Comparison I have an array:
deleteIds= ["User1"];
and try to iterate over it as like:
first one:
for (var index = 0; index < len; index++) {
alert(deleteIds[index]);
}
second one:
for (var index in deleteIds) {
alert(deleteIds[index]);
}
What is the performance comparison of them?
A... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512434",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how extracts values from a char array? HI I have following char array in C,
char array[1024] = "My Message: 0x7ffff6be9600"
i have to extract the value "0x7ffff6be9600" only from above char array.
how can i extract the value with the use scanf() type functions?
Thanks in advance.
A: Use the sscanf function, prec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512438",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Image upload to facebook from clientside using FormData() - what's wrong? On input file change event, I am executing the following code.
*
*create a form data by encoding the image to "multipart/form-data"
*alert('before calling FB.api-post :' + imgFile.name) - this works
*create the param to be used in FB.api
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512439",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Persistent FTP connection with file wrapper in php If I do something like that:
rename('ftp://user:password@example.com/pub/file1.txt','ftp://user:password@example.com/pub/fileA.txt');
rename('ftp://user:password@example.com/pub/file2.txt','ftp://user:password@example.com/pub/fileB.txt');
rename('ftp://user:password... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512441",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I start Xdebug over an internal HTTP request? I have Xdebug set up nicely using an SSH tunnel. When connecting from the command line I use the XDEBUG_CONFIG environmental variable and when connecting over HTTP I use the XDEBUG_SESSION cookie. Both work brilliantly.
My issue is that the project I am working on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to make your own eclipse? Who knows how to customize your own eclipse? I want to include some plugins and use it as bundled solution and not to install additional plugin when I want to use it on other machine.
A: This is what I've done in the past.
The first thing you have to do is a fresh install of eclipse, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512444",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: @font-face for the drop down is not working in ie8 While using @font-face I am facing a problem that is when I am going to convert the font from hindi to english, this is working fine in each and every browser for each datacontrol. but for dropdownlist this is not good in IE8 but fine in other browsers.I am using it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512449",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .htaccess file affecting include files (including images) I'm currently trying to use a script that ensures users are logged into a central sign-on system.
The problem is that any files, including PHP and image files, in this sub-folder are not accessible when included, whether simply when using <?php include 'file... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512455",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android - Overlapping Adjacent LinearLayouts, Overlaying LinearLayouts I am porting an iOS application so the design is pretty much out of my hand. What I have is two LinearLayouts, one with what is basically a bump (shown in pictures) that I want to overlap the second LinearLayout.
I get aesthetically what I want d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512457",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: fetchAll statement to return only some columns I am developing a web app using zend framework in which I want to enable my users to search from other users using zend fetchAll function. But its returning complete column and I want several values only. Here is my sample code:
$query=$table->select('id')->where("name ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512458",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: making a label as a url link in flex builder I need to make a label in flex as if you click on it you can open a specific URL let us say Google.
Any ideas?
regards.
A: Here is sample:
<fx:Script>
<![CDATA[
import flash.net.navigateToURL;
protected function clickHandler(event:MouseEvent):void
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512466",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Using a custom (ttf) font in CSS I have a mac, and have installed a font called "7 Segment" (it shows up in Font Book). When I use font-family: "7 Segment"; I get Helvetica (or similar) rather than the browser's default font, but it still isn't showing the correct font. The page only needs to be shown on this comput... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512468",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "31"
} |
Q: "key cannot be null" when parsing xaml in a datagrid text column I have a DataGrid and it has a text column in it, configured this way:
<dg:DataGridTextColumn Header="{x:Static ResViewModel:SC.Resources.HelloWorld}" />
Here ResViewModel is the xmlns:namespace, SC is the project namespace, Resources is the resourc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512471",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Extracting synonymous terms from wordnet using synonym() Supposed I am pulling the synonyms of "help" by the function of synonyms() from wordnet and get the followings:
Str = synonyms("help")
Str
[1] "c(\"aid\", \"assist\", \"assistance\", \"help\")"
[2] "c(\"aid\", \"assistance\", \"help\")" ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512472",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: BOM randomly appears in JSON reply I'm implementing communication between two servers using JSON and cURL. The problem is, that sometimes there's BOM (byte order mark), appended before opening bracket in JSON reply. I've managed to trim it and successfully parse JSON string, but considering that JSON is generated by... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: JAXB and Guice: How to integrate and visualize? I find using JAXB together with Guice possible, but challenging: Both libraries "fight" for control over object creation, you have to be careful to avoid cyclic dependencies, and it can get messy with all the JAXB Adapters and Guice Providers and stuff. My questions ar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512481",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: Installation of AX 2012 I want to install Ax 2012 in my local machine. Does anyone know the steps involved in installing Ax2012
A: Highlights are you need 64 bit for the AOS, Help Server and EP (if you want it). I agree with the previous answer, 8GB memory is minimum. We tried on 4GB but it just won't work.
Our dev... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512482",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Ruby on rails: Yielding specific views in a specific places in the layout If I have one <%= yield %> tag then all my views render in the same place in the layout. Can I have different <%= yield %> tags for different views? Is so how do I do this? Thanks
A: Look into ActionView::Helpers::CaptureHelper. You can do so... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512486",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: retrieving NSString from array in iPhone I have an array which contains description of a route on map. I got this array by parsing JSON. My arrays contains string in this format:
"<b>Sri Krishna Nagar Rd</b> \U306b\U5411\U304b\U3063\U3066<b>\U5317\U6771</b>\U306b\U9032\U3080",
"\U53f3\U6298\U3057\U3066\U305d\U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the right method of escaping string before using it as json object I have to create JSON string from database values and push it back to database again. My Python code is:
json = "{"
for row in cursor_mysql:
#mainkey = row[0]
#name = row[1]
#value = row[2]
mainkey = """" " \n \ / """ #fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512493",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Attached properties Clearing local value but xaml not refreshing I derived the StackPanel class in a OrderableStack Class.
My aim is to allow a Stack's child to set an attached property Named 'First' to true and so this child becomes the first element in the stack.
When the attached property is set to true, the Pro... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How can I access Microsoft Dynamics CRM from android device? I would like to know if Android OS is compatible with Dynamics CRM 4 Mobile Express.
When I open the CRM web page https://server/m, I receive a white screen. The same request works on an iPhone and Blackberry.
I already disabled the Popup-Blocker and enabl... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Getting the number of rows with a GROUP BY query within a subquery I'm building a MySQL query with subqueries. The query requires, as described in Getting the number of rows with a GROUP BY query, the number of records returned by a group-by query, because I want the number of days with records in the database. So I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: dnn fck editor source code I need dotnetnuke fck editor's source code. Can you please give me directions for editing the fck editors source?
I need to add images to portal root folder externally.after uploading image it cannot select from the image manager. Image manager only show files uploaded from image manager.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512501",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What is wrong with this PHP code - Unexpected T_CONSTANT I keep getting the following error in my log
PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';'
The error is related to this line but I'm not sure what's wrong with it
<?php
if ($num != null) {
$query_string = 'ms... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512502",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unable to access database with Φ character in column
The sql server 2008 responded with the following error in some computer while other computer worked just fine.What is the cause of this error? There is difference in version though 6.01.7600 and 6.01.7601
Actual column name is Azi_Direction_A_Φ but it is taking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android OnApplicationPause/OnApplicationResume Is there any way to handle when my android application goes into background and back?
I want to use notification service for a on-line game - I use a service, which shows an alert when something happens in the game. I want alerts to show only if my application is activ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512509",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Me.Close does not work I'm working with VB.net.
I’m having problems while I connect my application to my database today so I wanted to add an error handling to close the form.
The problem is that when I put Me.close in a form, this form still open. I used the Form.Closing event handler to verify that it was called, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Bounding ellipse constrained to horizontal/vertical axes Context: I'm trying to clip a topographic map into the minimum-size ellipse around a number of wind turbines, to minimize the size of the map. The program doing this map clipping can clip in ellipses, but only ellipses with axes aligned along the x and y axes.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512513",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Editable datagrid inside a combo box in WPF? Is it possible to show an editable datagrid inside a combo box? I have to show the columns of another datagrid in one column and the filter condition in the second column.
which is the best way to do this?
A: Yes you can template the combobox to display a datagrid in it.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512517",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to parse string into date time format? I have string having value "August-25-2011". How can I parse that into Datetime format?
A: Try:
DateTime dt = DateTime.ParseExact(
your_date,
"MMMM-dd-yyyy" ,
CultureInfo.InvariantCulture);
A: Try this out.
var date = DateTime.Parse("August-25-2011");
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512527",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Reactive Extensions... Examples in CRUD application I am just coming to grips with Reactive Extensions but still haven't had that "A-Ha" moment, the moment when it all seems to fit into place. As a result of this, I need some help and want to know what kind of a role reactive extensions might have in a simple CRUD p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512535",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Ckeditor: on dom change event Is it possible to hook into the process of creating elements in the dom of ckeditor? For example, every time the editor wants to append a p element into the dom, I would like to set some custom attributes on the element before it is appended.
A: Going throught the specs I stumbled upo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512538",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Using integer from one class in another Android I need some help with using integer from one activity to another.
I am making some basic math program(game). It gets two random numbers, random operator, and 30 secs to solve math problems as much as you can.
If you solve problem u get 1 point.
Anyway right now, I wan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512543",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: escaping characters in apache vhost - osx Simple apache question -
How do I escape the following folder name to allow apache to understand it?
NameVirtualHost *:80
<VirtualHost *:80>
ServerName calgary-ng-wrapper.lvh.me
DocumentRoot /Users/myname/workspaces/mysite/week-two-09232011 (branch)
<Directory "... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512555",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how to make multiple buttons visible in listview on one buttons click in android? i had made one layout, in this layout one button is in header and now i want that when user clicks on the header button in the listview, multiple button become visible. How can i do this? Pls reply
public View getView( final int positi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Qt QIODevice::write / QTcpSocket::write and bytes written We are quite confused about the behavior of QIODevice::write in general and the QTcpSocket implementation specifically. There is a similar question already, but the answer is not really satisfactory. The main confusion stems from the there mentioned bytesWrit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512559",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Return entity key after savechanges doesn't work I have this piece of code
IMG_UPLOAD_FILES tObjUploadedFile = new IMG_UPLOAD_FILES();
tObjUploadedFile.UPLOAD_FILE_NAME = "testname.png";
tObjUploadedFile.SETTINGS_FOLDER_ID = 2;
dbHandler.IMG_UPLOAD_FILES.AddObject(tO... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512562",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Changing the elements of an array member of a const object Can anyone explain to me why the following code works:
#include <iostream>
class Vec
{
int *_vec;
unsigned int _size;
public:
Vec (unsigned int size) : _vec (new int [size]), _size(size) {};
int & operator[] (const int & i)
{
return _vec[i];
}... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512569",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: AutorotateToInterfaceOrientation of a UIviewcontroller Inside a UITabViewController Hi I have an iphone app in which 2 button .when I click on the one of the button there a UITabViewController with 4 tab is opened modally. I need to rotate both Portrait and lanscape the viewcontroller inside this UITabViewController... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512570",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Spring form object binding, works when submitted normally. But how to convert to json and use ajax I have a form when submitted to a controller works fine, the controller signature :
@RequestMapping(value = "/Save", method = RequestMethod.POST)
public ModelAndView save(@ModelAttribute MyDTO myDTO) {}
I have another... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512572",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Linking the static version of a library instead of the dynamic one I am trying to use libjpeg in my application. Making the project yields a libjpeg.a in .libs folder. What I would like to do is to use this file in the linkage stage. I have tried the following: I copied the libjpeg.a into the folder where my C code ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512575",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Globally available database connection without using Global/Singleton I'm creating a new PHP application and want to make sure I get the ground work right to save any future problems. I know my application will have more than one class that will need a database connection (PDO) and after a long time scouring the int... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512579",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set different heights for each row in a ListView? I have problem setting the height of a single row in a ListView. I have already read hundreds of forums and blog posts, but nothing seems to work for me.
I have a ListView with an ArrayAdapter<Order>. Depending on an attributes of the Order object, different L... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512592",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: How to send ">' string in a java code to server When i try to send a value "Login>Success" to server i get the value as Login%3ESuccess.
How can i send the greater than symbol in the java string.
A: Why don't you URLDecode the values on the server side?
A: This question probably needs more context to be properly a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512606",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-4"
} |
Q: How can I implement Push method in a C# desktop application? I have my software(.NET) running on clients. I need to push the updates to the clients whenever available.
I thought to implement a web service which is running on the main server which broadcasts the update notifications to the client. For dat, CLient ha... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512607",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Google Analytics _trackEvent - always root of site I am trying to do some quite strange stuff with Google Analytics, I will try and explain as best as possible.
I have a holding site, that loads a form in via jQuery, the main site has its own tracking code, and the ajax loaded content using a different tracking code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512609",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Howto successfully register certadm.dll in order to be able to use ICertView2 in C# Code Motivation:
*
*I want be able to retrieve and view Certificates from a Windows CA on a local Machine. I don't want to access the Browser-Keystores of the Machine, but the Windows CA (Windows Certifcate Authority (Service)).
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512610",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Problem with GtkTextBuffer , Confusing Runtime Error. Need Help? I am using this code:
class editbook
{
GtkWidget* _nbook;
std::vector<GtkWidget*> _srcset; //and so on...
...........................................................................................
void editbook::add_page()
{
GtkWidget* tmp = ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512619",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programming Theory - Proving Invariants I have defined this pseudo-code for recognising strings using a relaxed-trie where the function Next[u,x] gives the set of nodes with u-edges from u ( basically the set of nodes such that (u,x,v) is an edge in T).
Here it is:
U := {1};
while s ≠ λ and U ≠ Ø do
U:= U in u U... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512620",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is there such thing as system images available in Android? I'd like to use basic images like the ones in the menu of the alarm application. Are these images integrated in the Android SDK ? I didn't find any way to access them.
If not, do you know a good free library ?
Thanks in advance,
Regards,
C.Hamel
A: http://w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Update problem with listbox form fed from a query I am feeding a listbox in my form with a query result that depend on other controls of the same form. The problem is that my listbox doesn't update wheareas when I launch the query manually, the result is good.
A: As Remou suggests put Me.listBox.Requery in the Afte... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512628",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calling the items.add method twice causes the two items to overlap on the card Here is my add item code:
myapp.cards.vehicleInfo.items.add(
new Ext.List({ ...})
)
If after this I then do:
myapp.cards.vehicleInfo.items.add(
new Ext.Panel(
{html: 'test' }
)
);
The panel with 'test'... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: DBContext, state and original values I'm working with ASP.NET MVC3 using EF and Code First.
I'm writing a simple issue tracker for practice. In my Controller I have a fairly standard bit of code:
[HttpPost]
public ActionResult Edit(Issue issue) {
if (ModelState.IsValid) {
dbContext.Entry(issue).State = E... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512636",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to make floating HTML work? I have a script (jsfiddle demo) that keeps the row title and column title of a large table visible while scrolling. The second row of the header has a < select > element in each cell. The problem is that when I scroll the table and the header "floats", the selects are not working any... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512643",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Yii CMenu & CSS I am having problems having my CSS applied when a menu item links to a specific record.
Take the simple menu below, the CSS as defined in Menu works just fine for 'Account' but when I click on 'My Account' it doesn't.
<div id="Menu">
<?php $this->widget('zii.widgets.CMenu',array(
'it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: JQuery UI calculate sizing of content inside dialog to avoid scroll bars in the dialog I'm putting some content inside a JQuery UI dialog. The HTML is as follows:
<div id="dialog">
<div id="content">
<div id="scrollable">
<div id="data">
<ul>
<li/>
<li/>
....
</u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512649",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: codeigniter view in construct class Index extends MY_Controller {
public function __construct() {
parent::__construct();
}
}
class MY_Controller extends CI_Controller{
function __construct(){
parent::__construct();
$this->load->view('index');
die();
}
}
Why in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Clickonce update without overwriting config I want deploy many client (WPF) with Clickonce, i would not overwriting configuration file when i update client. It is possible ?
not include the file for update ? or make a differential update ?
In fact I do not want to crush the connectionString in the updated with Click... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to improve quality of live streaming video in Flash? I created Flash application that is broadcasting/watching live streaming with Adobe Media Server, and it's quality is low even with microphone turned off...
I set quality and bandwidth to 0, meaning that application has to decide which one is better to use in ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512659",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Output of urllib.urlopen doesn't display when render to a template I'm using Python 2.7 - how can I convert the output of urllib.urlopen to a string?
data = urllib.urlopen('http://www.google.com').read()
test = "testone"
return render_to_response('home.html', locals())
home.html:
{{data}}
<br/>
{{test}}
Only 'tes... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512660",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Showing java.lang.illegalargumentexception at LocationManager in android I have an application in which I am getting current location at the first page. In India Application is working fine and getting current location. When we run the application in US, application is getting crashed at the first page itself and th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Backward compatiblity of iOS static library I am creating an iOS static library and trying to integrate the new iOS5 Twitter framework. So I have implemented the new Twitter framework and made the library, the static library will work on Xcode 4.2 (iOS5) without any problem.
The problem with me is that, the library ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512662",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: how to add fix number of rows to gridview in c#? I have to insert fix number of rows to gridview. I am not using database and also not creating row one by one.
I initially want 7 rows with 3 column, with first column having text stored in my array.
I am creating gridview as,
<asp:GridView ID="GridView1" runat="serve... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512667",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Calculate the date after 6 months from compare the date of database using java i want to send an auto mail after every 6 months from the registration date.
i am using CornJob for this auto mail.
now i am collecting date from database and want to get that date after 6 months.
(now.get(Calendar.MONTH) + 1) this will i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512669",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Best way to deal with many image resources? I have a doubt regarding the best way to deal with many image resources.
These images are the flags of all the Countries in the world so they are circa 200.
Usually I store all the images in the res/drawable folder but in this case, they are too many.
What would you sugge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512673",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: how to get specified text pos through xpdf or mupdf? I want to extract some specified text in pdf files and the text position.
I know xpdf and mupdf can parse pdf files,so i think they may help me to fulfill this task.
But how to use these two lib to get text position?
A: If you don't mind using a Python binding fo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512674",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: which one is a better choice for android webservice developing,Rest or Soap?why? I am going to develop a app which uses webservice, i don not know clearly what are differents between soap and rest for android developing,which one is better?why
Thanks
A: Rest is to prefer. Soap is for large project and are not suit... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to keep a variable value across requests in web.py I want to update logfile as soon as a request comes. I have a class variable event_logging_enabled which is initialised to TRUE. and in the POST() function I check the value of event_logging_enabled.
Now at run time, I modify the value of this flag to FALSE for... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Process multi-level xml with collection in element I have an xml document that I would to parse using SSIS 2005 to an SQL table.
But I'm having some trouble with it because it is multi-level and contains collections(?) in each post.
I have found a solution to get multilevel XML to one row using Merge Join in SSIS, b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512682",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Should I need to make the iTunes Artwork image round cornered? Do I need to make my iTunes artwork have rounded corners when submitting an app to the App Store?
A: Apple will add round corners to your icons by itself.
A: You don't need to make an icon round-cornered for submission to Apple. They add the corners, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512685",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-2"
} |
Q: Deploying cakephp application onto server my config/database.php is as follows,
var $default = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'ftp.example.sg ',
'login' => 'xxx',
'password' => 'xxx',
'database' => 'testdatabase',
'prefix' => '',
);
How can I make it deploy ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: How to make a class Non-Inheritable
Possible Duplicate:
Making a template parameter a friend?
C++ Faq 23.11 How can I set up my class so it won't be inherited from?
lists the following code:
class Fred;
class FredBase {
private:
friend class Fred;
FredBase() { }
};
class Fred : private virtual FredBase {... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Bilateral filter algorithm I'm trying to implement a simple bilateral filter in javascript. This is what I've come up with so far:
// For each pixel
for (var y = kernelSize; y < height-kernelSize; y++) {
for (var x = kernelSize; x < width-kernelSize; x++) {
var pixel = (y*width + x)*4;
var sumWei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512691",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Embeded comment paging in mongodb if I got a collection for storing Articles with it's Comments embedded, when retriving data from db, I will get a Article object with a completely Comment list, support there are a lot of comments, so this could be a problem of loading efficience, how can I handler this by paging Co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Cannot type in textarea after requesting with ajax I'm doing an ajax request and the output of this request is a textarea that is injected into a div. But for some reason I can't type in it in firefox. In google chrome I can't do ctrl-A.
I tried removing all of the css classes, but it still has weird behaviour.
Jque... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512695",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Flask app that routes based on subdomain I want to have my top-level domain as a portal for various subdomains that correspond to different sections of my site. example.com should route to a welcome.html template. eggs.example.com should route to an "eggs" subsection or application of the site. How would I achieve t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512698",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: MVC 3 partial view validation problem I'm trying to validate a form in a Partal View using the DataAnnotations.
The problem is when I check if the form is valid in the javascript, it always returns true, even if the form doesn't meet the requirements.
This is the line who always returns true: var valid = $("#create-... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512699",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: ViewExpiredException, Page could not be restored I've tried to follow different posts on how to handle the ViewExpiredException in Mojarra 2.1.0 (with RichFaces 4) on GlassFish 3.1. But what I define in web.xml doesn't seams to have any effect. I use form base security and the user has to logon to access the content... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Play framework: Sorting crud table fields How do i set the sort order to DESC as default? This sort doesn't really do anything but make postedAt the only sortable item:
<div id="crudListTable">
#{crud.table fields:['title', 'postedAt'], sort:['postedAt']}
#{crud.custom 'postedAt'}
${object.po... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: rjs type error in rails? I add a link_to_remote to load a modal dialog box from a partial. But when I run the application I get the following error..
RJS error:
TypeError: $("create_event_dialog").dialog is not a function
When I click ok then again I got another dialog box.
Element.update("create_event", "<form ac... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Searching for a specific JOB by the procedure it calls Is it possible to search a JOB by the code it executes?
I.E. I want to find the JOB that launches a certain stored procedure.
Is there a query to do it?
A: select
*
from
user_jobs
where
what like '%my_token%';
A: Try using the all_dependencies vie... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Programatically setting the user and password for authentication. How to avoid the security question? I'm developing an application for a Hotel where the costumers capture some snapshots and then upload them to their facebook.
Using the graph API it makes you identify yourself on facebook using the security question... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512719",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Powershell - filtering WMIObject processes by more than one name I am trying to get a list of running processes and filter by two process names - can any one tell me how to get this working?
I've so far got it working and filtering out one process name:
$rn = Get-WMIObject Win32_Process -computer servername `
-cre... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512734",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: EmguCV Shape Detection affected by Image Size I'm using the Emgu shape detection example application to detect rectangles on a given image. The dimensions of the resized image appear to impact the number of shapes detected even though the aspect ratio remains the same. Here's what I mean:
Using (400,400), actual img... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512737",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Simple window shadow/freeze between registration steps with spinner Basically, i have a 4 steps registration process.
4 .html with 4 forms each one. Since you click next step in step one until you reach the step two it takes abouts 5 to 10 secs (it depends on the server...)
I want to shadow the window (and prevent ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512743",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: mysql cast as interval is it possible to cast as an interval in MySQL?
I want to evaluate a value from the query as an interval, like this:
select DATE_SUB(NOW(),CAST(user.expiry_interval AS interval))
where user.expiry_interval is 'INTERVAL 1 WEEK' or something like that
select DATE_SUB(NOW(),CAST('INTERVAL 1 week... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512744",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Newbie needs to multiple select of the same table I have a single table with people's info such as
*
*ID
*Family (last name)
*Name (first name)
*Status
*IDFather
*IDMother
I'd like to bring up the information containing childs' Name and Family, as well as their parent's ID, Name and Family, but only those r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512745",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery ajax call errors with sendToValue is not defined, what is wrong with this jquery code ? I'm kind of new to jquery/ajax calls, I have this code below to pull from php page json values.
$(function(){
$('#search').keyup(function() {
sendValue($(this).val);
});
});
function sendValue(str)
{
$.post(
"... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Changing ListBox ItemsPanelTemplate has gotten me into trouble? I have a CustomControl (say CC) that has been inherited from ContentControl and contains a ScrollViewer which includes a ContentPresenter. When I put a ListBox into the CC it works without any problem. But when I set the ItemsPanelTemplate of the ListBo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7512748",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.