PostId int64 13 11.8M | PostCreationDate stringlengths 19 19 | OwnerUserId int64 3 1.57M | OwnerCreationDate stringlengths 10 19 | ReputationAtPostCreation int64 -33 210k | OwnerUndeletedAnswerCountAtPostTime int64 0 5.77k | Title stringlengths 10 250 | BodyMarkdown stringlengths 12 30k | Tag1 stringlengths 1 25 ⌀ | Tag2 stringlengths 1 25 ⌀ | Tag3 stringlengths 1 25 ⌀ | Tag4 stringlengths 1 25 ⌀ | Tag5 stringlengths 1 25 ⌀ | PostClosedDate stringlengths 19 19 ⌀ | OpenStatus stringclasses 5
values | unified_texts stringlengths 47 30.1k | OpenStatus_id int64 0 4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10,737,297 | 05/24/2012 12:13:32 | 1,414,978 | 05/24/2012 11:58:35 | 1 | 0 | AChartEngine - read y values by x | I'm currently working on my first android application and now use the achartengine library.
My question: Is there a function to read out y-values from a chart by passing an x-value as a parameter?
I have a line chart using a TimeSeries with several custom dates (for example 07/24/12 and 07/29/12). Now I want to p... | android | time-series | achartengine | linechart | null | null | open | AChartEngine - read y values by x
===
I'm currently working on my first android application and now use the achartengine library.
My question: Is there a function to read out y-values from a chart by passing an x-value as a parameter?
I have a line chart using a TimeSeries with several custom dates (for example ... | 0 |
10,835,724 | 05/31/2012 14:36:00 | 1,381,767 | 05/08/2012 10:12:07 | 581 | 28 | exact answer for "what is j2ee?" - job interview | I'd like to ask if someone of you knows the exact meaning of J2EE (or JEE).
Please read on before downvoting. :)
That's because a collegue of mine was asked this question in a job interview, and was "unable to answer properly"... to speak with his interwiewer's words.
And when he told me what he said to his interv... | java | java-ee | definition | null | null | 05/31/2012 14:38:57 | off topic | exact answer for "what is j2ee?" - job interview
===
I'd like to ask if someone of you knows the exact meaning of J2EE (or JEE).
Please read on before downvoting. :)
That's because a collegue of mine was asked this question in a job interview, and was "unable to answer properly"... to speak with his interwiewer's ... | 2 |
11,077,923 | 06/18/2012 06:34:42 | 1,420,410 | 05/27/2012 17:26:12 | 16 | 1 | How to use single sign on with ODBC? | I am looking for a single sign on approach for an ODBC connection to a Postgres database.
The plan is to login to a web application and then use a a single sign on scheme such as oauth or CAS to automatically login to a client application.
The client application does not verify the credentials itself, but uses th... | postgresql | oauth | odbc | single-sign-on | cas | null | open | How to use single sign on with ODBC?
===
I am looking for a single sign on approach for an ODBC connection to a Postgres database.
The plan is to login to a web application and then use a a single sign on scheme such as oauth or CAS to automatically login to a client application.
The client application does not ... | 0 |
8,199,701 | 11/20/2011 05:40:12 | 909,510 | 08/24/2011 11:31:59 | 1 | 0 | Android browser that supports the Sinhala language | I'm a Sinhalese living in Sri Lanka. I have an android tablet(HTC Flyer). One of my activities is to read newspapers online. I read several Sinhalese newspapers on my pc. I found out that these sites do not work in Android browser. My guess is the font is not supported. I tried Opera and Firefox as well, to no avail.
... | android | browser | fonts | support | null | 11/20/2011 06:18:10 | off topic | Android browser that supports the Sinhala language
===
I'm a Sinhalese living in Sri Lanka. I have an android tablet(HTC Flyer). One of my activities is to read newspapers online. I read several Sinhalese newspapers on my pc. I found out that these sites do not work in Android browser. My guess is the font is not supp... | 2 |
4,417,088 | 12/11/2010 14:01:08 | 301,635 | 03/25/2010 11:28:14 | 465 | 75 | Learning Ruby, but First FInding Out what it is? | I have just bought a Ruby on Rails book, but I am gonna learn Ruby as much as possible through the internet first.
The first thing I need to know is, what is Ruby and what do I need to run it?
Is it likely to be installed on my Linux/Apache server or will I need to have them install it? Is it even a web based lan... | ruby | null | null | null | null | 02/24/2012 20:22:47 | off topic | Learning Ruby, but First FInding Out what it is?
===
I have just bought a Ruby on Rails book, but I am gonna learn Ruby as much as possible through the internet first.
The first thing I need to know is, what is Ruby and what do I need to run it?
Is it likely to be installed on my Linux/Apache server or will I ne... | 2 |
9,787,227 | 03/20/2012 12:59:01 | 857,282 | 07/22/2011 04:56:25 | 27 | 0 | linux server data recovery | accidentally i lost around 1 GB data from my linux server .
Including oracle database. Is there any option to recover that data .
I want to know is there any third party tool or anything like that | linux | data-recovery | null | null | null | 03/20/2012 13:26:02 | off topic | linux server data recovery
===
accidentally i lost around 1 GB data from my linux server .
Including oracle database. Is there any option to recover that data .
I want to know is there any third party tool or anything like that | 2 |
8,691,008 | 12/31/2011 23:07:17 | 157,880 | 08/17/2009 16:40:05 | 929 | 53 | Need tutorial/example for browser extension for auto-payment | I need to create an extension for either `FireFox`/`Chrome`.<br />
***Note***: This is intended to work for only one particular website(say, www.mySite.com)<br/>
The goal is to achieve this:
1. Monitor a user-specified webpage (www.mySite.com/12345.html)
2. Constantly check if a particular element is present on... | google-chrome-extension | firefox-addon | payment-gateway | browser-extension | null | 01/01/2012 17:16:35 | not a real question | Need tutorial/example for browser extension for auto-payment
===
I need to create an extension for either `FireFox`/`Chrome`.<br />
***Note***: This is intended to work for only one particular website(say, www.mySite.com)<br/>
The goal is to achieve this:
1. Monitor a user-specified webpage (www.mySite.com/12345... | 1 |
11,741,760 | 07/31/2012 13:53:30 | 1,440,480 | 06/06/2012 17:56:53 | 9 | 0 | Fancybox issue. Duplicate images | With the modules fancybox i try to show a photo gallery in a modal page (fancybox).
The problem is that the images are showing 11 times and i don't know why. I already search and i use the correct syntax.
Here is my code:
JQUERY
$(".testGatorade[rel=group1]").fancybox({
'speedIn' ... | jquery | html | fancybox | null | null | null | open | Fancybox issue. Duplicate images
===
With the modules fancybox i try to show a photo gallery in a modal page (fancybox).
The problem is that the images are showing 11 times and i don't know why. I already search and i use the correct syntax.
Here is my code:
JQUERY
$(".testGatorade[rel=group1]").fanc... | 0 |
6,194,571 | 05/31/2011 23:08:04 | 778,341 | 05/31/2011 20:46:14 | 1 | 0 | How to call jquery that is stored in external javascript file from html file | //employeeForm.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>Employee Information</title>
<script src="jquery-1.4.4.js" type="text/javascript"></script>
<link href="EmployeeFormStyle.css" type="text/css... | html | null | null | null | null | null | open | How to call jquery that is stored in external javascript file from html file
===
//employeeForm.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>Employee Information</title>
<script src="jquery-1.4.4.js" type=... | 0 |
3,098,578 | 06/23/2010 02:40:29 | 176,853 | 09/21/2009 23:24:26 | 152 | 3 | WPF Image Mapping | Is there a way to draw/fit a simple Quadrilateral cut-out from an image onto a standard axis-aligned rectangle for screen display. (So that the cut-out will be distorted to fill the rectangle points). Seems to me it should be possible with an ImageBrush but I cannot quite see it.
| wpf | image | mapping | imagebrush | null | null | open | WPF Image Mapping
===
Is there a way to draw/fit a simple Quadrilateral cut-out from an image onto a standard axis-aligned rectangle for screen display. (So that the cut-out will be distorted to fill the rectangle points). Seems to me it should be possible with an ImageBrush but I cannot quite see it.
| 0 |
4,755,280 | 01/21/2011 04:10:30 | 556,771 | 12/29/2010 05:36:11 | 165 | 18 | MFC to Cross-Plataform , the best way ? | I have a BIG progress in MFC, is done with pure MFC, nothing of the STD library was used.
The software its a Network one, and with medium coupling with the GUI.
But the GUI is one of the most important part of my software.
Now i what to approach another markets, MAC/WIN/Linux are essential, but IOS, Meego and An... | c++ | mfc | migration | cross-platform | null | 05/24/2012 12:17:12 | not constructive | MFC to Cross-Plataform , the best way ?
===
I have a BIG progress in MFC, is done with pure MFC, nothing of the STD library was used.
The software its a Network one, and with medium coupling with the GUI.
But the GUI is one of the most important part of my software.
Now i what to approach another markets, MAC/W... | 4 |
9,811,150 | 03/21/2012 19:02:54 | 843,337 | 07/13/2011 18:53:45 | 737 | 27 | How can I make an exact replica of a UIComponent? (iPad) | I need to create an exact copy of several `UIComponents` in my app. An example of this is a `UILabel`. I have created two `UILabels` in interface builder, which I have then linked up.
The next thing I did was as follows:
self.myLabel_a.text = @"Blah blah blah";
// ... and some other settings (eg. font si... | iphone | objective-c | ipad | uilabel | null | null | open | How can I make an exact replica of a UIComponent? (iPad)
===
I need to create an exact copy of several `UIComponents` in my app. An example of this is a `UILabel`. I have created two `UILabels` in interface builder, which I have then linked up.
The next thing I did was as follows:
self.myLabel_a.text = @"Bla... | 0 |
8,187,019 | 11/18/2011 18:14:03 | 1,054,079 | 11/18/2011 15:23:22 | 1 | 0 | How check global vars in debugger of Xcode 4.2 | In Xcode 3.2 it was possible to check global vars in the Xcode debugger (by defining interesting vars in a special dialog).
However in Xcode 4.2 I can't find a way to inspect global vars.
Any ideas?
| iphone | ios | xcode | xcode4.2 | null | null | open | How check global vars in debugger of Xcode 4.2
===
In Xcode 3.2 it was possible to check global vars in the Xcode debugger (by defining interesting vars in a special dialog).
However in Xcode 4.2 I can't find a way to inspect global vars.
Any ideas?
| 0 |
754,499 | 04/16/2009 02:09:50 | 91,422 | 04/16/2009 02:09:50 | 1 | 0 | Best system for multiple language support in PHP? | I have an PHP application that I want localized. Currently, the way I'm doing this is a very ugly way: $loc['hello'] = "Hello", echo $loc['hello']; will show Hello, and you can change the file to change the language. What I want is a better way and a faster of doing this, what I'm considering:
- 1 XML file with lan... | php | gettext | xml | null | null | 09/20/2011 14:17:05 | not constructive | Best system for multiple language support in PHP?
===
I have an PHP application that I want localized. Currently, the way I'm doing this is a very ugly way: $loc['hello'] = "Hello", echo $loc['hello']; will show Hello, and you can change the file to change the language. What I want is a better way and a faster of doin... | 4 |
5,438,529 | 03/25/2011 21:53:58 | 677,499 | 03/25/2011 21:53:58 | 1 | 0 | Using Wordpress as a CMS - advice on doing it for localhost? | I have a plain-vanilla install of Wordpress on localhost, virtual host in Apache set to:
127.0.0.1 myradiostationhere.com
127.0.0.1 www.myradioanytown.co.uk
and the virtual host works.
However, I don't want to use it as a blog, but as a CMS like here:
http://www.brmb.co.uk/
and
http://www.brm... | php | wordpress | content-management-system | customization | copyright | null | open | Using Wordpress as a CMS - advice on doing it for localhost?
===
I have a plain-vanilla install of Wordpress on localhost, virtual host in Apache set to:
127.0.0.1 myradiostationhere.com
127.0.0.1 www.myradioanytown.co.uk
and the virtual host works.
However, I don't want to use it as a blog, but as a... | 0 |
10,869,947 | 06/03/2012 11:30:26 | 1,433,451 | 06/03/2012 11:27:24 | 1 | 0 | Good practices for localization based on location | We currently have an iOS app available in English. We have decided to localize it into other languages, but first we wanted to look into how other companies are doing it in order to determine what the best practices would be.
When we looked at how Apple localizes their apps we found something which we think is very ... | iphone | ios | ipad | localization | internationalization | 06/04/2012 14:03:38 | not constructive | Good practices for localization based on location
===
We currently have an iOS app available in English. We have decided to localize it into other languages, but first we wanted to look into how other companies are doing it in order to determine what the best practices would be.
When we looked at how Apple localize... | 4 |
5,618,450 | 04/11/2011 08:04:21 | 665,638 | 03/18/2011 07:04:54 | 1 | 0 | New Instance of the page on Navigation | I have a few pages in an Application that require A-Synchronous calls to be made for about 2-3 minutes to get Synchronized, the user may navigate away from that page during Synchronization and can come back again after visiting multiple pages and the sync continues all the time he is on other pages as well, when I go t... | windows-phone-7 | asynchronous | navigation | instance | back-button | null | open | New Instance of the page on Navigation
===
I have a few pages in an Application that require A-Synchronous calls to be made for about 2-3 minutes to get Synchronized, the user may navigate away from that page during Synchronization and can come back again after visiting multiple pages and the sync continues all the ti... | 0 |
7,670,523 | 10/06/2011 05:16:39 | 966,818 | 09/27/2011 10:34:13 | 68 | 7 | Routine Optimized c# code | How do we write better/optimized code in our routine programming life for better productivity.
Any examples like shorthand coding etc? | c# | null | null | null | null | 10/06/2011 05:31:36 | not constructive | Routine Optimized c# code
===
How do we write better/optimized code in our routine programming life for better productivity.
Any examples like shorthand coding etc? | 4 |
2,866,594 | 05/19/2010 14:46:35 | 340,097 | 05/13/2010 09:01:53 | 28 | 0 | How to make a thread try to reconnect to the Database x times using JDBCTemplate | I have a single thread trying to connect to a database using JDBCTemplate as follows:
JDBCTemplate jdbcTemplate = new JdbcTemplate(dataSource);
try{
jdbcTemplate.execute(new CallableStatementCreator() {
@Override
public CallableStatement createCallableStatement(Connection con)
... | jdbctemplate | database-connection | null | null | null | null | open | How to make a thread try to reconnect to the Database x times using JDBCTemplate
===
I have a single thread trying to connect to a database using JDBCTemplate as follows:
JDBCTemplate jdbcTemplate = new JdbcTemplate(dataSource);
try{
jdbcTemplate.execute(new CallableStatementCreator() {
... | 0 |
6,007,836 | 05/15/2011 10:30:52 | 752,801 | 05/13/2011 17:44:11 | 18 | 0 | Const compiler/runtime | How are treated constants? They take up space in RAM in runtime or are replaced with their values at compile time? | const | generalist | null | null | null | 05/18/2011 04:00:58 | not a real question | Const compiler/runtime
===
How are treated constants? They take up space in RAM in runtime or are replaced with their values at compile time? | 1 |
8,589,359 | 12/21/2011 11:51:59 | 149,237 | 08/02/2009 09:05:22 | 1,678 | 74 | Excel: last non empty cell of a column | I have this kind of table:
A | B | C | D
-----+-----+-----+----
1 | 2 | X | 5
| | f | 3
| 5 | R | 12
Z | 3 | T | x
| G | |
And I'd like to add a colums which would concatenate the row, but filling the bl... | excel | table | concatenation | formula | null | 12/22/2011 14:33:54 | off topic | Excel: last non empty cell of a column
===
I have this kind of table:
A | B | C | D
-----+-----+-----+----
1 | 2 | X | 5
| | f | 3
| 5 | R | 12
Z | 3 | T | x
| G | |
And I'd like to add a colums which w... | 2 |
37,483 | 09/01/2008 05:20:41 | 2,601 | 08/23/2008 13:45:18 | 1 | 2 | Calculate Video Duration | I suck at math. I need to figure out how to calculate a video duration with only a few examples of values. For example, a value of 70966 is displayed as 1:10 minutes. A value of 30533 displays as 30 seconds. A value of 7007 displays as 7 seconds. | math | video | calculate | duration | null | 05/03/2012 19:56:34 | off topic | Calculate Video Duration
===
I suck at math. I need to figure out how to calculate a video duration with only a few examples of values. For example, a value of 70966 is displayed as 1:10 minutes. A value of 30533 displays as 30 seconds. A value of 7007 displays as 7 seconds. | 2 |
9,542,391 | 03/03/2012 00:57:50 | 660,284 | 03/15/2011 09:33:33 | 323 | 15 | float/double equality with exact zero | I have an algorithm which uses `floats` or `doubles` to perform some calculations.
Example:
double a;
double b;
double c;
...
double result = c / (b - a);
if ((result > 0) && (result < small_number))
{
// result is relevant...
} else {
// result not require... | c++ | floating-point | null | null | null | null | open | float/double equality with exact zero
===
I have an algorithm which uses `floats` or `doubles` to perform some calculations.
Example:
double a;
double b;
double c;
...
double result = c / (b - a);
if ((result > 0) && (result < small_number))
{
// result is relevant...
... | 0 |
2,316,959 | 02/23/2010 09:23:20 | 186,380 | 10/08/2009 13:32:06 | 48 | 4 | Selected event not raised for ObjectDatasource when enable-caching is true | I've a Gridview control using an ODS(ObjectDataSource) to fetch data. For the best performance and efficiency, I've turned-off the view state of Gridview (i.e. EnableViewstate = "false".
And I've also enabled caching in the associated Objectdatasource. This eliminates as much as 50-60% performance optimization becau... | objectdatasource | caching | total | record | count | null | open | Selected event not raised for ObjectDatasource when enable-caching is true
===
I've a Gridview control using an ODS(ObjectDataSource) to fetch data. For the best performance and efficiency, I've turned-off the view state of Gridview (i.e. EnableViewstate = "false".
And I've also enabled caching in the associated Ob... | 0 |
2,997,417 | 06/08/2010 12:55:57 | 192,961 | 10/20/2009 09:13:25 | 81 | 12 | Assign keyboard shortcut to Visual Studio 2010 custom macro | I had a macro (<a href="http://weblogs.asp.net/koenv/archive/2008/02/14/quick-attach-and-detach-debugger.aspx">http://weblogs.asp.net/koenv/archive/2008/02/14/quick-attach-and-detach-debugger.aspx</a>) in Visual Studio 2008 that attaches the debugger to IIS (for ASP.NET/WCF development). I assigned a shortcut to it usi... | visual-studio | macros | null | null | null | null | open | Assign keyboard shortcut to Visual Studio 2010 custom macro
===
I had a macro (<a href="http://weblogs.asp.net/koenv/archive/2008/02/14/quick-attach-and-detach-debugger.aspx">http://weblogs.asp.net/koenv/archive/2008/02/14/quick-attach-and-detach-debugger.aspx</a>) in Visual Studio 2008 that attaches the debugger to I... | 0 |
10,578,640 | 05/14/2012 06:52:38 | 965,273 | 09/26/2011 14:51:46 | 30 | 0 | popup screen won't show after submitting a form | I am building a web app with jquery mobile. On one page I have a little form to make a room reservation. I have two input boxes. In these boxes comes the start DateTime and in the other one the end DateTime.
Now what I do is the following, when I click on the input box there comes an popup box where you can insert ... | javascript | jquery | jquery-plugins | jquery-mobile | null | null | open | popup screen won't show after submitting a form
===
I am building a web app with jquery mobile. On one page I have a little form to make a room reservation. I have two input boxes. In these boxes comes the start DateTime and in the other one the end DateTime.
Now what I do is the following, when I click on the inp... | 0 |
11,462,046 | 07/12/2012 23:10:17 | 944,430 | 09/14/2011 10:56:19 | 111 | 0 | What is the niche of Go lang? | I started learning Python for webdevelopment and i just stumbled of Go. So i read though several topic , threads and discussion and I still don't know what purpose this language fulfills.
So as an very uniformed guy I would say that it's place is in the webdevelopment. To increase speed -> scaling and maintainabilit... | python | google-app-engine | go | null | null | 07/14/2012 14:40:56 | not constructive | What is the niche of Go lang?
===
I started learning Python for webdevelopment and i just stumbled of Go. So i read though several topic , threads and discussion and I still don't know what purpose this language fulfills.
So as an very uniformed guy I would say that it's place is in the webdevelopment. To increase ... | 4 |
5,035,737 | 02/17/2011 22:56:58 | 445,646 | 09/12/2010 16:05:54 | 44 | 6 | how to design custom template in socialengine4 framework? | As I am new to socialengine4 so i am having trouble in designing custom template. I want to convert HTML/CSS template into Socialengine4 module.
Example:
![enter image description here][1]
[1]: http://i.stack.imgur.com/iEd2C.jpg
Suppose this is the template and i want to design it into socialengine4.
1... | php | zend-framework | themes | social-networking | null | null | open | how to design custom template in socialengine4 framework?
===
As I am new to socialengine4 so i am having trouble in designing custom template. I want to convert HTML/CSS template into Socialengine4 module.
Example:
![enter image description here][1]
[1]: http://i.stack.imgur.com/iEd2C.jpg
Suppose this ... | 0 |
5,354,572 | 03/18/2011 15:56:46 | 242,721 | 01/03/2010 15:29:06 | 196 | 11 | equivalent of hql coalesce in linq-to-nhibernate | Supposing I have the following hql:
select cast(coalesce(sum(c.Valoare), 0) as decimal)
from Comision as c
where c.User = :user
Is there any way of writing this in Linq-To-Nhibernate? | linq-to-nhibernate | coalesce | null | null | null | null | open | equivalent of hql coalesce in linq-to-nhibernate
===
Supposing I have the following hql:
select cast(coalesce(sum(c.Valoare), 0) as decimal)
from Comision as c
where c.User = :user
Is there any way of writing this in Linq-To-Nhibernate? | 0 |
9,905,619 | 03/28/2012 10:28:37 | 747,050 | 05/10/2011 14:35:02 | 42 | 1 | Installing OpenCL on linux without root rights | I want to use OpenCL on a linux machine, where I have only users rights. I have found only .rpm file, which is not the option until I don't get root's privileges.
Can I do some other way? Can I download the source some where?
| linux | opencl | null | null | null | 04/01/2012 05:35:43 | off topic | Installing OpenCL on linux without root rights
===
I want to use OpenCL on a linux machine, where I have only users rights. I have found only .rpm file, which is not the option until I don't get root's privileges.
Can I do some other way? Can I download the source some where?
| 2 |
9,984,282 | 04/02/2012 21:43:19 | 54,408 | 01/13/2009 01:04:51 | 2,006 | 12 | Which type of placeholder should I use for PDO for faster performance? | From what I've read, the only difference between named placeholders (like :email) and positional placeholders (the ? placeholder) is that you don't need to worry about the order for named placeholders when binding your params later, while with positional, you need to be careful to order your params correctly.
Howeve... | php | mysql | pdo | null | null | 04/02/2012 21:56:32 | not constructive | Which type of placeholder should I use for PDO for faster performance?
===
From what I've read, the only difference between named placeholders (like :email) and positional placeholders (the ? placeholder) is that you don't need to worry about the order for named placeholders when binding your params later, while with ... | 4 |
8,137,402 | 11/15/2011 13:54:00 | 1,047,631 | 11/15/2011 13:25:40 | 1 | 0 | Including GPL software in private application | I'd like to use openssh client for windows in a closed source appliation I'm building. openssh falls under the openbsd license so I believe I'm good there. The part I'm not sure about is openssh for windows calls/requires 5 cygwin dlls which fall under GPLv3+. My program would use ssh.exe by spawning off an ssh sessio... | licensing | cygwin | gpl | openssh | null | 11/16/2011 03:15:41 | off topic | Including GPL software in private application
===
I'd like to use openssh client for windows in a closed source appliation I'm building. openssh falls under the openbsd license so I believe I'm good there. The part I'm not sure about is openssh for windows calls/requires 5 cygwin dlls which fall under GPLv3+. My prog... | 2 |
10,742,232 | 05/24/2012 17:14:49 | 1,399,844 | 05/16/2012 23:58:12 | 94 | 12 | jQuery discount & final price | I gather the price of products available from <span class="price"> </ span> and the total to put on <span class="total"></ span>, if the total is greater than $ 200 to have discount of 20 $, on which to display in <span class="discount"></ span>, if the total is greater than 400 to have $ 40 discount. THX
[jsfiddle]... | javascript | jquery | html | css | null | 05/29/2012 14:10:51 | not a real question | jQuery discount & final price
===
I gather the price of products available from <span class="price"> </ span> and the total to put on <span class="total"></ span>, if the total is greater than $ 200 to have discount of 20 $, on which to display in <span class="discount"></ span>, if the total is greater than 400 to ha... | 1 |
10,973,230 | 06/10/2012 23:38:50 | 840,546 | 07/12/2011 11:00:59 | 121 | 1 | How to find if two interfaces addresses are from the same node ? | I was analyzing traceroute of multiple paths and observed that for any two paths A and B traceroute(A-B) and traceroute(B-A) both had different ip addresses. But I concluded that these ip addresses are from same nodes (but different interfaces).
My conclusion is because both are reverse of each other and the differ... | networking | ip-address | traceroute | network-interface | null | 06/12/2012 09:49:41 | off topic | How to find if two interfaces addresses are from the same node ?
===
I was analyzing traceroute of multiple paths and observed that for any two paths A and B traceroute(A-B) and traceroute(B-A) both had different ip addresses. But I concluded that these ip addresses are from same nodes (but different interfaces).
... | 2 |
7,865,891 | 10/23/2011 11:39:03 | 692,601 | 04/05/2011 09:45:29 | 23 | 2 | how to extend hard disk centos (4 HDD to one folder) | i have centos system.
and i want to combine 4 hard drives to one folder.
i have 4X1.0T and each of them is separated.
how can i combine them all to the same folder.
like if there is no store left in the first HDD, then it will save the files and the seocnd and on...
here is my fdisk list:
> Disk /dev/sda: 1000.... | unix | centos | harddrive | lvm | fdisk | 10/24/2011 19:14:49 | off topic | how to extend hard disk centos (4 HDD to one folder)
===
i have centos system.
and i want to combine 4 hard drives to one folder.
i have 4X1.0T and each of them is separated.
how can i combine them all to the same folder.
like if there is no store left in the first HDD, then it will save the files and the seocnd a... | 2 |
5,628,146 | 04/11/2011 22:10:33 | 473,539 | 10/12/2010 16:02:35 | 474 | 20 | Detecting if IE7 or lower with conditional comments and javascript not working. | I'm trying to check if a person is using anything IE with version less than 8 or anything else.
I use conditional comments to declare boolean..
<!--[if lt IE 8]>
<script type="text/javascript">var badIE = true;</script>
<![endif]-->
And now I check in my js file the boolean like this:
if (bad... | javascript | internet-explorer | null | null | null | null | open | Detecting if IE7 or lower with conditional comments and javascript not working.
===
I'm trying to check if a person is using anything IE with version less than 8 or anything else.
I use conditional comments to declare boolean..
<!--[if lt IE 8]>
<script type="text/javascript">var badIE = true;</script>
... | 0 |
9,060,855 | 01/30/2012 07:53:54 | 964,707 | 09/26/2011 09:00:52 | 28 | 0 | Error when refreshing xml | Am Working with sudoku game application, got source code from googlecode and i explain my problem below
My game.class has
public class Game extends Activity {
public static final String KEY_DIFFICULTY = "org.example.sudoku.difficulty";
public static final int DIFFICULTY_EASY = 0;
public ... | android | xml | view | null | null | 01/30/2012 15:25:27 | too localized | Error when refreshing xml
===
Am Working with sudoku game application, got source code from googlecode and i explain my problem below
My game.class has
public class Game extends Activity {
public static final String KEY_DIFFICULTY = "org.example.sudoku.difficulty";
public static final int DI... | 3 |
10,932,852 | 06/07/2012 13:30:35 | 412,099 | 08/05/2010 15:12:01 | 187 | 10 | Extjs Form Field: Parse Hours using format like '3d 4h'? | I would like to have a textfield, representing the amount of time of something, parse a text value like `'3d 4h'` into hours. The example I provide would be 3 days, 4 hours -- 76 hours.
Before I go off and roll my own text-to-number parser engine, has anyone done something like this before, or does Extj4 provide a ... | extjs | extjs4 | formfield | null | null | null | open | Extjs Form Field: Parse Hours using format like '3d 4h'?
===
I would like to have a textfield, representing the amount of time of something, parse a text value like `'3d 4h'` into hours. The example I provide would be 3 days, 4 hours -- 76 hours.
Before I go off and roll my own text-to-number parser engine, has an... | 0 |
7,699,957 | 10/08/2011 21:42:13 | 583,651 | 01/20/2011 21:42:42 | 16 | 9 | Get specfic HTML Tag Value In Array | <ul>
<li>
<a href="/movie/rise+of+the+planet+of+the+apes/31501" title="Watch Rise of the Planet of the Apes online" class="ttl">Rise of the Planet of the Apes</a> <span class="price">27.5M</span>
<div> <a href="#"><img src="images/ico-add-fav.gif" alt="Add to Favorites" width="16"... | html | arrays | php5 | null | null | null | open | Get specfic HTML Tag Value In Array
===
<ul>
<li>
<a href="/movie/rise+of+the+planet+of+the+apes/31501" title="Watch Rise of the Planet of the Apes online" class="ttl">Rise of the Planet of the Apes</a> <span class="price">27.5M</span>
<div> <a href="#"><img src="images/ico-add-f... | 0 |
4,353,705 | 12/04/2010 13:25:35 | 524,637 | 11/30/2010 03:30:37 | 23 | 0 | Calculate This Please! | Please calculate this for me since I am don't have access to a calculator that can hold the number of digits (I'm on a Mac and the calculator gets an overflow on the exponential):
(112^283) mod 437
Thank you!
| math | modulo | exponent | null | null | 12/04/2010 13:30:04 | off topic | Calculate This Please!
===
Please calculate this for me since I am don't have access to a calculator that can hold the number of digits (I'm on a Mac and the calculator gets an overflow on the exponential):
(112^283) mod 437
Thank you!
| 2 |
7,275,059 | 09/01/2011 18:55:33 | 591,534 | 01/27/2011 00:33:22 | 27 | 0 | Navigate to section of page with 'j' and 'k' keys | I'm trying to find the simplest code, whether it's standalone or with jQuery, that does this: when I press <kbd>j</kbd> on my keyboard, I'm redirected to the next div below and when I press <kbd>k</kbd>, I'm sent back to the div above. Extra points if it can scroll smoothly. | javascript | jquery | keyboard | navigation | null | null | open | Navigate to section of page with 'j' and 'k' keys
===
I'm trying to find the simplest code, whether it's standalone or with jQuery, that does this: when I press <kbd>j</kbd> on my keyboard, I'm redirected to the next div below and when I press <kbd>k</kbd>, I'm sent back to the div above. Extra points if it can scroll... | 0 |
10,640,795 | 05/17/2012 17:46:40 | 1,133,306 | 01/05/2012 23:50:22 | 357 | 9 | PHP array sort by 2nd key | I have an array that needs sorted by 'yes' and 'no' keys - how might this be done in PHP? Specifically I would like all yes's to be first index (there will only ever be 1 yes and many no's)
Array (
[0] => Array
(
[no] => Array
(
[0] => 379
... | php | sorting | null | null | null | null | open | PHP array sort by 2nd key
===
I have an array that needs sorted by 'yes' and 'no' keys - how might this be done in PHP? Specifically I would like all yes's to be first index (there will only ever be 1 yes and many no's)
Array (
[0] => Array
(
[no] => Array
(
... | 0 |
11,145,878 | 06/21/2012 20:03:46 | 1,403,892 | 05/18/2012 16:52:21 | 3 | 0 | Flash CS6 ActionScript 3 Error #2025 | I'm working on a webpage for a class and am trying to work the navigation using ActionScript 3. My understanding of how it should work is that when you click the links at the top, it removes whatever is currently displayed, using removeChild, and adds the new page's content using addChild.
It works fine when going ... | actionscript-3 | flash | removechild | addchild | null | null | open | Flash CS6 ActionScript 3 Error #2025
===
I'm working on a webpage for a class and am trying to work the navigation using ActionScript 3. My understanding of how it should work is that when you click the links at the top, it removes whatever is currently displayed, using removeChild, and adds the new page's content usi... | 0 |
9,768,784 | 03/19/2012 10:47:35 | 579,628 | 01/18/2011 08:44:32 | 1,493 | 152 | didn't work in ios4 UIToolBar | I have used UIToolBar in navigation controller. i have set the background image of UIToolbar using below code
if ([[[UIDevice currentDevice] systemVersion] floatValue] > 4.9) {
NSLog(@"IOS 5555555");
//iOS 5
if ([tools respondsToSelector:@selector(setBackgrou... | objective-c | xcode | ios5 | ios4 | null | null | open | didn't work in ios4 UIToolBar
===
I have used UIToolBar in navigation controller. i have set the background image of UIToolbar using below code
if ([[[UIDevice currentDevice] systemVersion] floatValue] > 4.9) {
NSLog(@"IOS 5555555");
//iOS 5
if ([tools respo... | 0 |
5,757,115 | 04/22/2011 15:42:41 | 87,796 | 04/06/2009 20:06:45 | 1,965 | 114 | Need good source control | I am working on my C programming skills. I decided to run Ubunutu Linux and use code::blocks as my IDE. Now, I need a good source control.
Something that's easy for a beginner to administer (I want to concentrate on coding not managing a server)<br />
Free<br />
Hopefully has a plugin that integrates well with c... | version-control | ubuntu | null | null | null | 04/22/2011 16:03:57 | not constructive | Need good source control
===
I am working on my C programming skills. I decided to run Ubunutu Linux and use code::blocks as my IDE. Now, I need a good source control.
Something that's easy for a beginner to administer (I want to concentrate on coding not managing a server)<br />
Free<br />
Hopefully has a plug... | 4 |
11,693,843 | 07/27/2012 18:44:44 | 1,558,478 | 07/27/2012 18:28:38 | 1 | 0 | I am getting breaking point error in this c++ program of mine,have a look. compiler visual c++ 2010 | error snapshot : http://www.google.com/url?q=https%3A%2F%2Frapidshare.com%2Ffiles%2F3201989698%2FCapture5.JPG&sa=D&sntz=1&usg=AFQjCNFzvedIUKljexIaQskqB5rgCEXQaA
code :
#include<fstream>
#include<conio.h>
//#include<string>
#include<Windows.h>
#include<iostream>
... | c++ | null | null | null | null | 07/28/2012 10:57:12 | too localized | I am getting breaking point error in this c++ program of mine,have a look. compiler visual c++ 2010
===
error snapshot : http://www.google.com/url?q=https%3A%2F%2Frapidshare.com%2Ffiles%2F3201989698%2FCapture5.JPG&sa=D&sntz=1&usg=AFQjCNFzvedIUKljexIaQskqB5rgCEXQaA
code :
#include<... | 3 |
5,169,164 | 03/02/2011 14:48:55 | 612,957 | 02/11/2011 11:31:27 | 1 | 0 | Structured Templates in perl | I've been working on an nmap parser in perl, I've been going well with it, however I would like to write to a write to a file in a very structured manner. The file in question would be a nagios hosts.cfg (I'd use the nmap2nagios.pl on their wiki but it doesn't seem to be working and i'm having too much fun writing my o... | perl | templates | nagios | null | null | null | open | Structured Templates in perl
===
I've been working on an nmap parser in perl, I've been going well with it, however I would like to write to a write to a file in a very structured manner. The file in question would be a nagios hosts.cfg (I'd use the nmap2nagios.pl on their wiki but it doesn't seem to be working and i'... | 0 |
11,138,723 | 06/21/2012 12:59:52 | 471,149 | 08/01/2010 10:11:33 | 1,423 | 38 | force jvm to return native memory | I am running from time to time in eclipse tasks that require very big amount of memory. So jvm while task is running swallows about 2-3gb of RAM, that is ok. But once jvm took that memory it does not release it and I have a situation when used memory in the heap is about 200mb with total heap size about 3gb and that is... | java | eclipse | jvm | jvm-arguments | null | null | open | force jvm to return native memory
===
I am running from time to time in eclipse tasks that require very big amount of memory. So jvm while task is running swallows about 2-3gb of RAM, that is ok. But once jvm took that memory it does not release it and I have a situation when used memory in the heap is about 200mb wit... | 0 |
9,687,023 | 03/13/2012 15:27:43 | 1,055,487 | 11/19/2011 16:16:22 | 59 | 1 | There is already an open DataReader associated with this Command which must be closed first | I'm getting the following error message
There is already an open DataReader associated with this Command which must be closed first.
Dim staffid = TextBox1.Text
Dim conn As New SqlConnection
conn.ConnectionString = SqlDataSource1.ConnectionString
Dim command1 As New SqlComm... | asp.net | vb.net | null | null | null | null | open | There is already an open DataReader associated with this Command which must be closed first
===
I'm getting the following error message
There is already an open DataReader associated with this Command which must be closed first.
Dim staffid = TextBox1.Text
Dim conn As New SqlConnection
... | 0 |
2,622,644 | 04/12/2010 14:08:05 | 21,765 | 09/24/2008 17:11:11 | 222 | 9 | Excel VSTO set selection | How do I set the selection in the active worksheet to a specific Range, using C# and VSTO 2008? | excel | vsto | c# | selection | null | null | open | Excel VSTO set selection
===
How do I set the selection in the active worksheet to a specific Range, using C# and VSTO 2008? | 0 |
9,076,921 | 01/31/2012 09:05:54 | 1,179,894 | 01/31/2012 08:52:10 | 1 | 0 | How to programmatically add UIView in a scrollview in ios? | I used the below codes
CGRect scrollserviceViewFrame1 = CGRectMake(60,610, 650, 150);
//CGRect scrollViewFrame =[[UIScreen mainScreen] applicationFrame];
//UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:scrollViewFrame];
UIScrollView *servicescrollView1 = [[UIScrollView alloc] initWithFrame:sc... | ipad | null | null | null | null | null | open | How to programmatically add UIView in a scrollview in ios?
===
I used the below codes
CGRect scrollserviceViewFrame1 = CGRectMake(60,610, 650, 150);
//CGRect scrollViewFrame =[[UIScreen mainScreen] applicationFrame];
//UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:scrollViewFrame];
UIScrollV... | 0 |
6,531,585 | 06/30/2011 07:50:13 | 822,481 | 06/30/2011 06:42:51 | 1 | 0 | JQueryMobile internal page id duplicated | JQueryMobile internal page id duplicated.
How to resolve?
HELP ME!! | page | jquery-mobile | duplicates | internal | null | 07/01/2011 23:29:38 | not a real question | JQueryMobile internal page id duplicated
===
JQueryMobile internal page id duplicated.
How to resolve?
HELP ME!! | 1 |
6,476,132 | 06/25/2011 05:48:30 | 448,413 | 06/09/2010 10:04:01 | 331 | 2 | How do i swap first and last digit in a number | I have been asked in an interview how can i swap last and first digit in a number.Tried a lot there but could not find the solutaion ,anyone can tell me how could i achieve this. | c | bit-manipulation | null | null | null | 06/25/2011 06:54:45 | not a real question | How do i swap first and last digit in a number
===
I have been asked in an interview how can i swap last and first digit in a number.Tried a lot there but could not find the solutaion ,anyone can tell me how could i achieve this. | 1 |
11,595,851 | 07/21/2012 21:08:17 | 1,406,852 | 05/20/2012 23:43:21 | 32 | 0 | jquery cropping image selction not returning results | I have made this code working but I want to have an alert , so i can see all the cordinate of x1 y1 and x2 and y2, can any one help me, the example is from this site http://odyniec.net/projects/imgareaselect/examples-callback.html#submitting-selection-coordinates-demo i have applied the code but I i dont get the cordin... | javascript | jquery | null | null | null | 07/22/2012 03:22:24 | not a real question | jquery cropping image selction not returning results
===
I have made this code working but I want to have an alert , so i can see all the cordinate of x1 y1 and x2 and y2, can any one help me, the example is from this site http://odyniec.net/projects/imgareaselect/examples-callback.html#submitting-selection-coordinate... | 1 |
3,000,153 | 06/08/2010 18:27:59 | 327,918 | 04/28/2010 13:47:26 | 141 | 9 | LINQ To SQL Wildcards | How can I build in wildcards to my LINQ To SQL lambda expression?
This is what I have currently:
var query = from log in context.Logs select log;
foreach (string filter in CustomReport.ExtColsToFilter)
{
string tempFilter = filter;
query = query.Where(Log => Log.FormattedMessage.Co... | c# | linq-to-sql | lambda | wildcard | null | null | open | LINQ To SQL Wildcards
===
How can I build in wildcards to my LINQ To SQL lambda expression?
This is what I have currently:
var query = from log in context.Logs select log;
foreach (string filter in CustomReport.ExtColsToFilter)
{
string tempFilter = filter;
query = query.Where(Log... | 0 |
4,787,659 | 01/24/2011 21:56:49 | 588,182 | 01/24/2011 21:48:44 | 1 | 0 | Passing a Email Address To a 3rd Party Website | We have an internal website which has lots of links to 3rd party websites. One of the major requests is to have the logged in users email passed to the 3rd Party Site once the link is click and populate the email field i.e. on a login page. We are using IE6 which does not save passwords or saves cookies.
Is there ... | url | variables | parameters | passing | null | null | open | Passing a Email Address To a 3rd Party Website
===
We have an internal website which has lots of links to 3rd party websites. One of the major requests is to have the logged in users email passed to the 3rd Party Site once the link is click and populate the email field i.e. on a login page. We are using IE6 which do... | 0 |
10,886,138 | 06/04/2012 18:18:29 | 88,111 | 04/07/2009 13:45:44 | 2,199 | 126 | Upgrade to Hibernate4 and @ElementCollection results in inability to lookup existing data | We have a model class `User` that had a `List<String>` of permissions, like so:
@LazyCollection(LazyCollectionOption.FALSE)
@CollectionOfElements
@Column()
private List<String> permissions = Collections.emptyList();
It produced a SQL table with an entry like the following:
![User permissions... | java | sql | hibernate | h2 | null | null | open | Upgrade to Hibernate4 and @ElementCollection results in inability to lookup existing data
===
We have a model class `User` that had a `List<String>` of permissions, like so:
@LazyCollection(LazyCollectionOption.FALSE)
@CollectionOfElements
@Column()
private List<String> permissions = Collections.... | 0 |
424,752 | 01/08/2009 15:48:51 | 52,302 | 01/06/2009 00:16:30 | 16 | 0 | Any good graphing packages for Android? | With android removing the Swing and AWT libraries from Java, I was wondering what solutions have been developed to display simple bar histograms, line graphs and other simple data visualizations in Android?
There is a Google specific 2D library, was just wondering if there were any packages built atop it that allows... | java | android | null | null | null | 04/01/2012 07:55:36 | not constructive | Any good graphing packages for Android?
===
With android removing the Swing and AWT libraries from Java, I was wondering what solutions have been developed to display simple bar histograms, line graphs and other simple data visualizations in Android?
There is a Google specific 2D library, was just wondering if ther... | 4 |
9,545,248 | 03/03/2012 10:12:23 | 427,232 | 03/22/2010 20:51:14 | 192 | 10 | Start Activity from preferences.xml and get the result in onActivityResult | It's a complement to [this question][1].
I can launch the Activity but I also need to be able to get the result. How do I do it?
I tried overriding onActivityResult on my PreferencesActivity to no avail.
Am I missing some extra properties in the preferences.xml?
[1]: http://stackoverflow.com/questions/7... | android | android-preferences | android-activity | null | null | null | open | Start Activity from preferences.xml and get the result in onActivityResult
===
It's a complement to [this question][1].
I can launch the Activity but I also need to be able to get the result. How do I do it?
I tried overriding onActivityResult on my PreferencesActivity to no avail.
Am I missing some extra pro... | 0 |
4,341,315 | 12/03/2010 00:07:06 | 274,010 | 02/16/2010 02:13:07 | 496 | 40 | Sharepoint 2010 does not allow anonymous users to see pictures from an image library. | So I have a public facing Sharepoint 2010 site. I have enabled anonymous users on the farm as well as on the site.
The site itself displays perfect if you log in, but as an anonymous user it will not display any of the pictures from an image library. (All the text come through fine).
If I attempt to access the i... | sharepoint | sharepoint2010 | null | null | null | null | open | Sharepoint 2010 does not allow anonymous users to see pictures from an image library.
===
So I have a public facing Sharepoint 2010 site. I have enabled anonymous users on the farm as well as on the site.
The site itself displays perfect if you log in, but as an anonymous user it will not display any of the pictur... | 0 |
11,651,056 | 07/25/2012 13:39:01 | 1,174,488 | 01/27/2012 22:11:57 | 23 | 2 | mysql & php ReturnTop 100 Scores | How can i write a MYSQL(in php file) FOR loop or WHILE loop to iterate through a tables id? Or should I use PHP to make a series of calls back and forth?
| php | mysql | for-loop | while-loops | null | 07/25/2012 13:44:17 | not a real question | mysql & php ReturnTop 100 Scores
===
How can i write a MYSQL(in php file) FOR loop or WHILE loop to iterate through a tables id? Or should I use PHP to make a series of calls back and forth?
| 1 |
4,817,950 | 01/27/2011 14:59:27 | 140,367 | 07/17/2009 18:53:45 | 2,427 | 122 | What is the smallest, simplest CPU that gcc can compile for? | In terms of instruction set and simplicity of emulation. I would like to implement a virtual CPU and figured why not emulate an existing one, so to be able to compile C code to it. | gcc | cpu | emulation | null | null | null | open | What is the smallest, simplest CPU that gcc can compile for?
===
In terms of instruction set and simplicity of emulation. I would like to implement a virtual CPU and figured why not emulate an existing one, so to be able to compile C code to it. | 0 |
11,726,490 | 07/30/2012 17:28:01 | 1,563,629 | 07/30/2012 17:01:24 | 1 | 0 | i create a swiff file which is linked to flash media server but it does not work on broser why? | i create swiff file by using adobe flash professional CS5.5 for video conferencing but i can't stream video in any broser. i also uses adobe flash media live encoder 3.2 and flash media server.what is the reason?
| flash | swt | flash-builder | swf | flash-cs5 | 07/31/2012 02:27:54 | not a real question | i create a swiff file which is linked to flash media server but it does not work on broser why?
===
i create swiff file by using adobe flash professional CS5.5 for video conferencing but i can't stream video in any broser. i also uses adobe flash media live encoder 3.2 and flash media server.what is the reason?
| 1 |
10,228,194 | 04/19/2012 12:34:49 | 1,334,359 | 04/15/2012 10:04:00 | 1 | 0 | How I can make this css style and jquery working with Clinic div like Doctor div? | How I can make this css style and jquery working with Clinic div like Doctor div?
When I do the Clinic div like the Doctor div
The Clinic div stopped but the Doctor div work normally
so How I can make this css style and jquery working with Clinic div like Doctor div?
The html code:
<div id="wrap" c... | jquery | html | css | null | null | null | open | How I can make this css style and jquery working with Clinic div like Doctor div?
===
How I can make this css style and jquery working with Clinic div like Doctor div?
When I do the Clinic div like the Doctor div
The Clinic div stopped but the Doctor div work normally
so How I can make this css style and jquery wor... | 0 |
6,936,870 | 08/04/2011 06:05:55 | 767,681 | 05/24/2011 12:11:52 | 41 | 5 | Does an iphone app compiled with base SDK 4.0 work on ios5? | Does an iphone app compiled with base SDK 4.0 work on ios5?
I am developing an iphone app using xcode 4.0 and base SDK 4.3. Now while testing the app on a device iOS5(beta), there are several crashes.
Do we need to do anything specific for making it run on iOS5? | iphone | ios5 | arc | null | null | 08/04/2011 08:25:00 | too localized | Does an iphone app compiled with base SDK 4.0 work on ios5?
===
Does an iphone app compiled with base SDK 4.0 work on ios5?
I am developing an iphone app using xcode 4.0 and base SDK 4.3. Now while testing the app on a device iOS5(beta), there are several crashes.
Do we need to do anything specific for making i... | 3 |
5,290,950 | 03/13/2011 17:08:42 | 556,072 | 12/28/2010 14:26:49 | 102 | 4 | How to add method to Cairo.Context? | I've created the following function for drawing boxes in Cairo with rounded rectangles
void square (Context cr, int x, int y, int sizex, int sizey, int radius)
{
cr.move_to (x + radius, y);
cr.arc (x + sizex - radius, y + radius, radius, 1.5 * PI, 0);
cr.arc (x + sizex - radius, y... | cairo | vala | null | null | null | null | open | How to add method to Cairo.Context?
===
I've created the following function for drawing boxes in Cairo with rounded rectangles
void square (Context cr, int x, int y, int sizex, int sizey, int radius)
{
cr.move_to (x + radius, y);
cr.arc (x + sizex - radius, y + radius, radius, 1.5 * PI, 0... | 0 |
7,104,758 | 08/18/2011 08:54:41 | 812,139 | 06/23/2011 11:58:05 | 1,096 | 42 | Basic JSF EL: is it possible to SET a property value in EL? | I need to do something like this:
<a4j:support even="onclick" action="#{myBean.myProperty = null}"/>
I would like to know if this is possible and which would be the proper syntax if so. | jsf | java-ee | seam | null | null | null | open | Basic JSF EL: is it possible to SET a property value in EL?
===
I need to do something like this:
<a4j:support even="onclick" action="#{myBean.myProperty = null}"/>
I would like to know if this is possible and which would be the proper syntax if so. | 0 |
1,597,396 | 10/20/2009 21:22:43 | 106,095 | 05/13/2009 08:38:34 | 691 | 46 | jQuery ajax call to url containing accent character sends bad Uri from IE to server | I was having trouble sending up a url containing accent characters using IE.
Here's a simple function:
function runjQueryTest(){
var url = "/test/Beyoncé/";
$.get( url, function(){});
}
On the server (PHP) I record the value of the request uri `($_SERVER["REQUEST_URI"])` and I see a d... | jquery | internet-explorer | internationalization | php | null | null | open | jQuery ajax call to url containing accent character sends bad Uri from IE to server
===
I was having trouble sending up a url containing accent characters using IE.
Here's a simple function:
function runjQueryTest(){
var url = "/test/Beyoncé/";
$.get( url, function(){});
}
On the ser... | 0 |
4,863,968 | 02/01/2011 14:48:08 | 148,381 | 07/31/2009 09:15:19 | 1,944 | 104 | Should I use an abstract method or an instance variable for data that should be specified by sub-class? | I am writing an abstract class and I have a variable that should be defined by the sub-class (in this case it is an int which is used in the super-class). I can't decide whether to define a `protected` variable with a default value and let the sub-class change the value either in the constructor or through a `setter` ... | java | variables | abstract-class | null | null | null | open | Should I use an abstract method or an instance variable for data that should be specified by sub-class?
===
I am writing an abstract class and I have a variable that should be defined by the sub-class (in this case it is an int which is used in the super-class). I can't decide whether to define a `protected` variable... | 0 |
1,390,319 | 09/07/2009 17:30:36 | 161,562 | 08/23/2009 12:47:24 | 11 | 0 | javascript adding textbox | i have 5 default textboxes. when user clicks on a button one textbox will be added. how can i do this? | javascript | textbox | null | null | null | null | open | javascript adding textbox
===
i have 5 default textboxes. when user clicks on a button one textbox will be added. how can i do this? | 0 |
11,564,926 | 07/19/2012 16:10:32 | 7,345 | 09/15/2008 13:35:27 | 5,555 | 287 | Re-registering singleton bean on Spring | I have a multi-module project where each module has its own unit tests and provides mocks for classes for that module.
I am trying to build an application context where each module could define its own mocks, but later unit tests would be able to override these mocks, for example:
public class Test {
... | java | spring | unit-testing | mocking | null | null | open | Re-registering singleton bean on Spring
===
I have a multi-module project where each module has its own unit tests and provides mocks for classes for that module.
I am trying to build an application context where each module could define its own mocks, but later unit tests would be able to override these mocks, for... | 0 |
8,536,529 | 12/16/2011 15:43:42 | 914,308 | 08/26/2011 14:38:22 | 667 | 9 | R resetting a cumsum to zero at the start of each year | I have a `dataframe` with a bunch of donations data. I take the data and arrange it in time order from oldest to most recent gifts. Next I add a column containing a cumulative sum of the gifts over time. The data has multiple years of data and I was looking for a good way to reset the `cumsum` to 0 at the start of e... | r | null | null | null | null | null | open | R resetting a cumsum to zero at the start of each year
===
I have a `dataframe` with a bunch of donations data. I take the data and arrange it in time order from oldest to most recent gifts. Next I add a column containing a cumulative sum of the gifts over time. The data has multiple years of data and I was looking... | 0 |
7,423,813 | 09/14/2011 22:35:08 | 852,927 | 09/23/2010 17:00:38 | 11 | 3 | How to sync an iOS over the air (OTA) build back to iTunes? | I have an Ad Hoc build that I distributed to my iPad via OTA distribution using TestFlight. When I sync my iPad with iTunes, the OTA distributed app is not copied to the iTunes Library like the rest of the apps on my device that I downloaded from the App Store. The app icon is visible in the device screens section of t... | iphone | ios | ipad | itunes | adhoc | 09/15/2011 07:16:32 | off topic | How to sync an iOS over the air (OTA) build back to iTunes?
===
I have an Ad Hoc build that I distributed to my iPad via OTA distribution using TestFlight. When I sync my iPad with iTunes, the OTA distributed app is not copied to the iTunes Library like the rest of the apps on my device that I downloaded from the App ... | 2 |
11,200,706 | 06/26/2012 04:15:36 | 961,563 | 09/23/2011 16:13:18 | 1 | 1 | Generate Customer Bill using ReportViewer | I want to create a Customer Bill using ReportViewer.
I have Following Tables ;
tblProd : pid,pname,stock
tblCust : cid,cname
tblTrans : srno,cid,pid,TotItem
now bill should contain following info.
--------------------------------------------------------------------------------------------------------... | reportviewer | null | null | null | null | null | open | Generate Customer Bill using ReportViewer
===
I want to create a Customer Bill using ReportViewer.
I have Following Tables ;
tblProd : pid,pname,stock
tblCust : cid,cname
tblTrans : srno,cid,pid,TotItem
now bill should contain following info.
---------------------------------------------------------... | 0 |
6,248,213 | 06/06/2011 05:50:05 | 105,167 | 05/12/2009 05:55:29 | 959 | 0 | How to upload three different files from the same page using Django ? | I want to upload multiple files form the same html page in Django , and the models should dynamically change according to the file uploaded . How do I do that ? | django | null | null | null | null | null | open | How to upload three different files from the same page using Django ?
===
I want to upload multiple files form the same html page in Django , and the models should dynamically change according to the file uploaded . How do I do that ? | 0 |
9,497,995 | 02/29/2012 11:11:24 | 1,240,051 | 02/29/2012 10:57:30 | 1 | 0 | Is there an AJAX framework that does this? | I'm about to embark upon developing a "fully AJAX" web application where I do not generate any HTML pages on the server but only respond to AJAX calls, that too only in JSON. The app is pretty much a CRUD interface for a database. I want a framework where if I define my model (database table structures and relations) m... | javascript | ajax | orm | frameworks | null | 03/01/2012 04:35:08 | not constructive | Is there an AJAX framework that does this?
===
I'm about to embark upon developing a "fully AJAX" web application where I do not generate any HTML pages on the server but only respond to AJAX calls, that too only in JSON. The app is pretty much a CRUD interface for a database. I want a framework where if I define my m... | 4 |
8,191,420 | 11/19/2011 02:29:02 | 647,405 | 03/06/2011 23:20:09 | 447 | 0 | Java Swing Layout | I'm requesting help obtaining the following lay out for the code below:
- JButtons on top along side eachother.
- The JTextArea should be *under* the buttons.
- The JTextArea should also have a *scrollbar*.
JPanel jp = new JPanel();
One = new JButton("One");
Two ... | java | swing | null | null | null | null | open | Java Swing Layout
===
I'm requesting help obtaining the following lay out for the code below:
- JButtons on top along side eachother.
- The JTextArea should be *under* the buttons.
- The JTextArea should also have a *scrollbar*.
JPanel jp = new JPanel();
One = new JButt... | 0 |
9,834,124 | 03/23/2012 04:19:56 | 956,281 | 09/21/2011 06:30:27 | 5 | 0 | Finding 3 errors but I only found 2 | So I was given this program and I'm supposed to find 3 lines of code which are wrong or flawed and correct them.Here is the code:
#include <stdio.h>
#define C_TO_F 0
#define F_TO_C 1
void convert (double *temperature, int mode)
{
if(mode==C_TO_F)
{
*temperature = 9.0/5.0*(*temp... | c | line | null | null | null | 03/23/2012 04:44:02 | not a real question | Finding 3 errors but I only found 2
===
So I was given this program and I'm supposed to find 3 lines of code which are wrong or flawed and correct them.Here is the code:
#include <stdio.h>
#define C_TO_F 0
#define F_TO_C 1
void convert (double *temperature, int mode)
{
if(mode==C_TO_F)
... | 1 |
10,249,469 | 04/20/2012 15:53:59 | 561,766 | 01/03/2011 21:01:47 | 982 | 31 | what is the most efficient way of moving multiple objects in space? should I use glTranslatef or a shader? | I'm trying to get the hang of moving objects most efficiently in opengl and therefore I'm writing an application where multiple sine waves are traveling with a constant speed from right to left. To illustrate what I mean, see this image:
![traveling sine wave][1]
Because I want to work with many objects, I deci... | opengl | null | null | null | null | null | open | what is the most efficient way of moving multiple objects in space? should I use glTranslatef or a shader?
===
I'm trying to get the hang of moving objects most efficiently in opengl and therefore I'm writing an application where multiple sine waves are traveling with a constant speed from right to left. To illustrate... | 0 |
9,498,214 | 02/29/2012 11:25:03 | 1,195,999 | 02/08/2012 00:05:32 | 5 | 0 | PHP code for filling a select box not working | Hey I came up with a small bit of php code, after looking at a few articles, to fill a select box. The code seems relatively inline with a few of the options I saw yet doesnt actually work in Dreamweaver or in firefox. Heres the code:
<select>
<?php
for ($day=1; $day <= 31; $day++;) {
... | php | html | null | null | null | 02/29/2012 16:47:06 | too localized | PHP code for filling a select box not working
===
Hey I came up with a small bit of php code, after looking at a few articles, to fill a select box. The code seems relatively inline with a few of the options I saw yet doesnt actually work in Dreamweaver or in firefox. Heres the code:
<select>
<?php
... | 3 |
7,288,760 | 09/02/2011 20:11:55 | 818,444 | 06/28/2011 03:26:22 | 97 | 1 | Overloading Indexer Not Working | I have a custom collection and I want to overload the indexer. My problem is that I get a compile time error even though the signatures are different.
public HeaderLine this[LineNumber lineNum]
{
get
{
return (HeaderLine)InnerList[(int)lineN... | c# | collections | index | this | null | 09/04/2011 03:28:07 | too localized | Overloading Indexer Not Working
===
I have a custom collection and I want to overload the indexer. My problem is that I get a compile time error even though the signatures are different.
public HeaderLine this[LineNumber lineNum]
{
get
{
re... | 3 |
7,919,532 | 10/27/2011 16:56:41 | 1,005,704 | 10/20/2011 17:07:53 | 20 | 0 | Creating a Hashtable from scratch? | I am writing a program that will hash words from a document along with their frequency of use and line numbers. I thought that I had finished it when I was told that you have to create a hash table from scratch. I do not know where to begin. Any suggestions as to where and how to start would be appreciated. | java | hashtable | null | null | null | 10/28/2011 02:06:36 | too localized | Creating a Hashtable from scratch?
===
I am writing a program that will hash words from a document along with their frequency of use and line numbers. I thought that I had finished it when I was told that you have to create a hash table from scratch. I do not know where to begin. Any suggestions as to where and how to... | 3 |
10,459,198 | 05/05/2012 05:37:35 | 1,369,220 | 05/02/2012 05:34:01 | 1 | 0 | Run MatrixMultiply program on the hadoop | Hi I am in learning process of mapreduce and haddoop. I want to run the example of matrix multiplitaction presented here along with its code:
http://www.norstad.org/matrix-multiply/index.html
I wrote the following command in Terminal, but the error was encountered.
mehdi@ubuntu:~/Desktop$ ~/hadoop-1.0.0/bin/ha... | hadoop | mapreduce | null | null | null | 05/16/2012 12:34:00 | not a real question | Run MatrixMultiply program on the hadoop
===
Hi I am in learning process of mapreduce and haddoop. I want to run the example of matrix multiplitaction presented here along with its code:
http://www.norstad.org/matrix-multiply/index.html
I wrote the following command in Terminal, but the error was encountered.
... | 1 |
3,418,296 | 08/05/2010 19:12:49 | 300,248 | 03/23/2010 19:19:14 | 144 | 2 | Should one inherit GUI JFrames? | I've a JFrame A and I'd like to provide a very similar one, but with extra buttons, and different functionality. I was wondering if I should inherit A and then overwrite the handler methods, and add components, or whether a different approach is recommended. | java | gui | swing | null | null | null | open | Should one inherit GUI JFrames?
===
I've a JFrame A and I'd like to provide a very similar one, but with extra buttons, and different functionality. I was wondering if I should inherit A and then overwrite the handler methods, and add components, or whether a different approach is recommended. | 0 |
4,354,988 | 12/04/2010 18:05:37 | 527,807 | 12/02/2010 10:21:36 | 36 | 3 | Finding subset of disjunctive intervals with maximal weights | I am looking for an algorithm I could use to solve this, not the code. I wondered about using linear programming with relaxation, but maybe there are more efficient ways for solving this?
**The problem**
I have set of intervals with weights. Intervals can overlap. I need to find maximal sum of weights of disjunct... | algorithm | homework | null | null | null | null | open | Finding subset of disjunctive intervals with maximal weights
===
I am looking for an algorithm I could use to solve this, not the code. I wondered about using linear programming with relaxation, but maybe there are more efficient ways for solving this?
**The problem**
I have set of intervals with weights. Inter... | 0 |
10,101,214 | 04/11/2012 06:49:32 | 531,466 | 12/05/2010 21:12:31 | 464 | 12 | How to make ssh connection between servers using public-key authentication | I am setting up a continuos integration(CI) server and a test web server. I would like that CI server would access web server with public key authentication. In the web server I have created an user and generated the keys
sudo useradd -d /var/www/user -m user
sudo passwd user
sudo su user
ssh-keyg... | linux | authentication | key | public-key-encryption | publickey | 05/01/2012 04:14:15 | off topic | How to make ssh connection between servers using public-key authentication
===
I am setting up a continuos integration(CI) server and a test web server. I would like that CI server would access web server with public key authentication. In the web server I have created an user and generated the keys
sudo userad... | 2 |
6,919,318 | 08/02/2011 22:11:11 | 875,560 | 08/02/2011 22:11:11 | 1 | 0 | Adding a widget with a button - wxPython | I'm trying to create something like the categories panel in Wordpress, with wxPython.
What I'm trying to figure out, is how to add a widget when the user clicks a button (like "Add New Category")
Here is my code:
import wx
class MainWindow(wx.Frame):
def __init__(self, parent, id, title... | python | gui | wxpython | null | null | null | open | Adding a widget with a button - wxPython
===
I'm trying to create something like the categories panel in Wordpress, with wxPython.
What I'm trying to figure out, is how to add a widget when the user clicks a button (like "Add New Category")
Here is my code:
import wx
class MainWindow(wx.Frame):... | 0 |
4,505,791 | 12/22/2010 02:58:17 | 550,706 | 12/22/2010 01:45:22 | 1 | 0 | How did Javascript become popular? | In ancient history, Brendan Eich had a language design, and in today's world, Javascript is a popular language implemented and used in many different places.
What caused the language to become popular? Was it the C-like syntax familiar to previous programmers? Did Netscape have enough control of the market to force ... | javascript | language-history | null | null | null | 12/22/2010 03:00:54 | off topic | How did Javascript become popular?
===
In ancient history, Brendan Eich had a language design, and in today's world, Javascript is a popular language implemented and used in many different places.
What caused the language to become popular? Was it the C-like syntax familiar to previous programmers? Did Netscape hav... | 2 |
7,280,098 | 09/02/2011 06:52:26 | 913,836 | 08/26/2011 10:03:50 | 3 | 0 | Traffic estimation of a website | How can we find traffic estimation of a website ?? for example 200,000 to 1,000,000 visitors/month.I am using asp.net,c#.
Thank You | c# | asp.net | null | null | null | 09/02/2011 08:17:09 | not a real question | Traffic estimation of a website
===
How can we find traffic estimation of a website ?? for example 200,000 to 1,000,000 visitors/month.I am using asp.net,c#.
Thank You | 1 |
6,719,207 | 07/16/2011 18:02:03 | 709,426 | 04/15/2011 08:12:43 | 35 | 3 | LocationManager returns old cached "Wifi" location with current timestamp | I am trying to get the current location. For that I implement a LocationListener and register it for both the network and the GPS provider:
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);
locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0... | android | location | wifi | old | null | null | open | LocationManager returns old cached "Wifi" location with current timestamp
===
I am trying to get the current location. For that I implement a LocationListener and register it for both the network and the GPS provider:
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);
... | 0 |
6,045,321 | 05/18/2011 13:17:17 | 685,750 | 03/31/2011 12:49:53 | 156 | 15 | "Proper" use of multiple inheritance in C++ | One day I read in the book (probably Head First Java, not sure). It says that "there's only **one** good usage of multiple inheritance used in a C++ library."
(There was a name of the library, but I forgot it) What library properly used multiple inheritance, and how multiple inheritance used? | c++ | class | null | null | null | 05/18/2011 13:35:54 | not constructive | "Proper" use of multiple inheritance in C++
===
One day I read in the book (probably Head First Java, not sure). It says that "there's only **one** good usage of multiple inheritance used in a C++ library."
(There was a name of the library, but I forgot it) What library properly used multiple inheritance, and how m... | 4 |
7,382,578 | 09/12/2011 01:39:08 | 913,018 | 08/25/2011 21:44:04 | 8 | 0 | Looking for a CakePHP plugin for Salesforce REST API | Has anybody seen something prebuilt for accessing the Salesforce.com REST API with CakePHP? If a prebuilt solution does not exist, does anyone know how to make CakePHP talk to the Salesforce.com REST API **in a way that follows CakePHP convention and best practices**?
I found this very complete code sample which exp... | php | api | cakephp | rest | salesforce | null | open | Looking for a CakePHP plugin for Salesforce REST API
===
Has anybody seen something prebuilt for accessing the Salesforce.com REST API with CakePHP? If a prebuilt solution does not exist, does anyone know how to make CakePHP talk to the Salesforce.com REST API **in a way that follows CakePHP convention and best practi... | 0 |
9,022,931 | 01/26/2012 18:01:17 | 166,838 | 09/01/2009 20:05:40 | 4,406 | 153 | Django: "show databases" functionality? | I have a weird legacy database use-case: I have multiple databases, with (1) exactly the same schema, but (2) very different datasets. Databases, *entire* databases, with this schema, are being added to the total dataset every week.
Is there a way to (1) introspect *the server* to find out what databases are avail... | django | mysql-python | null | null | null | null | open | Django: "show databases" functionality?
===
I have a weird legacy database use-case: I have multiple databases, with (1) exactly the same schema, but (2) very different datasets. Databases, *entire* databases, with this schema, are being added to the total dataset every week.
Is there a way to (1) introspect *the... | 0 |
1,721,108 | 11/12/2009 09:48:30 | 128,873 | 06/25/2009 14:36:16 | 1 | 0 | .net compact framework button override OnPaint | I am wrting for the .NET Compact Framework.
If a create a MyButton : Control, my OnPaint override gets called correctly.
However, if I have MyButton : Button - it does not...
Strange, Button is a Control.
Any help would be appreciated. | c# | .net | null | null | null | null | open | .net compact framework button override OnPaint
===
I am wrting for the .NET Compact Framework.
If a create a MyButton : Control, my OnPaint override gets called correctly.
However, if I have MyButton : Button - it does not...
Strange, Button is a Control.
Any help would be appreciated. | 0 |
2,718,808 | 04/27/2010 04:49:00 | 245,168 | 01/07/2010 00:20:30 | 23 | 0 | what's the correct way to release a new website? | so i've been working on a website on and off for about a year now, and i'm finally at a point where it's functional enough to test out in a sort of private beta (not ready for live release). but i never thought about the correct process for doing this and what things i need to take care of. i've never released a publ... | releasing | new-operator | website | null | null | 04/27/2010 14:54:12 | off topic | what's the correct way to release a new website?
===
so i've been working on a website on and off for about a year now, and i'm finally at a point where it's functional enough to test out in a sort of private beta (not ready for live release). but i never thought about the correct process for doing this and what thin... | 2 |
11,501,476 | 07/16/2012 09:24:05 | 1,528,378 | 07/16/2012 09:08:49 | 1 | 0 | Design of DevExpress Form can not load | When I try to open xtraform design I get some kind of that error:
"Could not load file or assembly 'nanodems.NDIS.MessageParser, Version=1.0.9.436, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
But I am using the specified version of dll! I could not... | winforms | devexpress | null | null | null | null | open | Design of DevExpress Form can not load
===
When I try to open xtraform design I get some kind of that error:
"Could not load file or assembly 'nanodems.NDIS.MessageParser, Version=1.0.9.436, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified."
But I am usi... | 0 |
6,293,356 | 06/09/2011 13:15:06 | 1,497,488 | 04/15/2010 04:12:37 | 151 | 12 | How to install andoird app on sd card? | How to install app on sd card instead of phone memory in android???
my app size is 50mb +, and i m not able to install apk.suggestion need to install apk in sdk programmtaically or something like that.
Also, someone told me that, i cant uplaod android app, which is having size of more than 25 mb, is it true?
any... | android | null | null | null | null | 10/20/2011 21:42:57 | off topic | How to install andoird app on sd card?
===
How to install app on sd card instead of phone memory in android???
my app size is 50mb +, and i m not able to install apk.suggestion need to install apk in sdk programmtaically or something like that.
Also, someone told me that, i cant uplaod android app, which is having... | 2 |
9,234,421 | 02/10/2012 20:33:02 | 1,197,929 | 02/08/2012 18:20:33 | 1 | 0 | Http Header Parsing | I am required to parse an offline Pcap file and generate statistics for every Web page that is monitored on the Network. I am new to java coding and jNetpcap lib was very useful in doing most of my task.
I am able to get certain fields from http header like content_length,response code etc.However I couldn't figure ou... | java | http-headers | jnetpcap | null | null | null | open | Http Header Parsing
===
I am required to parse an offline Pcap file and generate statistics for every Web page that is monitored on the Network. I am new to java coding and jNetpcap lib was very useful in doing most of my task.
I am able to get certain fields from http header like content_length,response code etc.How... | 0 |
8,989,078 | 01/24/2012 15:06:42 | 1,167,296 | 01/24/2012 15:04:50 | 1 | 0 | Display entire MySQL query output | How can I get PHP to display the entire output of a MySQL query? | php | mysql | database | query | null | 01/24/2012 15:12:21 | not a real question | Display entire MySQL query output
===
How can I get PHP to display the entire output of a MySQL query? | 1 |
6,741,500 | 07/19/2011 01:58:47 | 813,521 | 06/24/2011 05:47:13 | 8 | 0 | handle Hibernate incorrect connection on Swing app | I got a Swing app that start asking the user for the connection parameters, as every user can make mistakes I want to know the best way to handle when they make a wrong connection attempt i.e wrong url
what I got is a button that sends dbType, user, pass and url to a Map and then I obtain an EntityManagerFactory tha... | hibernate | swing | null | null | null | null | open | handle Hibernate incorrect connection on Swing app
===
I got a Swing app that start asking the user for the connection parameters, as every user can make mistakes I want to know the best way to handle when they make a wrong connection attempt i.e wrong url
what I got is a button that sends dbType, user, pass and ur... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.