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
7,578,399
09/28/2011 04:42:21
967,223
09/27/2011 14:08:35
1
0
How to avoid overusing design patterns?
I know that design patterns are time tested solution to a particular type of software problems.<br> But how would I know that I am overusing a design pattern?<br> How much is too much ?<br> What things should I keep in mind while using design patterns to avoid overusing?
design-patterns
null
null
null
null
09/28/2011 12:21:03
not constructive
How to avoid overusing design patterns? === I know that design patterns are time tested solution to a particular type of software problems.<br> But how would I know that I am overusing a design pattern?<br> How much is too much ?<br> What things should I keep in mind while using design patterns to avoid overusing?
4
4,078,713
11/02/2010 14:35:51
478,144
10/16/2010 20:24:18
58
1
running total using jQuery not adding numbers together
I'm trying to create a running total, unsuccessfully, what way would you do this: var total = 0; value = $('.price').text(); total += value; $('#subtotal span').html(total); All it does it add the next value to the "span" not actually add the figures together!
jquery
math
total
null
null
null
open
running total using jQuery not adding numbers together === I'm trying to create a running total, unsuccessfully, what way would you do this: var total = 0; value = $('.price').text(); total += value; $('#subtotal span').html(total); All it does it add the next value to the "span" not actually ...
0
11,033,313
06/14/2012 12:44:53
1,456,003
06/14/2012 10:49:11
1
0
PRECEDENCE VS SHORT CIRCUITING IN C
plz help!!! int i=-3, j=2, k=0, m; m = ++i || ++j && ++k; printf("%d, %d, %d, %d\n", i, j, k, m); since ++ has more precedence than ||,&& IN C so they r evaluated first and st become m=-2||3&&1 now u apply whatever short circuiting u hav 2 apply but thats not the ans why???????? ..what is the probl...
c
short
circuit
null
null
06/14/2012 13:25:54
not a real question
PRECEDENCE VS SHORT CIRCUITING IN C === plz help!!! int i=-3, j=2, k=0, m; m = ++i || ++j && ++k; printf("%d, %d, %d, %d\n", i, j, k, m); since ++ has more precedence than ||,&& IN C so they r evaluated first and st become m=-2||3&&1 now u apply whatever short circuiting u hav 2 apply but thats no...
1
7,024,502
08/11/2011 10:45:17
445,003
09/11/2010 08:45:02
248
2
Html5 vs Html4 question about size in KB comparison
Simple question: i would like to know if by using HTML5 is really lighter in KB comparing against the same layout built on HTML4. Thanks in advance. Greetings Jose.
html
html5
null
null
null
08/12/2011 12:54:20
not constructive
Html5 vs Html4 question about size in KB comparison === Simple question: i would like to know if by using HTML5 is really lighter in KB comparing against the same layout built on HTML4. Thanks in advance. Greetings Jose.
4
8,651,167
12/28/2011 02:11:10
1,118,045
12/27/2011 17:35:38
1
0
Keeping a remote process alive? (Windows API)
Consider this code to implement CreateRemoteThread() in notepad.exe: public delegate int ThreadProc(IntPtr param); static int MyThreadProc(IntPtr param) { return 1; } // Helper to wait for a thread to exit and print its exit code static void W...
c#
winapi
visual-c++
processes
null
12/28/2011 02:49:04
not a real question
Keeping a remote process alive? (Windows API) === Consider this code to implement CreateRemoteThread() in notepad.exe: public delegate int ThreadProc(IntPtr param); static int MyThreadProc(IntPtr param) { return 1; } // Helper to wait for a thread to ...
1
6,430,286
06/21/2011 18:37:34
603,003
02/04/2011 10:49:04
38
0
How can I access a model from my controller?
How can I access a model from my controller? class NewsController extends AppController { /* ... */ function add() { /* Access model 'post' */ } }
php
mvc
cakephp
model
controller
06/21/2011 20:16:58
not a real question
How can I access a model from my controller? === How can I access a model from my controller? class NewsController extends AppController { /* ... */ function add() { /* Access model 'post' */ } }
1
7,858,886
10/22/2011 10:29:50
1,060,450
10/22/2011 10:24:09
1
0
Which Web-Based Language is better to implement CRM in short time
i m student of final year and my project is to implement a web-based CRM system . i have only 8 to 9 months. so i have issue in selecting the best language to implement CRM in given time duration...
crm
null
null
null
null
10/22/2011 17:22:34
not a real question
Which Web-Based Language is better to implement CRM in short time === i m student of final year and my project is to implement a web-based CRM system . i have only 8 to 9 months. so i have issue in selecting the best language to implement CRM in given time duration...
1
11,062,597
06/16/2012 10:20:55
1,114,320
12/24/2011 06:12:20
613
57
PHP can handle 40+ hashing algorithms. So why is md5 the de facto standard?
According to the PHP docs (http://www.php.net/manual/en/function.hash-algos.php) PHP can handle more than 40 hashing algorithms. So my simple question is: **What's the cause for md5 being the de facto standard, at least in tutorials, middle-size companies and typical php scripts ?**
php
hash
md5
null
null
06/16/2012 11:52:53
not constructive
PHP can handle 40+ hashing algorithms. So why is md5 the de facto standard? === According to the PHP docs (http://www.php.net/manual/en/function.hash-algos.php) PHP can handle more than 40 hashing algorithms. So my simple question is: **What's the cause for md5 being the de facto standard, at least in tutorials, mi...
4
9,605,722
03/07/2012 16:47:58
936,790
09/09/2011 12:55:21
16
0
fullcalendar json feed start times?
is it possible to display start & end times on full calendar latest version? I am using json to feed the data as such, this works fine: // Initializes a container array for all of the calendar events $jsonArray = array(); while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { $id = $row['...
json
fullcalendar
null
null
null
null
open
fullcalendar json feed start times? === is it possible to display start & end times on full calendar latest version? I am using json to feed the data as such, this works fine: // Initializes a container array for all of the calendar events $jsonArray = array(); while($row = mysql_fetch_array($result...
0
7,204,676
08/26/2011 12:33:40
624,726
02/19/2011 21:05:03
84
2
Do I need to include a manifest classpath in my JavaEE 6 EARs and WARs?
Starting with JavaEE 6 I believe it's okay to package EJBs in the `WEB-INF/lib` folder of WARs (EJB Lite). Say I have 4 modules (plus other shared libs): - services-ear-all - services-ejb-lite - services-war-rest - services-war-hessian Both of the WARs depend on the services-ejb-lite module. If I bundle ...
maven
classpath
manifest
java-ee-6
packaging
null
open
Do I need to include a manifest classpath in my JavaEE 6 EARs and WARs? === Starting with JavaEE 6 I believe it's okay to package EJBs in the `WEB-INF/lib` folder of WARs (EJB Lite). Say I have 4 modules (plus other shared libs): - services-ear-all - services-ejb-lite - services-war-rest - services-war-hess...
0
5,098,521
02/23/2011 23:15:31
237,808
12/23/2009 18:11:46
3,588
229
Any decent reference materials for SharePoint 2010 for Internet Sites?
I am looking into using SharePoint 2010 for Internet Sites as my Web Content Management tool for an externally facing internet site. This site would be used as a marketing vehicle for our product offerings and also used to help recruit new employees (among other uses). Can anyone recommend some decent reference res...
sharepoint2010
wcm
recommended-reading
null
null
12/07/2011 20:17:56
off topic
Any decent reference materials for SharePoint 2010 for Internet Sites? === I am looking into using SharePoint 2010 for Internet Sites as my Web Content Management tool for an externally facing internet site. This site would be used as a marketing vehicle for our product offerings and also used to help recruit new emp...
2
6,667,170
07/12/2011 15:52:44
528,214
12/02/2010 15:53:37
43
10
ConfigurationManager not declared - Have dll
Quick background: I have a VB6 application in which I was previously using ConfigurationSettings.AppSettings to read from app.config, and got an error message to change it to System.Configuration.ConfigurationManager.AppSettings (as the first way is now obsolete) I did so, and I even have a reference to System.Con...
vb
configurationmanager
null
null
null
null
open
ConfigurationManager not declared - Have dll === Quick background: I have a VB6 application in which I was previously using ConfigurationSettings.AppSettings to read from app.config, and got an error message to change it to System.Configuration.ConfigurationManager.AppSettings (as the first way is now obsolete) I...
0
11,358,038
07/06/2012 07:50:29
1,486,293
06/27/2012 16:15:20
2
0
Can't make sense of this boost::bind error
I get segfault and I use gdb to track it, but at some point I get this and I can't make sense of it: boost::bind<void, const OpenImageIO::v1_1::ImageBuf&, int, std::vector<long long unsigned int>&, bool, OpenImageIO::v1_1::<unnamed>::HistogramArgs, int, long long unsigned int*, long long unsigned int*, OpenImageIO:...
c++
boost
null
null
null
07/19/2012 11:40:17
not a real question
Can't make sense of this boost::bind error === I get segfault and I use gdb to track it, but at some point I get this and I can't make sense of it: boost::bind<void, const OpenImageIO::v1_1::ImageBuf&, int, std::vector<long long unsigned int>&, bool, OpenImageIO::v1_1::<unnamed>::HistogramArgs, int, long long unsi...
1
7,015,595
08/10/2011 18:05:29
843,313
07/13/2011 18:38:57
40
0
Java/Android How to call an activity into a method?
How do i call on a seperate activity within a method: For example: private void startApp(){ Patient_Button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //I want this Button to go to an Detailed_ModeActivity //This is how i Am d...
java
android
button
activity
oncreate
null
open
Java/Android How to call an activity into a method? === How do i call on a seperate activity within a method: For example: private void startApp(){ Patient_Button.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //I want this Button to go ...
0
5,158,767
03/01/2011 18:33:17
32,790
10/30/2008 15:08:46
50
12
Excel VBA password protection appears broken
I have never seen anything like this before. I use this code to set a password <code> Impact_Chart.Unprotect Password:="********" With Impact_Chart .Range("A19:N19").Locked = False .Shapes("Button 36").Locked = False .Shapes("Button 19").Locked = False .Shapes("Button 37").Locked = Fals...
excel-vba
null
null
null
null
null
open
Excel VBA password protection appears broken === I have never seen anything like this before. I use this code to set a password <code> Impact_Chart.Unprotect Password:="********" With Impact_Chart .Range("A19:N19").Locked = False .Shapes("Button 36").Locked = False .Shapes("Button 19").Lock...
0
11,594,284
07/21/2012 17:20:15
278,842
02/22/2010 16:36:10
2,100
98
Finding length of period in time domain data
I have a series of measurements of a signal source, which emits a periodic signal at an unknown interval time of `p` seconds. Detecting the signal is not easy so I am missing quite a few signals in the data. Data is also noisy so there are errors in the data of up to +/- 10% per signal. Example measurements `x` migh...
optimization
language-agnostic
signal-processing
frequency-analysis
null
07/22/2012 15:15:02
off topic
Finding length of period in time domain data === I have a series of measurements of a signal source, which emits a periodic signal at an unknown interval time of `p` seconds. Detecting the signal is not easy so I am missing quite a few signals in the data. Data is also noisy so there are errors in the data of up to +/...
2
6,732,391
07/18/2011 11:45:13
389,517
07/12/2010 13:17:57
21
0
Resizing animated gif with dotimage
I have a piece of code which resizes animated gifs. if it helps the code will always resize images to a smaller size. (there's no need to make them bigger for now) I am using Atalasoft's dotimage library and their example code to do the actual resampling. The code is supposed to read an animated gif from disk, it...
c#
graphics
null
null
null
null
open
Resizing animated gif with dotimage === I have a piece of code which resizes animated gifs. if it helps the code will always resize images to a smaller size. (there's no need to make them bigger for now) I am using Atalasoft's dotimage library and their example code to do the actual resampling. The code is suppo...
0
9,755,589
03/18/2012 02:44:30
1,243,848
03/01/2012 22:09:19
1
0
How do I extract data between 2nd pair of inverted quotes using Perl?
For eg, my input is "Cat", "Dog", "Rat". I want to use Regex in Perl to get Dog as output?
perl
null
null
null
null
03/18/2012 08:42:55
not a real question
How do I extract data between 2nd pair of inverted quotes using Perl? === For eg, my input is "Cat", "Dog", "Rat". I want to use Regex in Perl to get Dog as output?
1
8,186,707
11/18/2011 17:49:56
1,051,434
11/17/2011 09:33:44
6
0
Ui testing of Silverlight Control datePicker
I am trying to automate UI tests to my Silverlight App with Visual Studio 2010. I have one dataPicker on my app. Whem I'm playing the recording actions, the date is not selected. It returns the error: "Test method CriarRequisicao3.comparar5.CodedUITestMethod1 threw exception: Microsoft.VisualStudio.TestToo...
c#
silverlight
visual-studio-2010
coded-ui-tests
datapicker
null
open
Ui testing of Silverlight Control datePicker === I am trying to automate UI tests to my Silverlight App with Visual Studio 2010. I have one dataPicker on my app. Whem I'm playing the recording actions, the date is not selected. It returns the error: "Test method CriarRequisicao3.comparar5.CodedUITestMethod1 t...
0
8,117,592
11/14/2011 05:11:48
460,942
09/28/2010 18:12:22
158
36
What are pros and cons of using extjs?
In one of my project someone has recommended me to use extjs. I know very little about extjs. I have done my all the project using jQuery. I know many of you know about extjs very well. please tell me the pros and cons of using extjs?
javascript
extjs
null
null
null
11/15/2011 00:17:03
not constructive
What are pros and cons of using extjs? === In one of my project someone has recommended me to use extjs. I know very little about extjs. I have done my all the project using jQuery. I know many of you know about extjs very well. please tell me the pros and cons of using extjs?
4
4,935,736
02/08/2011 16:42:24
352,860
05/28/2010 12:06:50
304
2
How to find a same string has Single-quote (') and double-quote (")
How to find a same string has Single-quote (') and double-quote (") var str = "test'\"";
javascript
null
null
null
null
02/08/2011 19:50:06
not a real question
How to find a same string has Single-quote (') and double-quote (") === How to find a same string has Single-quote (') and double-quote (") var str = "test'\"";
1
9,959,501
03/31/2012 20:37:32
395,631
07/19/2010 08:40:13
291
3
Call java methods with array parameters from Velocity
I am writing a velocity template file (.vm) in which I get this class with reflection: #set ($assetEntryQuery = $portal.getClass().forName("com.liferay.portlet.asset.service.persistence.AssetEntryQuery").getConstructor().newInstance()) then I create an array and call this function: #set ($arr = ['$cate...
java
arrays
methods
liferay
velocity
null
open
Call java methods with array parameters from Velocity === I am writing a velocity template file (.vm) in which I get this class with reflection: #set ($assetEntryQuery = $portal.getClass().forName("com.liferay.portlet.asset.service.persistence.AssetEntryQuery").getConstructor().newInstance()) then I create a...
0
5,234,191
03/08/2011 15:02:46
649,986
03/08/2011 14:50:52
1
0
Java code for hierarchical microclustering
can anyone provide me the java working code for the following algorithm..?? Input: Transaction dataset D, A set of n closed frequent patterns, P = {p1,p2, ......pn} Threshold of distance, gamma Output: A set of patterns, O= {o1,o2,.....,on} 1: initialize n clusters Ci, each as a closed frequent pattern; 2: ...
java
null
null
null
null
03/08/2011 15:39:34
off topic
Java code for hierarchical microclustering === can anyone provide me the java working code for the following algorithm..?? Input: Transaction dataset D, A set of n closed frequent patterns, P = {p1,p2, ......pn} Threshold of distance, gamma Output: A set of patterns, O= {o1,o2,.....,on} 1: initialize n clus...
2
3,259,261
07/15/2010 19:34:24
71,609
02/26/2009 22:06:36
143
4
Human-readable, current time sensitive date and time formatting in PHP
Is there a painless way to convert unix timestamps, MySQL timestamps, MySQL datetimes (or any other standard date and time format) into strings in the following form: - Today, 6:00pm - Tomorrow, 12:30pm - Wednesday, 4:00pm - Next friday, 11:00am I'm not sure what to call these - I guess conversational-styl...
php
jquery
usability
date-formatting
null
null
open
Human-readable, current time sensitive date and time formatting in PHP === Is there a painless way to convert unix timestamps, MySQL timestamps, MySQL datetimes (or any other standard date and time format) into strings in the following form: - Today, 6:00pm - Tomorrow, 12:30pm - Wednesday, 4:00pm - Next frid...
0
11,442,715
07/11/2012 22:52:05
577,421
01/16/2011 10:46:17
197
4
Call Visual Studio Macro from Eclipse?
I have a python script which uses c++ funnction that I wrote in c++. The python script is written and launched from the Eclipse debugger (because I may want to set breakpoints with eclipse as well as in Visual Studio). Now, in visual studio I can easily attach the VS debugger by "Attach to process..." and choose my ...
eclipse
visual-studio
debugging
macros
attach-to-process
null
open
Call Visual Studio Macro from Eclipse? === I have a python script which uses c++ funnction that I wrote in c++. The python script is written and launched from the Eclipse debugger (because I may want to set breakpoints with eclipse as well as in Visual Studio). Now, in visual studio I can easily attach the VS debug...
0
6,518,862
06/29/2011 10:02:04
797,384
06/14/2011 09:36:02
3
0
Custom component for Label with Text box and image in GWT
I need to create a custom component which can have Label then Textfield and Image, by clicking the image i should select date, that selected date should be populated in TextField, Is there way i can develop a custom component. Thanks in Advance!!!
gwt
null
null
null
null
null
open
Custom component for Label with Text box and image in GWT === I need to create a custom component which can have Label then Textfield and Image, by clicking the image i should select date, that selected date should be populated in TextField, Is there way i can develop a custom component. Thanks in Advance!!!
0
10,930,823
06/07/2012 11:21:54
1,442,023
06/07/2012 11:06:28
1
0
deduplicating a sequence in clojure
I need to define a function which takes a sequence and some functions which act on elements inside the sequence. It returns a sequence from the old sequence where the elements with duplicate function values are removed. (defn dedup [seq & functions] ...) for example, if (f1 1) = 'a' (f1 2) = 'a' ...
clojure
null
null
null
null
null
open
deduplicating a sequence in clojure === I need to define a function which takes a sequence and some functions which act on elements inside the sequence. It returns a sequence from the old sequence where the elements with duplicate function values are removed. (defn dedup [seq & functions] ...) for example, i...
0
8,993,217
01/24/2012 19:58:12
1,044,137
11/13/2011 12:09:20
169
0
Bits in operating system
What is the basic concept in calling an Operating System a 32-bit OS or 64 bit ? what is 32 bit compiler and 64 bit compiler ? Are the both related ?
c
unix
compiler
operating-system
null
01/24/2012 20:22:19
not a real question
Bits in operating system === What is the basic concept in calling an Operating System a 32-bit OS or 64 bit ? what is 32 bit compiler and 64 bit compiler ? Are the both related ?
1
11,367,485
07/06/2012 18:07:45
934,898
09/08/2011 13:29:40
47
1
Rename columns of a data frame by searching column name
I am writing a wrapper to ggplot to produce multiple graphs based on various datasets. As I am passing the column names to the function, I need to rename the column names so that ggplot can understand the reference. However, I am struggling with renaming of the columns of a data frame here's a data frame: ...
r
null
null
null
null
null
open
Rename columns of a data frame by searching column name === I am writing a wrapper to ggplot to produce multiple graphs based on various datasets. As I am passing the column names to the function, I need to rename the column names so that ggplot can understand the reference. However, I am struggling with renaming ...
0
3,626,573
09/02/2010 11:18:37
306,740
04/01/2010 09:23:26
21
2
MultithreadingMultiprocessing with STOP and Continue Signals
I am working on a project, where i need to get native stack of the Java Application. i am able to achieve this partially. thanks to ptrace/multiprocessing and signals. on Linux normal java application has minimum 14 number of threads. out of these 14 i am interested in only main thread of which i have to get native ...
java
c
multithreading
signals
ptrace
null
open
MultithreadingMultiprocessing with STOP and Continue Signals === I am working on a project, where i need to get native stack of the Java Application. i am able to achieve this partially. thanks to ptrace/multiprocessing and signals. on Linux normal java application has minimum 14 number of threads. out of these 1...
0
5,320,923
03/16/2011 04:06:15
341,405
05/14/2010 16:06:09
46
2
mysql query grouping
i am making a shopping cart. selected items are stored inside a database based on a search query. rows: sku,type,color,quantity how i can add the quantity for rows incase sku, type and color are the same values example: 1,type1,blue,5 1,type1,blue,2 2,type1,blue,5 1,type1,green,5 my ne...
mysql
query
group
null
null
null
open
mysql query grouping === i am making a shopping cart. selected items are stored inside a database based on a search query. rows: sku,type,color,quantity how i can add the quantity for rows incase sku, type and color are the same values example: 1,type1,blue,5 1,type1,blue,2 2,type1,blue,5 ...
0
7,436,808
09/15/2011 20:02:50
230,884
12/14/2009 00:02:19
587
8
Does each file get its own copy of the static variable?
Suppose you have a static global variable in your header file, and you use this variable in your main.cpp. // header.h static int variableOne = 100; //main.cpp . . cout << variableOne << endl; Will main.cpp get its own copy of **variableOne** (although the value is stil...
c++
null
null
null
null
null
open
Does each file get its own copy of the static variable? === Suppose you have a static global variable in your header file, and you use this variable in your main.cpp. // header.h static int variableOne = 100; //main.cpp . . cout << variableOne << endl; Will main.cpp ge...
0
6,271,861
06/07/2011 21:29:17
382,906
07/04/2010 01:40:57
1,425
60
Problem with C# conditional
Hi I have the following code: medianListTester.cfyPE = 0; if (medianListTester.cfyPE != 0 || testStock.getCEPS() != 0) { medianCYPE_price = medianListTester.cfyPE * testStock.getCEPS(); counter++; } else //do something else but it doesn't seem ...
c#
conditional
null
null
null
06/08/2011 00:47:16
not a real question
Problem with C# conditional === Hi I have the following code: medianListTester.cfyPE = 0; if (medianListTester.cfyPE != 0 || testStock.getCEPS() != 0) { medianCYPE_price = medianListTester.cfyPE * testStock.getCEPS(); counter++; } else //do somet...
1
6,817,405
07/25/2011 14:08:39
861,725
07/25/2011 14:08:39
1
0
How to retrieve audio file from Oracle database using JAVA
What is the easiest way to extract .mp3 file from oracle Database using JAVA
java
null
null
null
null
07/25/2011 14:20:35
not a real question
How to retrieve audio file from Oracle database using JAVA === What is the easiest way to extract .mp3 file from oracle Database using JAVA
1
10,860,311
06/02/2012 06:25:28
1,432,052
06/02/2012 06:19:37
1
0
How to move Object from one place to other using Animation in iphone applications
Am new to Apple ios development.I want to know what type of frameworks and libraries are used for developing the gaming applications.Mainly i want to know how to move object from one place to another in iphone application horizontally.Object has to move horizontally when i tap that object?How to perform this object mov...
iphone
object
core-animation
movement
null
06/06/2012 12:16:26
not constructive
How to move Object from one place to other using Animation in iphone applications === Am new to Apple ios development.I want to know what type of frameworks and libraries are used for developing the gaming applications.Mainly i want to know how to move object from one place to another in iphone application horizontall...
4
10,289,457
04/23/2012 23:01:54
1,327,904
04/12/2012 01:01:54
26
1
TD Style + Class
I want my td tag to have a class as well as a style. How can I do that? Currently I have a td with a style, but I want to add a class to it as well. Thanks!
html
null
null
null
null
04/25/2012 20:38:39
not a real question
TD Style + Class === I want my td tag to have a class as well as a style. How can I do that? Currently I have a td with a style, but I want to add a class to it as well. Thanks!
1
9,270,874
02/14/2012 02:23:57
1,118,019
12/27/2011 17:12:55
5
0
Android: How to pass additional object reference to a custom view
Currently I have a custom view: public class MyView extends View { public MyView(Context c, AttributeSet attrs) { super(context, attrs); } .... .... } Now, i want to access an object that is not Android related, say a database connection, ho...
android
object
view
custom-controls
ondraw
null
open
Android: How to pass additional object reference to a custom view === Currently I have a custom view: public class MyView extends View { public MyView(Context c, AttributeSet attrs) { super(context, attrs); } .... .... } Now, i want to acce...
0
3,889,307
10/08/2010 09:31:34
452,432
09/20/2010 07:35:29
124
2
Css mulitple class selector
I am trying to select a element with multiple classes. .parent1 .subparent2 .class1, .parent1 .subparent2 .class2, .parent1 .subparent2 .class3 { } As .parent1 .subparent2 .class1.class2.class3 to select a element with all three classes but it doesn't work. Any idea how to do this?
css
null
null
null
null
null
open
Css mulitple class selector === I am trying to select a element with multiple classes. .parent1 .subparent2 .class1, .parent1 .subparent2 .class2, .parent1 .subparent2 .class3 { } As .parent1 .subparent2 .class1.class2.class3 to select a element with all three classes but it doesn't work. ...
0
6,608,292
07/07/2011 09:11:17
833,207
07/07/2011 09:11:17
1
0
how to send database info to email in php ?
I am new to php. I want to write an application in php where data from database is fetched and it is mailed to multiple recipients i,e how to fetch data from database and send it through email
php
database
email
null
null
07/07/2011 13:32:30
not a real question
how to send database info to email in php ? === I am new to php. I want to write an application in php where data from database is fetched and it is mailed to multiple recipients i,e how to fetch data from database and send it through email
1
9,073,915
01/31/2012 03:16:16
978,064
10/04/2011 08:33:24
8
0
ebook like inside android program
dudes we are currently developing an android program. our problem is we are making a program that can view ebook or how to include an ebook inside an android program. we need some tutorials for our development. we are just newbies. homescreen>button>Ebook For school student handbook..
java
android
android-layout
android-emulator
android-ndk
01/31/2012 04:42:07
not a real question
ebook like inside android program === dudes we are currently developing an android program. our problem is we are making a program that can view ebook or how to include an ebook inside an android program. we need some tutorials for our development. we are just newbies. homescreen>button>Ebook For school student ha...
1
7,543,436
09/25/2011 03:20:42
51,816
01/05/2009 21:39:06
10,099
20
Would WebClient.DownloadString work as if a user is browsing the website?
Basically I am downloading string/source of an online forum with threads/topics per page. But as a user, when I use a browser and browse through the site by clicking `n` number of links, it sometimes tells me that the server is too busy with an empty page with no topics. Would I encounter the same thing if I try to ...
c#
.net
webclient
null
null
09/25/2011 09:53:19
off topic
Would WebClient.DownloadString work as if a user is browsing the website? === Basically I am downloading string/source of an online forum with threads/topics per page. But as a user, when I use a browser and browse through the site by clicking `n` number of links, it sometimes tells me that the server is too busy with...
2
4,805,683
01/26/2011 14:32:15
475,353
10/14/2010 05:20:48
521
16
Python Wget?/Scripting books?
I've been learning python here recently....mainly for scripting purposes....since apparently it's supposed to be almost as good as bash for doing small script jobs. But two questions, Does python have it's own sort of "wget" or do you have to use a library for that (or does it have one built in?) for stuff such as r...
python
perl
scripting
null
null
09/28/2011 11:29:12
not constructive
Python Wget?/Scripting books? === I've been learning python here recently....mainly for scripting purposes....since apparently it's supposed to be almost as good as bash for doing small script jobs. But two questions, Does python have it's own sort of "wget" or do you have to use a library for that (or does it have...
4
6,569,793
07/04/2011 09:47:49
827,877
07/04/2011 09:47:49
1
0
Python3 CryptUnprotectData() TypeError expected an object with a buffer interface
I was browsing over the net for some information about CryptUnprotectData and WZC. I found this small script that is used for decrypting stored Wireless passwords on Vista. I tried with Python3 (it was written probably for Python 2.X) but it gives me: TypeError expected an object with a buffer interface. I'm not quite ...
winapi
python-3.x
wireless
null
null
null
open
Python3 CryptUnprotectData() TypeError expected an object with a buffer interface === I was browsing over the net for some information about CryptUnprotectData and WZC. I found this small script that is used for decrypting stored Wireless passwords on Vista. I tried with Python3 (it was written probably for Python 2.X...
0
7,984,050
11/02/2011 16:43:39
1,026,060
11/02/2011 16:25:06
1
0
START_STICKY cannot be resolved to a variable why?
public int onStartCommand(Intent intent, int flags, int startId){ if(!player.isPlaying()){ player.start(); } return START_STICKY; } ERROR is: START_STICKY cannot be resolved to a variable
variables
null
null
null
null
null
open
START_STICKY cannot be resolved to a variable why? === public int onStartCommand(Intent intent, int flags, int startId){ if(!player.isPlaying()){ player.start(); } return START_STICKY; } ERROR is: START_STICKY cannot be resolved to a variable
0
9,024,880
01/26/2012 20:29:52
1,172,151
01/26/2012 20:20:12
1
0
Project Euler #368 (Math Formula)
In Project Euler, a problem asks me to write a program to find the convergence value of 20 terms from the Harmonic sequence (1/111, 1/222, 1/333, 1/444, 1/555, 1/666, 1/777, 1/888, 1/999, 1/1000, 1/1110, 1/1111, 1/1112, 1/1113, 1/1114, 1/1115, 1/1116, 1/1117, 1/1118, and 1/1119). I want to write the program myself (...
ruby
math
project-euler
calculus
null
01/29/2012 14:19:58
off topic
Project Euler #368 (Math Formula) === In Project Euler, a problem asks me to write a program to find the convergence value of 20 terms from the Harmonic sequence (1/111, 1/222, 1/333, 1/444, 1/555, 1/666, 1/777, 1/888, 1/999, 1/1000, 1/1110, 1/1111, 1/1112, 1/1113, 1/1114, 1/1115, 1/1116, 1/1117, 1/1118, and 1/1119). ...
2
9,537,661
03/02/2012 17:26:13
332,578
05/04/2010 16:17:57
1,654
98
ios uiview auto-expand dimensions
I have a `UIView` with the width/height of 0/0. As I add `subviews` to my `UIView`, is there a way to make the width and height update *automatically*? e.g. if I added `10` subviews side to side that each have a width of `50` then I would expect my `UIView` to have a width of `500`.
ios
uiview
subview
null
null
null
open
ios uiview auto-expand dimensions === I have a `UIView` with the width/height of 0/0. As I add `subviews` to my `UIView`, is there a way to make the width and height update *automatically*? e.g. if I added `10` subviews side to side that each have a width of `50` then I would expect my `UIView` to have a width of ...
0
9,488,949
02/28/2012 20:09:50
1,238,691
02/28/2012 19:33:20
1
0
Identify source for traffic drops in Linux / Ubuntu?
I have several servers offering some special kind of proxy service. The setup and hardware is the same on all machines. All are running fine except one. That one server has some heavy traffic drops every few seconds and I don't know how to identify the source for this behavior. I can see drops of ~4 packets / se...
linux
ubuntu
drop
traffic
null
02/29/2012 20:02:49
off topic
Identify source for traffic drops in Linux / Ubuntu? === I have several servers offering some special kind of proxy service. The setup and hardware is the same on all machines. All are running fine except one. That one server has some heavy traffic drops every few seconds and I don't know how to identify the sourc...
2
11,115,533
06/20/2012 08:24:27
262,460
01/30/2010 12:48:01
231
8
PHP file_put_contents and UTF-8
I have script that reads remote file content and writes it to local server. File contains characters: ąčęėįšųūž. After data insertion into local file, UTF-8 encoding is lost. My script code: <?php $data = file_get_contents('remote_file_address'); echo $data; //encoding is ok $f...
php
php5
null
null
null
06/20/2012 12:15:13
not constructive
PHP file_put_contents and UTF-8 === I have script that reads remote file content and writes it to local server. File contains characters: ąčęėįšųūž. After data insertion into local file, UTF-8 encoding is lost. My script code: <?php $data = file_get_contents('remote_file_address'); echo ...
4
8,280,044
11/26/2011 16:59:15
625,483
02/20/2011 18:15:39
15
0
"Enter" as a new line, not submission
I don't think that language matters, but if it does I'm writing in java. I need user to enter 3 line input and then read this input. But how to go to the next line. may be there are combinations of keys, since pressing "Enter" reads 1st line, not allowing to write 2nd and 3rd lines. Like in facebook, "Enter" enters the...
newline
enter
null
null
null
11/26/2011 17:11:05
not a real question
"Enter" as a new line, not submission === I don't think that language matters, but if it does I'm writing in java. I need user to enter 3 line input and then read this input. But how to go to the next line. may be there are combinations of keys, since pressing "Enter" reads 1st line, not allowing to write 2nd and 3rd ...
1
1,648,049
10/30/2009 04:48:03
119,570
06/09/2009 03:24:40
6
0
java mobile framework example code
i need to develop a java mobile framework , can i get some basic idea , how to develop the core . please send some links abt mobile framework design code.
frameworks
framework
null
null
null
null
open
java mobile framework example code === i need to develop a java mobile framework , can i get some basic idea , how to develop the core . please send some links abt mobile framework design code.
0
2,690,483
04/22/2010 11:53:21
138,214
07/14/2009 17:16:54
244
4
Google Maps to select cities, countries, states .. etc
Is there a way I can have a google maps control on a web page that will allow users to select destinations as a search criteria? For example we would like a user to be able to select a country, city, state by clicking on it in a map? Is that even doable?
asp.net
google-maps
null
null
null
null
open
Google Maps to select cities, countries, states .. etc === Is there a way I can have a google maps control on a web page that will allow users to select destinations as a search criteria? For example we would like a user to be able to select a country, city, state by clicking on it in a map? Is that even doable?
0
8,099,896
11/11/2011 20:59:19
1,040,919
11/11/2011 02:05:51
1
0
When are the situations when those brackets < > are used in Java?
I mean those brackets < > thanks a lot, world class experts on Stack Overflow!!
java
null
null
null
null
11/11/2011 22:17:35
not a real question
When are the situations when those brackets < > are used in Java? === I mean those brackets < > thanks a lot, world class experts on Stack Overflow!!
1
2,308,526
02/22/2010 02:50:23
268,336
02/08/2010 00:01:01
66
0
How can I get the maximum value of a richtextbox's vertical scrollbar?
I need to get the maximum value of a richtextbox's vertical scrollbar so that I can scroll to a percentage of the scrollbar's maximum value.
wpf
richtextbox
scrollbar
null
null
null
open
How can I get the maximum value of a richtextbox's vertical scrollbar? === I need to get the maximum value of a richtextbox's vertical scrollbar so that I can scroll to a percentage of the scrollbar's maximum value.
0
961,968
06/07/2009 14:23:54
3,834
08/31/2008 06:25:52
1,723
81
Free ASP.NET MVC Hosting Site-- Is there Any?
I am looking for a free ASP.NET MVC hosting site. I know, *I know*, I might be coming up with a ridiculous request: MS servers cost money, and they are damn expensive, so I shouldn't be expected to get ***free*** ASP.NET hosting. The most is I can get [best quality][1] or [most affordable][2] hosting site, but free?...
asp.net-mvc
hosting
null
null
null
02/16/2012 14:13:24
not constructive
Free ASP.NET MVC Hosting Site-- Is there Any? === I am looking for a free ASP.NET MVC hosting site. I know, *I know*, I might be coming up with a ridiculous request: MS servers cost money, and they are damn expensive, so I shouldn't be expected to get ***free*** ASP.NET hosting. The most is I can get [best quality]...
4
8,595,899
12/21/2011 20:25:07
1,070,064
11/28/2011 20:09:17
1,749
110
forty_two - what does it do?
I came accross this method when answering a question here on SO. The documentation says > Equal to self[41]. Also known as accessing "the reddit". Maybe a naive question, but : What does that mean?
ruby-on-rails
null
null
null
null
12/22/2011 07:01:55
too localized
forty_two - what does it do? === I came accross this method when answering a question here on SO. The documentation says > Equal to self[41]. Also known as accessing "the reddit". Maybe a naive question, but : What does that mean?
3
4,486,084
12/20/2010 00:53:17
548,033
12/19/2010 22:47:23
1
1
Call Outlet of another view controller
Hy Guys, I have a MapperViewController @interface MapperViewController : UIViewController <MKMapViewDelegate> { MKMapView *mapView; } @property (nonatomic, retain) IBOutlet MKMapView *mapView; @end In the .m file I can add annotations on a MapView after creating an obj...
iphone
sdk
view
controller
call
null
open
Call Outlet of another view controller === Hy Guys, I have a MapperViewController @interface MapperViewController : UIViewController <MKMapViewDelegate> { MKMapView *mapView; } @property (nonatomic, retain) IBOutlet MKMapView *mapView; @end In the .m file I can add an...
0
1,424,132
09/14/2009 21:59:29
114,196
05/29/2009 09:47:46
254
7
Can OLAP be done in BigTable?
In the past I used to build WebAnalytics using OLAP cubes running on MySQL. Now an OLAP cube the way I used it is simply a large table (ok, it was stored a bit smarter than that) where each row is basically a measurement or and aggregated set of measurements. Each measurement has a bunch of dimensions (i.e. which page...
hadoop
hive
hbase
mapreduce
olap
null
open
Can OLAP be done in BigTable? === In the past I used to build WebAnalytics using OLAP cubes running on MySQL. Now an OLAP cube the way I used it is simply a large table (ok, it was stored a bit smarter than that) where each row is basically a measurement or and aggregated set of measurements. Each measurement has a b...
0
3,521,931
08/19/2010 12:52:33
17,476
09/18/2008 09:50:13
137
14
Are there any methods of developing a large system instead of parameters?
One way to develop a large, versatile system is with the use of parameters. The user defines a large number of parameters and the system behaves accordingly. I guess the advantage is that the system can do lots of things, according to the values of the parameters. The disadvantage is that the system becomes more v...
untagged
null
null
null
null
07/12/2011 15:54:59
not a real question
Are there any methods of developing a large system instead of parameters? === One way to develop a large, versatile system is with the use of parameters. The user defines a large number of parameters and the system behaves accordingly. I guess the advantage is that the system can do lots of things, according to th...
1
9,598,882
03/07/2012 09:35:05
1,049,281
11/16/2011 09:04:20
1
0
On Facebook Page Tab ASP file suffix .asp doesn't work
FBML Error (line 2): illegal tag "body" under "fb:tab-position" how to solve???
facebook
asp-classic
null
null
null
03/08/2012 08:03:23
not a real question
On Facebook Page Tab ASP file suffix .asp doesn't work === FBML Error (line 2): illegal tag "body" under "fb:tab-position" how to solve???
1
9,934,160
03/29/2012 21:56:40
1,301,782
03/29/2012 20:03:57
1
0
make sentence-generator program become optional
this is a code of sentence-generator program, it ask user to make the prepositional phrase is optional(It can appear with a certain probability.) I dont know how to make the phrase become optional. ''' import random articles = ("A", "THE") nouns = ("BOY", "GIRL", "BAT", "BALL",) verbs = ("HIT", "SAW", "...
python
null
null
null
null
03/30/2012 14:26:23
not a real question
make sentence-generator program become optional === this is a code of sentence-generator program, it ask user to make the prepositional phrase is optional(It can appear with a certain probability.) I dont know how to make the phrase become optional. ''' import random articles = ("A", "THE") nouns = ("BOY"...
1
11,554,838
07/19/2012 06:06:52
631,612
02/24/2011 04:02:00
296
9
Load balancing MySQL slaves: Got an error reading communication packets?
I've set up [load balancing MySQL slaves using HAProxy via a xinetd](http://sysbible.org/2008/12/04/having-haproxy-check-mysql-status-through-a-xinetd-script/). 2 load balancers shared a virtual IP that is managed by keepalived. My problem is `/var/log/mysqld.log` keep flooding with: 120719 12:59:46 [Warning]...
mysql
load-balancing
haproxy
aborted
null
07/21/2012 23:26:55
off topic
Load balancing MySQL slaves: Got an error reading communication packets? === I've set up [load balancing MySQL slaves using HAProxy via a xinetd](http://sysbible.org/2008/12/04/having-haproxy-check-mysql-status-through-a-xinetd-script/). 2 load balancers shared a virtual IP that is managed by keepalived. My problem...
2
8,805,418
01/10/2012 15:06:25
1,111,754
12/22/2011 12:58:46
11
0
Trying to read file values into Array of Hashes
Realise this must be a failry simple but have been trying for nearly 2 hours to read in contects of file into a array of hash values File Contents <%perl> return ( { prefix => 'Summon', label => 'Customer Summon URL' }, { prefix => 'Ebsco', label => 'EBSCO ...
perl
hash
null
null
null
06/07/2012 13:37:37
not a real question
Trying to read file values into Array of Hashes === Realise this must be a failry simple but have been trying for nearly 2 hours to read in contects of file into a array of hash values File Contents <%perl> return ( { prefix => 'Summon', label => 'Customer Summon URL' }, { ...
1
218,699
10/20/2008 14:48:12
445,049
09/25/2008 07:46:56
23
7
Your choice of cross-browser javascript GUI
There are a number of great and not so-great Javascript GUI frameworks out there. I've looked at some (only superficially). And I can't make my mind about any of them - [Ext.js][1] The obvious choice by many since it's one of the most known frameworks. *Advantages:* Looks [awesome][6], large community, lots of ex...
javascript
frameworks
gui
cross-browser
null
02/07/2012 15:02:20
not constructive
Your choice of cross-browser javascript GUI === There are a number of great and not so-great Javascript GUI frameworks out there. I've looked at some (only superficially). And I can't make my mind about any of them - [Ext.js][1] The obvious choice by many since it's one of the most known frameworks. *Advantages:...
4
8,594,508
12/21/2011 18:23:52
768,314
05/24/2011 18:40:14
26
0
Core plot - disable scaling and scrolling in the y direction, not x
I'm working on a graph displaying dates on the x-axis, and percent on the y-axis (1-100). I have got the graph to show kind of the way I like, but I want to disable the ability to scroll and scale the graph in y-direction, so the values 1-100 always is displayed at the same scale. However, I cannot disable user interac...
iphone
ios
cocoa-touch
core-plot
null
null
open
Core plot - disable scaling and scrolling in the y direction, not x === I'm working on a graph displaying dates on the x-axis, and percent on the y-axis (1-100). I have got the graph to show kind of the way I like, but I want to disable the ability to scroll and scale the graph in y-direction, so the values 1-100 alwa...
0
5,600,918
04/08/2011 21:22:52
24,396
10/02/2008 05:30:04
3,393
113
Set Flex MX Button background color using CSS
Using CSS, how do I set the background color of a Flex MX Button? My button is declared as: <mx:Button label="My Button"/> And the CSS is: @namespace mx "library://ns.adobe.com/flex/mx"; mx|Button { color: #66ffff; backgroundColor: #333333; } `backgroundColor` doesn...
css
flash
flex
button
mx
null
open
Set Flex MX Button background color using CSS === Using CSS, how do I set the background color of a Flex MX Button? My button is declared as: <mx:Button label="My Button"/> And the CSS is: @namespace mx "library://ns.adobe.com/flex/mx"; mx|Button { color: #66ffff; backgrou...
0
2,512,341
03/25/2010 00:06:28
252,253
01/16/2010 16:53:08
113
4
trying to find the comment hook I need for wordpress?
I'm writing a wordpress plugin that will execute a certain function when a user submits a comment. The only issue is I'm using the hook "comment_post" which works but if that comment gets stopped by akismet I'm still logging that comment but now my numbers are off from what's on the actual site. Is there a comment_appr...
wordpress
wordpress-plugin
null
null
null
null
open
trying to find the comment hook I need for wordpress? === I'm writing a wordpress plugin that will execute a certain function when a user submits a comment. The only issue is I'm using the hook "comment_post" which works but if that comment gets stopped by akismet I'm still logging that comment but now my numbers are ...
0
1,068,725
07/01/2009 11:53:08
68,348
02/19/2009 12:12:17
116
1
AppendData c#
I'm new to programming. I've been learning C# since April. Now my boss gave me a code to learn and study but it seems to be very difficult because some of the Data types are quite new to me I'm in the middle in studying the code and I encountered this word "Append" and I don't understand what does it do. Does a...
append
c#
null
null
null
07/26/2012 07:40:54
off topic
AppendData c# === I'm new to programming. I've been learning C# since April. Now my boss gave me a code to learn and study but it seems to be very difficult because some of the Data types are quite new to me I'm in the middle in studying the code and I encountered this word "Append" and I don't understand what do...
2
8,393,708
12/06/2011 00:08:30
1,066,804
11/26/2011 11:02:08
2
0
I am trying to run a sample Android application
I am trying to run this Android application http://developer.android.com/resources/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/AccelerometerPlayActivity.html but I am getting an error when I try to compile the source and run public void onSensorChanged(SensorEvent event) // ERROR IN TH...
android
null
null
null
null
12/06/2011 17:05:12
not a real question
I am trying to run a sample Android application === I am trying to run this Android application http://developer.android.com/resources/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/AccelerometerPlayActivity.html but I am getting an error when I try to compile the source and run public v...
1
9,686,420
03/13/2012 14:49:40
1,264,172
03/12/2012 13:15:13
3
0
Searching for a pattern in Ext JS
I have a grid with certain records and a textfield above it. The textfield is connected with the grid such that each time there is a keyup event it goes to a filter function in order to only show those records that contain the characters that the user typed in. The problem is that right now it only matches from the sta...
extjs
filter
store
null
null
null
open
Searching for a pattern in Ext JS === I have a grid with certain records and a textfield above it. The textfield is connected with the grid such that each time there is a keyup event it goes to a filter function in order to only show those records that contain the characters that the user typed in. The problem is that...
0
4,071,621
11/01/2010 17:53:11
476,427
10/15/2010 00:25:05
8
0
Slow down sliding animation between android activities?
I know that android automatically uses sliding animations if you open and close activities. Then they slide from left to right and fill the screen (or from right to left). The thing is that the animation is quite fast... it is visible on the emulator but it is barely noticeable on the phone itself. I am wondering if t...
android
null
null
null
null
null
open
Slow down sliding animation between android activities? === I know that android automatically uses sliding animations if you open and close activities. Then they slide from left to right and fill the screen (or from right to left). The thing is that the animation is quite fast... it is visible on the emulator but it ...
0
8,643,408
12/27/2011 10:07:56
1,116,280
12/26/2011 12:03:51
118
1
Using PHP to replace XHTML tags and add parameters via preg_replace
Suppose you have the following code (such portions specified by `<art></art>` with a unique ID are multiple): <art id="001"> <p class="prim"><h1>word1</h1>Text</p> </art> <art id="002"> <p class="prim"><h1>word2</h1>Text</p> <p class="sec"><h1>word2.1</h1>Text</p> </art> Ho...
php
regex
parsing
null
null
12/28/2011 07:58:44
too localized
Using PHP to replace XHTML tags and add parameters via preg_replace === Suppose you have the following code (such portions specified by `<art></art>` with a unique ID are multiple): <art id="001"> <p class="prim"><h1>word1</h1>Text</p> </art> <art id="002"> <p class="prim"><h1>word2</h...
3
7,361,578
09/09/2011 12:24:34
81,398
03/23/2009 12:30:04
1,229
33
Java annotation that expands/resolves to many annotations?
I have a set of Java annotation that I quite frequently use, like this: @SomeAnnotation(Something) @SomeOtherAnnotation @SomeLastAnnotation(SomethingElse) class Foo { /* ... */ } As I use all these annotations together quite often, and I may have to add to them in everywhere ...
java
annotations
null
null
null
null
open
Java annotation that expands/resolves to many annotations? === I have a set of Java annotation that I quite frequently use, like this: @SomeAnnotation(Something) @SomeOtherAnnotation @SomeLastAnnotation(SomethingElse) class Foo { /* ... */ } As I use all these annotations to...
0
5,216,190
03/07/2011 05:30:24
339,108
05/12/2010 08:40:51
729
1
How to set the content type on the servlet
I am using a simple servlet which sends back document contents from the database as a byte array. I would like to set a content [type][1] so that it has an appropriate extension while it is being retrieved via a doGet() call. I do have the type of the document stored as a metadata in the database (e.g. png, gif, png...
java
servlets
null
null
null
null
open
How to set the content type on the servlet === I am using a simple servlet which sends back document contents from the database as a byte array. I would like to set a content [type][1] so that it has an appropriate extension while it is being retrieved via a doGet() call. I do have the type of the document stored a...
0
4,100,455
11/04/2010 19:26:12
101,313
05/05/2009 04:38:09
1
0
Using Nose to test txmongo dependent code
I want to use nose to test an application that I am writing using twisted and txmongo. I can't even get simple use cases like the following working: from nose.twistedtools import reactor, deferred, threaded_reactor import logging from twisted.internet import defer import txmongo log = log...
python
twisted
nose
null
null
null
open
Using Nose to test txmongo dependent code === I want to use nose to test an application that I am writing using twisted and txmongo. I can't even get simple use cases like the following working: from nose.twistedtools import reactor, deferred, threaded_reactor import logging from twisted.internet import...
0
7,466,289
09/19/2011 03:55:46
885,155
08/09/2011 02:51:04
30
0
Apply WHERE after GROUP BY
I have a table with items that are part of a thread, so they have a thread ID, each item also has a date (UNIX timestamp). So my table looks something like (UNIX timestamps simplified): +-----------------------------+ | id | date | thread_id | +-----+---------+-------------+ | 1 | 1111 ...
mysql
null
null
null
null
null
open
Apply WHERE after GROUP BY === I have a table with items that are part of a thread, so they have a thread ID, each item also has a date (UNIX timestamp). So my table looks something like (UNIX timestamps simplified): +-----------------------------+ | id | date | thread_id | +-----+---------+----...
0
4,487,359
12/20/2010 06:20:35
230,674
12/13/2009 13:36:10
41
0
virtualization of windows image
I have downloaded the vmware workstation and try to power on the virtual image. it is asking serial number. if i click the GetSerialNumber button , it is directing me to website where i dont know how to get serial number. please help me in getting trial key for working vmware workstation. urgent !!!
virtualization
null
null
null
null
12/20/2010 10:30:29
off topic
virtualization of windows image === I have downloaded the vmware workstation and try to power on the virtual image. it is asking serial number. if i click the GetSerialNumber button , it is directing me to website where i dont know how to get serial number. please help me in getting trial key for working vmware ...
2
9,021,300
01/26/2012 16:18:16
1,109,381
12/21/2011 08:06:29
1
0
Step by Step Installation of openGL in Windows 7 64bit OS
I want to install OpenGL latest version on my Pc My PC config is : Windows 7 64bit 4 Gb RAM 1 GB ATI Graphics Card.
opengl
windows-7-x64
null
null
null
01/26/2012 18:57:55
off topic
Step by Step Installation of openGL in Windows 7 64bit OS === I want to install OpenGL latest version on my Pc My PC config is : Windows 7 64bit 4 Gb RAM 1 GB ATI Graphics Card.
2
513,177
02/04/2009 20:34:40
62,596
02/04/2009 20:11:52
1
0
When you get a stack trace in Eclipse with SDK classes in the stack, how can you see the SDK sources?
When you are developing an Android application with the Eclipse plugin and debugger, and get a stack trace, you will not see any of the SDK source code. What steps do you need to make to fix this? Assume beginner Java programmer.
android
null
null
null
null
null
open
When you get a stack trace in Eclipse with SDK classes in the stack, how can you see the SDK sources? === When you are developing an Android application with the Eclipse plugin and debugger, and get a stack trace, you will not see any of the SDK source code. What steps do you need to make to fix this? Assume beginner ...
0
11,718,071
07/30/2012 08:48:02
1,518,070
07/11/2012 14:22:46
323
4
Cant get code working
I am trying to get this working but can't, can someone help? I am basically trying to create a grid that the words go into document.getElementById("testBtn").onclick = function() { var tbl = document.getElementById("tbl"); if(tbl != null) { tbl.parentNode.removeChild(tbl); } var ...
javascript
jquery
null
null
null
08/01/2012 18:49:46
not a real question
Cant get code working === I am trying to get this working but can't, can someone help? I am basically trying to create a grid that the words go into document.getElementById("testBtn").onclick = function() { var tbl = document.getElementById("tbl"); if(tbl != null) { tbl.parentNode.removeC...
1
9,818,736
03/22/2012 08:33:42
1,285,365
03/22/2012 08:18:58
1
0
Bubble list view in android
How to create Bubble listview like SMS-type Ui and textview and background image change as per text size in android
android
android-listview
null
null
null
03/23/2012 12:42:22
not a real question
Bubble list view in android === How to create Bubble listview like SMS-type Ui and textview and background image change as per text size in android
1
9,995,093
04/03/2012 14:13:16
1,044,011
11/13/2011 09:09:53
106
0
how to make holes in file to rease data by c in linux
I know linux have this `hole` feature, and I am wondering if I could make a hole in a existing file. For specific, I have created a file named `hole_test` by these codes: char a[7]="happy!"; fd = open("hole_test", O_CREAT|O_DRWR, 0666); pwrite(fd, a, sizeof(a), 0); pwrite(fd, a, sizeof(a), 6553...
c
linux
filesystems
null
null
null
open
how to make holes in file to rease data by c in linux === I know linux have this `hole` feature, and I am wondering if I could make a hole in a existing file. For specific, I have created a file named `hole_test` by these codes: char a[7]="happy!"; fd = open("hole_test", O_CREAT|O_DRWR, 0666); pwri...
0
6,631,423
07/08/2011 23:02:48
616,099
02/14/2011 11:19:15
54
1
tips/tricks for speeding up jni
I have a java code which has to call native functions very frequently. I want to know if there are some tricks to speed up code written using jni. I understand that the question is a little subjective but any text/material/reference (related to performance boosting of jni) will help since I am just a beginner. I di...
jni
performance
null
null
null
12/07/2011 19:48:48
not constructive
tips/tricks for speeding up jni === I have a java code which has to call native functions very frequently. I want to know if there are some tricks to speed up code written using jni. I understand that the question is a little subjective but any text/material/reference (related to performance boosting of jni) will hel...
4
8,738,633
01/05/2012 06:42:58
1,131,497
01/05/2012 06:32:45
1
0
How to resize edit text in android?
I am using Edittext in my application but want to resize it please tell me how to do it?
android
resize
edittext
null
null
01/06/2012 13:18:16
not a real question
How to resize edit text in android? === I am using Edittext in my application but want to resize it please tell me how to do it?
1
7,519,234
09/22/2011 17:54:01
959,725
09/22/2011 17:54:01
1
0
Tomcat KeyStore Environment Path
We have the following example: < Connector port="8443" maxThreads="200" scheme="https" secure="true" SSLEnabled="true" keystoreFile="${user.home}/.keystore" keystorePass="changeit" clientAuth="false" sslProtocol="TLS" /> How can I make the ...
tomcat7
null
null
null
null
null
open
Tomcat KeyStore Environment Path === We have the following example: < Connector port="8443" maxThreads="200" scheme="https" secure="true" SSLEnabled="true" keystoreFile="${user.home}/.keystore" keystorePass="changeit" clientAuth="false" sslProt...
0
10,260,882
04/21/2012 16:31:57
1,348,549
04/21/2012 16:28:12
1
0
Last floating image makes <h2> area clickable
I've made some links in an ul li. I made images clickable, linking to a new HTML file. I've got four of those, and I wanted to put 2 beside each other so I used float:left;. However, when I create a new h2 after those images, this h2 becomes clickable and linking to the HTML file used in the last picture. I've alre...
html
css
null
null
null
null
open
Last floating image makes <h2> area clickable === I've made some links in an ul li. I made images clickable, linking to a new HTML file. I've got four of those, and I wanted to put 2 beside each other so I used float:left;. However, when I create a new h2 after those images, this h2 becomes clickable and linking to th...
0
9,889,336
03/27/2012 12:13:48
676,192
03/25/2011 05:57:52
105
0
Position after resizing
It looks like jquery changes the poition of elements when I resize them. I have a resizable (and draggable) element inside another. Resizing and dragging are constrained to a grid, and to within the parent element. When I load the page the draggable element has top position 89.68333435058594, but as soon as I res...
jquery
null
null
null
null
null
open
Position after resizing === It looks like jquery changes the poition of elements when I resize them. I have a resizable (and draggable) element inside another. Resizing and dragging are constrained to a grid, and to within the parent element. When I load the page the draggable element has top position 89.6833343...
0
11,538,500
07/18/2012 09:40:11
1,225,686
02/22/2012 11:33:19
1
1
asp.net access document.forms[0].controlD
I have problem with access any asp control by JQuery. I know there are other options to do that, but I am wonderring what I am doing wrong. This is simple asp.net website: <head runat="server"> <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.6/jquery-ui.min.js" type="text/javas...
jquery
asp.net
null
null
null
null
open
asp.net access document.forms[0].controlD === I have problem with access any asp control by JQuery. I know there are other options to do that, but I am wonderring what I am doing wrong. This is simple asp.net website: <head runat="server"> <script src="http://ajax.aspnetcdn.com/ajax/jque...
0
11,337,095
07/05/2012 02:08:17
1,502,756
07/05/2012 01:59:05
1
0
How to invalidate an input in c
I'm writing a program in C that is suppose to ask the user for a number. The number has to be greater than zero and cannot have letters before or after the number. (ie: 400 is valid but abc or 400abc or abc400 is not). I can make my program invalidate everything besides 400abc. Any help in getting my program to invalid...
c
invalid
valid
null
null
null
open
How to invalidate an input in c === I'm writing a program in C that is suppose to ask the user for a number. The number has to be greater than zero and cannot have letters before or after the number. (ie: 400 is valid but abc or 400abc or abc400 is not). I can make my program invalidate everything besides 400abc. Any ...
0
10,557,129
05/11/2012 19:00:07
1,330,207
04/12/2012 20:50:20
-9
0
Why the rows are not sorted by date?
Please help me regarding the stated issue given in the title. The rows are not being sorted by date rather they are being sorted by string values. Can anyone please help me out. What can be done to do so in the try block: private int idFrom( Connection con, TRStatusReport statusReport ) throws SQLEx...
java
sql
null
null
null
05/14/2012 06:18:26
too localized
Why the rows are not sorted by date? === Please help me regarding the stated issue given in the title. The rows are not being sorted by date rather they are being sorted by string values. Can anyone please help me out. What can be done to do so in the try block: private int idFrom( Connection con, TRStatus...
3
8,563,370
12/19/2011 15:16:20
912,604
08/25/2011 16:43:45
60
0
How to apply RGBA_8888 and dither correctly?
I have splash.png with gradient. But on screen this image looks not so good ... My simple **.apk** for this question consists of: public class TestditherActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCo...
android
null
null
null
null
null
open
How to apply RGBA_8888 and dither correctly? === I have splash.png with gradient. But on screen this image looks not so good ... My simple **.apk** for this question consists of: public class TestditherActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { ...
0
6,586,488
07/05/2011 17:25:28
511,298
11/17/2010 20:28:06
51
10
WPF TreeView SelectedItemChanged not firing
I'm trying to create a TreeView which allows the user to rename the nodes in the TreeView. The tree represents an HL7 message and is structured from segment to subcomponent hierarchically. For example: PID PID.1 PID.2 etc... I need to allow the user to select a node, press F2 t...
.net
wpf
c#-4.0
null
null
null
open
WPF TreeView SelectedItemChanged not firing === I'm trying to create a TreeView which allows the user to rename the nodes in the TreeView. The tree represents an HL7 message and is structured from segment to subcomponent hierarchically. For example: PID PID.1 PID.2 etc... I ne...
0
7,410,590
09/14/2011 02:19:18
943,718
09/14/2011 02:15:21
1
0
Dynamically add buttons to XAML
Hi i'm new to XAML and please bear with me. im doing a windows phone 7 app. I need to add buttons to a canvas and use the coordinates stored in an xml file. the buttons should be invisible first (border is set to zero and stroke to transparent) and after it is clicked, an event should fire up making it appear. can y...
xaml
button
dynamic
null
null
null
open
Dynamically add buttons to XAML === Hi i'm new to XAML and please bear with me. im doing a windows phone 7 app. I need to add buttons to a canvas and use the coordinates stored in an xml file. the buttons should be invisible first (border is set to zero and stroke to transparent) and after it is clicked, an event s...
0
1,977,674
12/29/2009 23:56:42
17,732
09/18/2008 14:16:45
295
2
How can I get a list of all threads in a .Net application?
I'm trying to troubleshoot a larger multiprocessing issue -- I suspect a client library is creating a foreground thread, and I'm trying to see if that theory is correct. In order to do that, I'd like to be able to log a list of all threads in a process, what their state is, and whether they are background or foregro...
.net
multithreading
null
null
null
null
open
How can I get a list of all threads in a .Net application? === I'm trying to troubleshoot a larger multiprocessing issue -- I suspect a client library is creating a foreground thread, and I'm trying to see if that theory is correct. In order to do that, I'd like to be able to log a list of all threads in a process,...
0
1,632,459
10/27/2009 17:38:40
54,009
01/11/2009 23:41:09
828
13
How do I use arrayList.contains on my object
I have been trying to check my arraylist to see if an object already exsists, but it always returns false. Does any one have a sugestion to what I am doing wrong with the arrayList. ArrayList arr = new ArrayList(); CauseAssignment ca = new CauseAssignment(Param1.Text, Param2.Text); if...
c#
.net
null
null
null
null
open
How do I use arrayList.contains on my object === I have been trying to check my arraylist to see if an object already exsists, but it always returns false. Does any one have a sugestion to what I am doing wrong with the arrayList. ArrayList arr = new ArrayList(); CauseAssignment ca = new Cau...
0
5,796,814
04/26/2011 21:42:41
726,182
04/26/2011 21:42:41
1
0
How to split a big Controller into different files in Codeigniter ?
The Codeigniter Controller I am writing is getting big. How do I split the code into different files?
codeigniter
null
null
null
null
null
open
How to split a big Controller into different files in Codeigniter ? === The Codeigniter Controller I am writing is getting big. How do I split the code into different files?
0
4,312,696
11/30/2010 10:31:53
460,139
09/28/2010 03:21:23
6
0
What is best dojo learning material??
I just want to know what is best learning tools for learning dojo for beginner. Also is there any video tutorials for the same.
dojo
null
null
null
null
07/31/2012 19:28:27
not constructive
What is best dojo learning material?? === I just want to know what is best learning tools for learning dojo for beginner. Also is there any video tutorials for the same.
4
4,752,489
01/20/2011 20:55:47
569,466
01/09/2011 21:20:04
62
0
cant see pictures on IIS - windows-7
i have my IIS on Windows-7 (64bit) i see my websit but i cant see any pictures. why ? thanks
c#
asp.net
null
null
null
01/20/2011 21:03:55
not a real question
cant see pictures on IIS - windows-7 === i have my IIS on Windows-7 (64bit) i see my websit but i cant see any pictures. why ? thanks
1
8,075,107
11/10/2011 04:46:26
74,908
03/06/2009 22:39:16
445
2
postgres command not recognized
I am currently trying to install Postgres on my local Snow Leopard OS using macports. After installing macports, I run the following to install postgres:<br/> `sudo port install postgresql83 postgresql83-server` But when I type: `postgres` I get the following error:<br/> `-bash: postgres: command not found`...
postgresql
unix
null
null
null
11/10/2011 11:26:18
off topic
postgres command not recognized === I am currently trying to install Postgres on my local Snow Leopard OS using macports. After installing macports, I run the following to install postgres:<br/> `sudo port install postgresql83 postgresql83-server` But when I type: `postgres` I get the following error:<br/> ...
2
11,614,599
07/23/2012 14:30:57
843,787
07/14/2011 02:36:57
891
35
jQuery variable within string, quotes within quotes
I have the following jQuery code: $(".container").append("<a href='javascript:void(0)'onClick='showField('"+data.name+"','"+data.text+"');'>Edit</a>"); Which is outputting (notice the quote problem before the `4` and before the `>edit`: <a href="javascript:void(0)" onclick="showField("4','school_type...
jquery
null
null
null
null
null
open
jQuery variable within string, quotes within quotes === I have the following jQuery code: $(".container").append("<a href='javascript:void(0)'onClick='showField('"+data.name+"','"+data.text+"');'>Edit</a>"); Which is outputting (notice the quote problem before the `4` and before the `>edit`: <a href...
0
8,135,388
11/15/2011 11:08:59
53,313
01/09/2009 12:35:35
2,760
125
Is there a way to configure usage of ONE custom error page for ALL error codes in tomcat's web.xml?
As said in the in the title, I want to change default error pages in tomcat and did: <error-page> <error-code>500</error-code> <location>/error_500.html</location> </error-page> <error-page> <error-code>404</error-code> <location>/error_404.html</location> </error-...
tomcat
null
null
null
null
04/25/2012 11:59:37
off topic
Is there a way to configure usage of ONE custom error page for ALL error codes in tomcat's web.xml? === As said in the in the title, I want to change default error pages in tomcat and did: <error-page> <error-code>500</error-code> <location>/error_500.html</location> </error-page> <er...
2