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,942,785 | 10/30/2011 01:32:36 | 927,667 | 09/04/2011 15:06:39 | 105 | 1 | Form that allows to pass child objects from one object to another in Rails | I have a form_for class A, which includes a nested form for B class. B belongs to A and C polymorphically.
There are two ways to create B objects:
- either from a nested form within form_for A
- copy from a C object
For a concrete example, assume an Appointment class, which has_one Tutor and has_many Students.... | ruby-on-rails | forms | null | null | null | null | open | Form that allows to pass child objects from one object to another in Rails
===
I have a form_for class A, which includes a nested form for B class. B belongs to A and C polymorphically.
There are two ways to create B objects:
- either from a nested form within form_for A
- copy from a C object
For a concrete ... | 0 |
1,088,049 | 07/06/2009 16:54:26 | 38,693 | 11/18/2008 20:48:28 | 307 | 13 | Good Book Holder For Decent Sized Programming Books? | While not directly related to actual coding, I think this question has value insofar as it can affect programming productivity. I will give it a go on StackOverflow :-)
Suppose you have a book on a programming language and are trying to learn the language. You want to write the code that is given in the book in so y... | book | accessories | holder | null | null | 09/30/2011 12:26:41 | off topic | Good Book Holder For Decent Sized Programming Books?
===
While not directly related to actual coding, I think this question has value insofar as it can affect programming productivity. I will give it a go on StackOverflow :-)
Suppose you have a book on a programming language and are trying to learn the language. Yo... | 2 |
7,874,816 | 10/24/2011 11:20:34 | 919,368 | 08/30/2011 09:18:15 | 16 | 0 | Sharing Common objects - warning "defined but not used" | I have a number of C++ classes, alot of them (not all) share two "static size variables" e.g.
share.h
/*Other variables in this header used by all classes*/
static size width=10;//Used by about 60%
static size height = 12;//used by about 60%
So I placed them in a header file al... | c++ | oop | coding-style | null | null | null | open | Sharing Common objects - warning "defined but not used"
===
I have a number of C++ classes, alot of them (not all) share two "static size variables" e.g.
share.h
/*Other variables in this header used by all classes*/
static size width=10;//Used by about 60%
static size height = 12;... | 0 |
7,959,449 | 10/31/2011 20:38:54 | 423,736 | 08/18/2010 08:09:37 | 8 | 1 | Touch vs Mouse, Silverlight | Let's start from simple introduction. For better understanding my problem I have drastically simplifield this example.
The project is in Silverlight 4. I have got the MainPage.xaml, which consist of a Button:
<Button x:Name="SelectedFillColor" Command="{Binding ChangeColorCommand}" Background="{Bindin... | silverlight | mouse | touch | null | null | null | open | Touch vs Mouse, Silverlight
===
Let's start from simple introduction. For better understanding my problem I have drastically simplifield this example.
The project is in Silverlight 4. I have got the MainPage.xaml, which consist of a Button:
<Button x:Name="SelectedFillColor" Command="{Binding ChangeC... | 0 |
6,061,600 | 05/19/2011 16:11:58 | 733,705 | 05/01/2011 22:07:00 | 8 | 0 | Change the behavior of the "-browsecmd" callback from Tk::Tree | my problem is that the subroutine from "-browsecmd" is called twice, when a user clicks on an entry. It activates when the left mouse button is pressed and when it is released. Is it possible to tell "-browsecmd" to only activate once?
Here is an example script that demonstrates my problem. Whenever a user clicks on... | perl | tk | null | null | null | null | open | Change the behavior of the "-browsecmd" callback from Tk::Tree
===
my problem is that the subroutine from "-browsecmd" is called twice, when a user clicks on an entry. It activates when the left mouse button is pressed and when it is released. Is it possible to tell "-browsecmd" to only activate once?
Here is an ex... | 0 |
4,007,976 | 10/24/2010 11:15:51 | 485,548 | 10/24/2010 11:15:51 | 1 | 0 | Eclipse + Android not recognizing my (dimension) values | I am teaching myself Android using Eclipse, the Android plug-in, and Sams "Teach Yourself Android Development" book. I have this weird little problem. I've been able to create xml files in the res/values directory that hold strings and color values (colors.xml and strings.xml). I have been able to reference these va... | android | eclipse-plugin | null | null | null | null | open | Eclipse + Android not recognizing my (dimension) values
===
I am teaching myself Android using Eclipse, the Android plug-in, and Sams "Teach Yourself Android Development" book. I have this weird little problem. I've been able to create xml files in the res/values directory that hold strings and color values (colors.... | 0 |
11,122,801 | 06/20/2012 15:22:25 | 938,367 | 09/10/2011 16:27:18 | 10 | 0 | Spring + Hibernate + Annotation + XmlWebApplicationContext | When Tomcat starts I get this messages:
INFO: Initializing Spring FrameworkServlet 'spring'
2012-06-20 17:02:55,209 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'spring': initialization started>
2012-06-20 17:02:55,243 INFO [org.springframework.web.context.support.XmlWebApp... | spring | hibernate | annotations | null | null | null | open | Spring + Hibernate + Annotation + XmlWebApplicationContext
===
When Tomcat starts I get this messages:
INFO: Initializing Spring FrameworkServlet 'spring'
2012-06-20 17:02:55,209 INFO [org.springframework.web.servlet.DispatcherServlet] - <FrameworkServlet 'spring': initialization started>
2012-06-20 17:0... | 0 |
8,135,381 | 11/15/2011 11:08:18 | 698,502 | 04/08/2011 10:55:55 | 50 | 0 | incorrect value in string wp7 | Hi i have a problem with a strign value.. The string is global declared.. The string is **name_file_image**.
I have this code:
// iterate image files
foreach (XElement node in xml.Element("graphics").Elements("file"))
{
// pick image... | c# | string | windows-phone-7 | null | null | null | open | incorrect value in string wp7
===
Hi i have a problem with a strign value.. The string is global declared.. The string is **name_file_image**.
I have this code:
// iterate image files
foreach (XElement node in xml.Element("graphics").Elements("file"))
{
... | 0 |
3,930,923 | 10/14/2010 07:17:48 | 365,788 | 06/13/2010 16:48:08 | 11 | 0 | a simple function | sorry for asking question not complete and here is the code for Node.h:
#ifndef NODE_H
#define NODE_H
#include <vector>
#include "ns3/object.h"
#include "ns3/callback.h"
#include "ns3/ptr.h"
#include "ns3/net-device.h"
namespace ns3 {
class Application;
class Packet;
class Address;
/**
* \ingr... | c++ | null | null | null | null | 10/14/2010 07:20:40 | not a real question | a simple function
===
sorry for asking question not complete and here is the code for Node.h:
#ifndef NODE_H
#define NODE_H
#include <vector>
#include "ns3/object.h"
#include "ns3/callback.h"
#include "ns3/ptr.h"
#include "ns3/net-device.h"
namespace ns3 {
class Application;
class Packet;
class Addr... | 1 |
3,576,572 | 08/26/2010 15:20:29 | 231,116 | 12/14/2009 09:14:24 | 194 | 2 | From image to numbers | I have some images that contain numbers written perfectly.
These numbers can go from one to 4 characters.
Is there a way to recognize and convert these numbers to text with PHP or Javascript?
Thank you,
Regards. | php | javascript | image-processing | convert | null | null | open | From image to numbers
===
I have some images that contain numbers written perfectly.
These numbers can go from one to 4 characters.
Is there a way to recognize and convert these numbers to text with PHP or Javascript?
Thank you,
Regards. | 0 |
4,527,526 | 12/24/2010 17:23:32 | 552,569 | 12/23/2010 16:03:21 | 8 | 0 | Does JQuery have an API for AJAX? | I'm familiar with libraries like YUI and Prototype that I know have an API for AJAX, but I haven't seen anything yet for JQuery. Is there an API out there? | javascript | jquery | ajax | null | null | 12/16/2011 04:36:04 | not a real question | Does JQuery have an API for AJAX?
===
I'm familiar with libraries like YUI and Prototype that I know have an API for AJAX, but I haven't seen anything yet for JQuery. Is there an API out there? | 1 |
7,896,275 | 10/25/2011 21:45:21 | 103,739 | 05/08/2009 18:12:09 | 3,224 | 123 | Rails range input form element? | I'm using MongoDB with Mongoid and have a field which represents a range:
field :number_range, type: Range
So in the DB this is stored as:
"number_range" : { "min" : 200, "max" : 300 }
How can I make a form element that allows for editing this range? [There is apparently a form element for this]... | ruby-on-rails | mongodb | mongoid | null | null | null | open | Rails range input form element?
===
I'm using MongoDB with Mongoid and have a field which represents a range:
field :number_range, type: Range
So in the DB this is stored as:
"number_range" : { "min" : 200, "max" : 300 }
How can I make a form element that allows for editing this range? [There i... | 0 |
1,873,227 | 12/09/2009 11:19:02 | 209,423 | 11/12/2009 09:14:26 | 369 | 12 | How to protect children on a social network website? | I'm developing a social network site its currently in the planning stages. One of the concerns is its likely the largest group of users are likely to be children.
Users will be able to post content and comment on other users posts.
**What can I do to prevent** :-
1. Bullying
2. stalking
3. Users disclosin... | social-networking | null | null | null | null | 12/09/2009 11:30:13 | off topic | How to protect children on a social network website?
===
I'm developing a social network site its currently in the planning stages. One of the concerns is its likely the largest group of users are likely to be children.
Users will be able to post content and comment on other users posts.
**What can I do to preve... | 2 |
965,919 | 06/08/2009 17:03:12 | 32,507 | 10/29/2008 18:47:38 | 23 | 0 | expression engine: start_on | I am using the following within the exp:weblog:entries tag:
start_on="{current_time format='%Y-%m-%d %H:%i'}"
I want to use this so that when the date of an event is past the current date then the event will disappear from the page. The problem is that I have some events that only have an entry date (ex. Apri... | expressionengine | format | date | null | null | null | open | expression engine: start_on
===
I am using the following within the exp:weblog:entries tag:
start_on="{current_time format='%Y-%m-%d %H:%i'}"
I want to use this so that when the date of an event is past the current date then the event will disappear from the page. The problem is that I have some events that ... | 0 |
2,945,127 | 05/31/2010 17:41:49 | 354,788 | 05/31/2010 17:41:49 | 1 | 0 | Matching elements from 2 arrays in perl | Right now I am attempting to synchronize two data files that are listed by date so that i can make comparisons later on. However I can not seem to print out only the lines where the dates match. At this point I have separated out the data for each file into 2 arrays. I need to find only the dates that are in both array... | perl | null | null | null | null | null | open | Matching elements from 2 arrays in perl
===
Right now I am attempting to synchronize two data files that are listed by date so that i can make comparisons later on. However I can not seem to print out only the lines where the dates match. At this point I have separated out the data for each file into 2 arrays. I need ... | 0 |
6,391,512 | 06/17/2011 20:35:26 | 800,621 | 06/16/2011 00:44:30 | 5 | 0 | How to store accelerometer values | I have this code:
public class Chronom extends Activity
{
Chronometer mChronometer;
ProgressBar progre;
int total=1;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
//la... | android | progress-bar | accelerometer | null | null | null | open | How to store accelerometer values
===
I have this code:
public class Chronom extends Activity
{
Chronometer mChronometer;
ProgressBar progre;
int total=1;
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(s... | 0 |
10,762,698 | 05/26/2012 00:20:08 | 1,418,444 | 05/26/2012 00:10:28 | 1 | 0 | python script not working | I have a script I'm working on for a python course however my script does not work and I can not figure out why. Here is what I have:
#!/usr/bin/python
import time
def createDictionary():
startTime = time.clock()
dict = {'Dog': 'der Hund', 'Cat': 'die Katze', 'Bird': 'der Vogel'}
... | python | null | null | null | null | 05/26/2012 06:30:01 | not a real question | python script not working
===
I have a script I'm working on for a python course however my script does not work and I can not figure out why. Here is what I have:
#!/usr/bin/python
import time
def createDictionary():
startTime = time.clock()
dict = {'Dog': 'der Hund', 'Cat': 'die... | 1 |
11,471,846 | 07/13/2012 13:50:40 | 1,503,476 | 07/05/2012 09:13:18 | 1 | 2 | What's the best framework to build a seo optimized ajax page? | I am about to start a new web project that will be heavily using ajax requests (through jQuery) to pull content.
Basically there will be one main page and all the content will be pulled when needed through ajax.
I found on google that by using escaped fragments the website will be indexed (https://developers.goog... | javascript | jquery | ajax | frameworks | seo | 07/14/2012 05:10:37 | not constructive | What's the best framework to build a seo optimized ajax page?
===
I am about to start a new web project that will be heavily using ajax requests (through jQuery) to pull content.
Basically there will be one main page and all the content will be pulled when needed through ajax.
I found on google that by using esc... | 4 |
2,466,767 | 03/18/2010 00:00:19 | 296,125 | 03/18/2010 00:00:19 | 1 | 0 | C# process restart loop | I'm trying to make a console app that would monitor some process and restart it if it exits.
So, the console app is always on, it's only job is to restart some other process.
I posted my code below.. it basically works but just for one process restart...
I would appriciate any help!!
Thanks in advance!
... | c# | process | restart | null | null | null | open | C# process restart loop
===
I'm trying to make a console app that would monitor some process and restart it if it exits.
So, the console app is always on, it's only job is to restart some other process.
I posted my code below.. it basically works but just for one process restart...
I would appriciate any help!!... | 0 |
7,971,644 | 11/01/2011 19:17:31 | 848,277 | 07/17/2011 01:01:08 | 60 | 4 | most efficient way for loading data from text | Hi I have about 10 years worth of daily data of 10,000 equities that I need to use in a large scale project written in C++. Some 10000x3650 data points.
What would be the most efficient way to load this to be used in calculations.
Is there a way to load it from MatLab or Excel? or would a traditional way of loa... | c++ | c | null | null | null | 11/01/2011 19:44:57 | not a real question | most efficient way for loading data from text
===
Hi I have about 10 years worth of daily data of 10,000 equities that I need to use in a large scale project written in C++. Some 10000x3650 data points.
What would be the most efficient way to load this to be used in calculations.
Is there a way to load it from... | 1 |
10,295,418 | 04/24/2012 09:43:26 | 1,343,055 | 04/19/2012 05:06:46 | 28 | 1 | button disappears after clicking in HTML page | I have index.html page with start button when i click on start button button disappears and other background remains same until new page opens how to make the button visible after click untill moved to next page
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text... | html | null | null | null | null | null | open | button disappears after clicking in HTML page
===
I have index.html page with start button when i click on start button button disappears and other background remains same until new page opens how to make the button visible after click untill moved to next page
<!DOCTYPE HTML>
<html>
<head>
... | 0 |
6,114,628 | 05/24/2011 17:47:52 | 268,733 | 02/08/2010 15:01:49 | 1,894 | 9 | Where to store private important user data when the Documents directory is not an option? | My app is using iTunes file sharing which exposes everything in the Documents directory to the user, making it vulnerable to accidentally deletion or manipulation.
I spent hours in reading though these documents but it is a mess and I hope someone knows from experience. First, in one place they say that I should put... | iphone | ios | ipad | filesystems | null | null | open | Where to store private important user data when the Documents directory is not an option?
===
My app is using iTunes file sharing which exposes everything in the Documents directory to the user, making it vulnerable to accidentally deletion or manipulation.
I spent hours in reading though these documents but it is ... | 0 |
2,172,549 | 01/31/2010 17:11:49 | 128,165 | 06/24/2009 11:35:14 | 2,146 | 163 | Classic ASP bug when the page contains IE conditional comments | I think i have identified a bug in the way ASP handles IE conditional comments (or html comments in general)..
In theory it should not handle them at all since they are meant for the client-side..
In practice ..
<!--[if IE 6]>
<!--include virtual="emptyfile.asp"-->
<![endif]-->
will return
... | asp-classic | community-wiki | explanation | null | null | null | open | Classic ASP bug when the page contains IE conditional comments
===
I think i have identified a bug in the way ASP handles IE conditional comments (or html comments in general)..
In theory it should not handle them at all since they are meant for the client-side..
In practice ..
<!--[if IE 6]>
<!--inc... | 0 |
7,220,788 | 08/28/2011 11:56:25 | 914,410 | 08/26/2011 15:33:58 | 1 | 0 | Need some help fix a unknown issue? | I Recently added a comment box on my website under "Guestbook", and now the site is kind screwed. Altough i tryed to remove the comment box but the problem is still there.
And i kindly ask you guys to help me solve this problem.
Website: [http://swipper.org][1]
[1]: http://swipper.org
The issue is that ... | php | html | css | null | null | 08/28/2011 15:22:43 | too localized | Need some help fix a unknown issue?
===
I Recently added a comment box on my website under "Guestbook", and now the site is kind screwed. Altough i tryed to remove the comment box but the problem is still there.
And i kindly ask you guys to help me solve this problem.
Website: [http://swipper.org][1]
[1]:... | 3 |
11,695,104 | 07/27/2012 20:19:16 | 1,554,966 | 07/26/2012 14:07:02 | 1 | 1 | Loading a URL without redirecting in rails | Hi im basically trying to create a button that loads a url but doesnt redirects to it. | jquery | ruby-on-rails | null | null | null | 07/28/2012 10:56:28 | not a real question | Loading a URL without redirecting in rails
===
Hi im basically trying to create a button that loads a url but doesnt redirects to it. | 1 |
3,704,580 | 09/13/2010 21:31:40 | 293,249 | 03/14/2010 04:12:52 | 123 | 2 | Interesting and challenging self join problem MS SQL 2005 | I have this table named **OrdersToCall**
Data types: All bigints, except for date which is a datetime
<kbd>|-Order Num-|----Date--- |- Primary Ph -| Secondary Ph | Alternate Ph</kbd>
<kbd>|----101----| 02-07-2010 | 925-515-1234 | 916-515-1234 | 707-568-5778</kbd>
<kbd>|----102----| 02-07-2010 | 925-888-414... | sql | sql-server-2005 | join | null | null | null | open | Interesting and challenging self join problem MS SQL 2005
===
I have this table named **OrdersToCall**
Data types: All bigints, except for date which is a datetime
<kbd>|-Order Num-|----Date--- |- Primary Ph -| Secondary Ph | Alternate Ph</kbd>
<kbd>|----101----| 02-07-2010 | 925-515-1234 | 916-515-1234 | 70... | 0 |
11,443,689 | 07/12/2012 00:57:25 | 1,519,406 | 07/12/2012 00:53:38 | 1 | 0 | My Pinnacle Cart Site Loads Slow | I have a website called www.rfitropicalfish.com, using Pinnacle Cart software. The header has A LOT of Javascript and CSS Files that it loads. Any suggestions on how to speed it up or on any files that can be removed?
Thanks! | php | header | cart | null | null | 07/12/2012 02:15:18 | not a real question | My Pinnacle Cart Site Loads Slow
===
I have a website called www.rfitropicalfish.com, using Pinnacle Cart software. The header has A LOT of Javascript and CSS Files that it loads. Any suggestions on how to speed it up or on any files that can be removed?
Thanks! | 1 |
5,548,673 | 04/05/2011 07:39:05 | 692,410 | 04/05/2011 07:39:05 | 1 | 0 | Get age of friend on Facebook with Ruby via rFacebook. | I am creating a Facebook app and need to access peoples ages - Only the friends of the user, not the general public.
I am using rFacebook version 0.6.2, setup along the line of [this][1]
Cheers,
Will.
[1]: http://www.liverail.net/articles/2007/6/29/tutorial-on-developing-a-facebook-platform-application-wi... | ruby-on-rails | ruby | facebook | date | age | null | open | Get age of friend on Facebook with Ruby via rFacebook.
===
I am creating a Facebook app and need to access peoples ages - Only the friends of the user, not the general public.
I am using rFacebook version 0.6.2, setup along the line of [this][1]
Cheers,
Will.
[1]: http://www.liverail.net/articles/2007/6/... | 0 |
8,075,960 | 11/10/2011 07:01:10 | 651,110 | 03/09/2011 07:30:28 | 380 | 7 | GridView e.Row.ForeColor doesn't work | Below is my GridView
<asp:GridView ID="grdGroupName" runat="server" SkinID="AdminGrid" AllowPaging="True"
OnPageIndexChanging="grdGroups_PageIndexChanging" PageSize="25" OnRowCommand="grdGroups_RowCommand"
OnRowDataBound="grdGroups_RowDataBound" OnRowDeleting="grdGroups... | asp.net | gridview | c#-2.0 | null | null | 11/10/2011 21:31:39 | not a real question | GridView e.Row.ForeColor doesn't work
===
Below is my GridView
<asp:GridView ID="grdGroupName" runat="server" SkinID="AdminGrid" AllowPaging="True"
OnPageIndexChanging="grdGroups_PageIndexChanging" PageSize="25" OnRowCommand="grdGroups_RowCommand"
OnRowDataBound="grdGr... | 1 |
5,106,496 | 02/24/2011 15:10:58 | 407,309 | 07/31/2010 05:52:58 | 112 | 3 | client/server win program | i want to write a client/server win program.every client has a amount in it's fund that admin gives to them .now my question is how can every client send it's amount of fund to admin?and the amount of funds must be pend until admin accept them and then save changes for every client?
how can i do it??
thanks alot. | c# | client-server | null | null | null | 02/25/2011 06:06:44 | not a real question | client/server win program
===
i want to write a client/server win program.every client has a amount in it's fund that admin gives to them .now my question is how can every client send it's amount of fund to admin?and the amount of funds must be pend until admin accept them and then save changes for every client?
how ... | 1 |
7,418,924 | 09/14/2011 15:26:05 | 634,014 | 02/25/2011 11:23:56 | 30 | 0 | String matches regexp | I used perl, unix and java regular expression lot of time, but I'm surprised in java about that:
"help".matches("^h")
is false!!
From java documentation:
http://download.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#matches(java.lang.String)
"true if, and only if, this string matches the... | java | regex | null | null | null | 09/15/2011 07:33:29 | not a real question | String matches regexp
===
I used perl, unix and java regular expression lot of time, but I'm surprised in java about that:
"help".matches("^h")
is false!!
From java documentation:
http://download.oracle.com/javase/1.4.2/docs/api/java/lang/String.html#matches(java.lang.String)
"true if, and only ... | 1 |
3,862,598 | 10/05/2010 10:01:50 | 392,626 | 07/15/2010 11:28:51 | 106 | 13 | List of UML state-machine diagram to (Java) Code (Generation) Software | I’m looking for software / UML tools that can generate code (including, or not, Java) from UML state machine diagrams.
Be it from diagrams modeled in the tool itself or imported as XMI or whatever. Could you name me some? | java | code-generation | uml | null | null | 11/10/2011 10:50:42 | not constructive | List of UML state-machine diagram to (Java) Code (Generation) Software
===
I’m looking for software / UML tools that can generate code (including, or not, Java) from UML state machine diagrams.
Be it from diagrams modeled in the tool itself or imported as XMI or whatever. Could you name me some? | 4 |
9,195,532 | 02/08/2012 14:45:56 | 339,171 | 05/12/2010 09:56:41 | 170 | 10 | Complete email client is possible or not in iPhone? | I have to make an application of email client. is it possible to make an application that can manage different email addresses. In application we have to provide inbox for different id. I don't know how I'll connect to all servers. and how it will work? can anybody guide me?
This is really new for me thats why pleas... | iphone | email | email-client | null | null | 02/08/2012 15:55:08 | not a real question | Complete email client is possible or not in iPhone?
===
I have to make an application of email client. is it possible to make an application that can manage different email addresses. In application we have to provide inbox for different id. I don't know how I'll connect to all servers. and how it will work? can anybo... | 1 |
6,593,504 | 07/06/2011 08:26:16 | 737,172 | 05/04/2011 01:47:23 | 24 | 0 | how python test binary data inside some plain text which was extract from database | I have to extract some product information from mysql database, then construct a SOAP request and use python's suds library to send this SOAP request to a remote server.
But some of the information extract is combine with binary data and text data, such as:
...
Some plain data
...
Content-Type: i... | python | mysql | binary | null | null | 11/11/2011 09:36:47 | not a real question | how python test binary data inside some plain text which was extract from database
===
I have to extract some product information from mysql database, then construct a SOAP request and use python's suds library to send this SOAP request to a remote server.
But some of the information extract is combine with binary ... | 1 |
7,537,604 | 09/24/2011 07:06:44 | 962,365 | 09/24/2011 07:03:33 | 1 | 0 | Is there a printed colour book of web colours? | Since our delightful friends over at Pantone refuse to ship outside the US without doubling the price, does anyone know of an alternative printed guide to web colours?
I know about kuler and colourlovers (etc) but this is more or going to see clients and letting them choose their own colours. Something tangible is m... | colors | null | null | null | null | 09/24/2011 12:32:50 | off topic | Is there a printed colour book of web colours?
===
Since our delightful friends over at Pantone refuse to ship outside the US without doubling the price, does anyone know of an alternative printed guide to web colours?
I know about kuler and colourlovers (etc) but this is more or going to see clients and letting th... | 2 |
10,171,888 | 04/16/2012 09:48:08 | 364,312 | 06/11/2010 07:35:47 | 1,103 | 17 | Redirect using .htaccess? | Currently, my website works with `www` and without `www`, i.e:
`http://oshirowanen.com` and `http://www.oshirowanen.com`
I seem to be getting penalisted for SEO purposes for duplications.
Is it possible to redirect all web pages urls when do not have the www to the equivalent www version of the web page?
Fo... | apache | .htaccess | url | redirect | null | 04/18/2012 16:11:32 | off topic | Redirect using .htaccess?
===
Currently, my website works with `www` and without `www`, i.e:
`http://oshirowanen.com` and `http://www.oshirowanen.com`
I seem to be getting penalisted for SEO purposes for duplications.
Is it possible to redirect all web pages urls when do not have the www to the equivalent www... | 2 |
9,075,188 | 01/31/2012 06:10:21 | 970,237 | 09/29/2011 01:44:00 | 111 | 0 | saving cron job in ubuntu | I am new to ubuntu and cron job. I have entered the following into my command line:
crontab -e
and I get the following output: "no crontab for teddy - using an empty one 888"
Then I enter when I want it to execute (I believe this is right?... I want it to run once a day, everyday at 8pm):
... | php | web-development | ubuntu | cron | null | 01/31/2012 20:29:02 | off topic | saving cron job in ubuntu
===
I am new to ubuntu and cron job. I have entered the following into my command line:
crontab -e
and I get the following output: "no crontab for teddy - using an empty one 888"
Then I enter when I want it to execute (I believe this is right?... I want it to run once a d... | 2 |
8,629,942 | 12/25/2011 14:07:09 | 859,154 | 07/23/2011 09:23:42 | 5,964 | 377 | using dynamic to activate JS function with c#? | I have this `Js` functions :
function Add (var a, var b)
{ return a+b;}
function Substract (var a, var b)
{ return a-b;}
I know (heard) that I can activate those functions on c# code using the `dynamic` keyword.
Can I get a help ( or beginning of help) to the solution by simple samp... | c# | dynamic | null | null | null | null | open | using dynamic to activate JS function with c#?
===
I have this `Js` functions :
function Add (var a, var b)
{ return a+b;}
function Substract (var a, var b)
{ return a-b;}
I know (heard) that I can activate those functions on c# code using the `dynamic` keyword.
Can I get a help ( ... | 0 |
8,949,072 | 01/20/2012 23:16:21 | 580,349 | 01/18/2011 18:01:44 | 185 | 0 | This just bugs me | Ignore the parameters, just look the end of the for line. Why do I have to write a semicolon before closing my for loop? I get an error if I don't put it there. It's driving me nuts.
for(Enumeration<String> taxes = taxes.keys(); taxes.hasMoreElements();){
String aux=impuesto.nextElement()+"<br>";
... | for-loop | hashtable | enumeration | null | null | 01/21/2012 14:18:53 | not a real question | This just bugs me
===
Ignore the parameters, just look the end of the for line. Why do I have to write a semicolon before closing my for loop? I get an error if I don't put it there. It's driving me nuts.
for(Enumeration<String> taxes = taxes.keys(); taxes.hasMoreElements();){
String aux=impuesto... | 1 |
595,469 | 02/27/2009 16:26:09 | 4,227 | 09/02/2008 13:08:22 | 76 | 11 | UI Design Pattern for Windows Forms (like MVVM for WPF) | MVVM is most commonly used with WPF because it is perfectly suited for it. But what about Windows Forms? Is there an established and commonly used approach / design pattern like this for Windows Forms too? One that works explicitly well with Windows Forms? Is there a book or an article that describes this well? | design-patterns | winforms | null | null | null | 06/13/2012 23:29:47 | not constructive | UI Design Pattern for Windows Forms (like MVVM for WPF)
===
MVVM is most commonly used with WPF because it is perfectly suited for it. But what about Windows Forms? Is there an established and commonly used approach / design pattern like this for Windows Forms too? One that works explicitly well with Windows Forms? I... | 4 |
7,213,593 | 08/27/2011 09:13:37 | 771,086 | 05/26/2011 10:03:08 | 73 | 2 | Set control location to original | Is there any way to set control location to original (initialize time)?<br>
I changing location on many controls, and in some situation I must change they location to original. | c# | .net | winforms | control | location | null | open | Set control location to original
===
Is there any way to set control location to original (initialize time)?<br>
I changing location on many controls, and in some situation I must change they location to original. | 0 |
11,494,998 | 07/15/2012 19:37:21 | 484,390 | 10/22/2010 15:45:33 | 891 | 0 | Copy of virtual machine in WMware player | Today, I'm using WMware Player and I have created a virtual machine. I need to make a copy of that virtual machine and to be used for another purpose.
Is it enough to copy that file and past it and rename the file in explorer? | virtual-machine | null | null | null | null | 07/16/2012 17:44:41 | off topic | Copy of virtual machine in WMware player
===
Today, I'm using WMware Player and I have created a virtual machine. I need to make a copy of that virtual machine and to be used for another purpose.
Is it enough to copy that file and past it and rename the file in explorer? | 2 |
10,183,890 | 04/17/2012 01:25:36 | 1,333,864 | 04/14/2012 22:39:14 | 1 | 0 | PHP Session array! :( | The objective I am trying to achieve is that I have set up a shopping basket which is a session list is stored in a session array called ['list'].
Now the tricky part of this is what I want to do next, what I want to do next is extract the session data (information about list items) and insert them into a database ... | php | arrays | session | null | null | 04/17/2012 04:41:25 | not a real question | PHP Session array! :(
===
The objective I am trying to achieve is that I have set up a shopping basket which is a session list is stored in a session array called ['list'].
Now the tricky part of this is what I want to do next, what I want to do next is extract the session data (information about list items) and i... | 1 |
8,385,268 | 12/05/2011 12:26:14 | 1,081,522 | 12/05/2011 12:20:31 | 1 | 0 | Which DB choose for Java Web Application? | I am new on develop Java Web applications, but I have a project and I decided to do on Java Web, it's time to learn it. The project is a MVC model. I decided the Play framework, but now I don't know which DB choose, most usually projects on PHP uses MySQL, but I would to know, which DB is most useful for Java | java | database | null | null | null | 12/05/2011 12:41:53 | not constructive | Which DB choose for Java Web Application?
===
I am new on develop Java Web applications, but I have a project and I decided to do on Java Web, it's time to learn it. The project is a MVC model. I decided the Play framework, but now I don't know which DB choose, most usually projects on PHP uses MySQL, but I would to k... | 4 |
11,327,298 | 07/04/2012 10:31:16 | 773,715 | 05/27/2011 20:25:07 | 41 | 1 | WhatsApp wrapper in Rails | Just wondering if there is any wrapper written for [Whatsapp](http://www.whatsapp.com) in Ruby on Rails similar to what is written in PHP - [WhatsAPI](https://github.com/venomous0x/WhatsAPI).
Actually searched on Google, but could not find one.
| ruby-on-rails | whatsapp | null | null | null | 07/05/2012 14:46:31 | not constructive | WhatsApp wrapper in Rails
===
Just wondering if there is any wrapper written for [Whatsapp](http://www.whatsapp.com) in Ruby on Rails similar to what is written in PHP - [WhatsAPI](https://github.com/venomous0x/WhatsAPI).
Actually searched on Google, but could not find one.
| 4 |
7,730,003 | 10/11/2011 17:27:38 | 958,322 | 09/22/2011 05:10:55 | 6 | 0 | How to promatically turn off Protected Mode of IE by code (C#)? | I'm using ShellWindows, it not works with Protected Mode enabled. So I want to turn it off by setting registry value for example.
And how can I change the registry value without admin previllige, or ask for admin rights to do it ? | c# | internet-explorer | toolbar | null | null | 10/12/2011 15:58:33 | too localized | How to promatically turn off Protected Mode of IE by code (C#)?
===
I'm using ShellWindows, it not works with Protected Mode enabled. So I want to turn it off by setting registry value for example.
And how can I change the registry value without admin previllige, or ask for admin rights to do it ? | 3 |
7,260,139 | 08/31/2011 16:19:05 | 623,401 | 02/18/2011 15:44:58 | 102 | 1 | Launch an activity from a different class | I am trying to launch an activity in the onPostExecute method of an AsyncTask. This async class is implemented in another class which **dosent extends an activity**. But I am passing application context as an argument to the method in this class.
Here is the sample code
@Override
protected void onPostExe... | java | android | activity | android-asynctask | null | null | open | Launch an activity from a different class
===
I am trying to launch an activity in the onPostExecute method of an AsyncTask. This async class is implemented in another class which **dosent extends an activity**. But I am passing application context as an argument to the method in this class.
Here is the sample code
... | 0 |
7,420,868 | 09/14/2011 18:03:47 | 835,698 | 07/08/2011 16:03:15 | 84 | 0 | custom domain for blog on site hosted with heroku (dns is godaddy) | I have my site hosted through Heroku and my domain name registrar is godaddy. Going to mysite.com takes me to my heroku app seamlessly.
Now, I'm trying to setup blog.mysite.com to go to my tumblr site. However, how do I get that on godaddy? I don't want to add an A record to mysite.com after all ... I want to add it... | heroku | hosting | dns | godaddy | tumblr | 09/15/2011 22:25:49 | off topic | custom domain for blog on site hosted with heroku (dns is godaddy)
===
I have my site hosted through Heroku and my domain name registrar is godaddy. Going to mysite.com takes me to my heroku app seamlessly.
Now, I'm trying to setup blog.mysite.com to go to my tumblr site. However, how do I get that on godaddy? I do... | 2 |
1,157,492 | 07/21/2009 05:59:56 | 124,875 | 06/18/2009 05:59:26 | 108 | 4 | Best tutorial | what are the best tutorial website for getting basic information about Silverlight? | silverlight | null | null | null | null | 06/09/2012 16:57:04 | not constructive | Best tutorial
===
what are the best tutorial website for getting basic information about Silverlight? | 4 |
11,087,223 | 06/18/2012 16:36:25 | 146,674 | 07/28/2009 20:39:38 | 136 | 10 | Is it possible to embed video from a custom vendor? | The major video providers like Youtube and Vimeo can automatically be embedded when sharing a link to a video. Is it possible to do this for a custom video provider? | video | sharing | facebook-sharer | null | null | 06/19/2012 17:40:55 | off topic | Is it possible to embed video from a custom vendor?
===
The major video providers like Youtube and Vimeo can automatically be embedded when sharing a link to a video. Is it possible to do this for a custom video provider? | 2 |
7,958,722 | 10/31/2011 19:33:35 | 171,546 | 09/10/2009 16:13:36 | 1,306 | 16 | Specify location of input and output files for a binary file in bash | In a bash script called through shell in some directory ($PWD), there is a line where I need to call an executable located at $PWD/bin so that it reads a input file located at $PWD/inputfiles and the resulting output files are stored in $PWD/output. I only have the binary of this program, so can not modify source code ... | bash | path | redirection | binaryfiles | null | null | open | Specify location of input and output files for a binary file in bash
===
In a bash script called through shell in some directory ($PWD), there is a line where I need to call an executable located at $PWD/bin so that it reads a input file located at $PWD/inputfiles and the resulting output files are stored in $PWD/outp... | 0 |
8,025,550 | 11/06/2011 06:16:25 | 1,031,894 | 11/06/2011 06:00:54 | 1 | 0 | How to fix Command /Developer/usr/bin/clang failed with exit code 1? | Hi there I am new to C programming and have been using Xcode to write my simple CS HW. They have been working fine until a couple weeks ago when I keep getting this error code below. I went ahead and try to run some old programs that I know for sure works but still get this error. I looked everywhere and can't find ... | exit | clang | null | null | null | 11/08/2011 08:11:21 | not a real question | How to fix Command /Developer/usr/bin/clang failed with exit code 1?
===
Hi there I am new to C programming and have been using Xcode to write my simple CS HW. They have been working fine until a couple weeks ago when I keep getting this error code below. I went ahead and try to run some old programs that I know for... | 1 |
11,338,098 | 07/05/2012 05:08:37 | 1,177,790 | 01/30/2012 10:00:37 | 71 | 1 | Why in i18n blocktrans (django) a object, dict or list don't work? | I am using django i18n for supporting i18n. I've found out that in django blocktrans an object, dict directly doesn't work.
For example if I've got a object with name obj and i try using it like
{% blocktrans %} My name is {{ obj.name }} {% endblocktrans %}
will not work, but if I use it like
{% bl... | python | django | internationalization | django-templates | null | null | open | Why in i18n blocktrans (django) a object, dict or list don't work?
===
I am using django i18n for supporting i18n. I've found out that in django blocktrans an object, dict directly doesn't work.
For example if I've got a object with name obj and i try using it like
{% blocktrans %} My name is {{ obj.name }}... | 0 |
464,568 | 01/21/2009 09:25:57 | 46,304 | 10/23/2008 22:58:19 | 83 | 14 | Flash ExternalInterface JavaScript Sounds jQuery Sound | I would like to add sound alerts to a web page.. I believe that Flash is the best way to do this to support all major browsers, ie. IE, Firefox, Chrome, Safari.
I am also using jQuery and would like to use this plug-in [link text][1]. An example is shown at [link text][2] however I can not get this working in IE7 ... | javascript | jquery | flash | externalinterface | audio | null | open | Flash ExternalInterface JavaScript Sounds jQuery Sound
===
I would like to add sound alerts to a web page.. I believe that Flash is the best way to do this to support all major browsers, ie. IE, Firefox, Chrome, Safari.
I am also using jQuery and would like to use this plug-in [link text][1]. An example is shown a... | 0 |
7,700,299 | 10/08/2011 22:55:59 | 985,885 | 10/08/2011 22:53:14 | 1 | 0 | error: cannot find symbol | /** Write a class Square whose constructor receives the length of the sides.
Then supply methods to compute the
area and perimeter of the square.
Also compute the length of the diagonal using the Pythagorean Theorem.
Use the following class as a template your tester class
*/
public class Square
{
publ... | java | symbol | null | null | null | 01/22/2012 19:42:48 | too localized | error: cannot find symbol
===
/** Write a class Square whose constructor receives the length of the sides.
Then supply methods to compute the
area and perimeter of the square.
Also compute the length of the diagonal using the Pythagorean Theorem.
Use the following class as a template your tester class
*/
... | 3 |
6,731,092 | 07/18/2011 09:45:48 | 849,747 | 07/18/2011 09:45:48 | 1 | 0 | Samples for implementing KIF | Can you please upload some sample application and code to get started? This would really help in exploring and adding more to the on-going project. | ios | automation | null | null | null | 06/06/2012 12:38:48 | not constructive | Samples for implementing KIF
===
Can you please upload some sample application and code to get started? This would really help in exploring and adding more to the on-going project. | 4 |
1,083,739 | 07/05/2009 09:21:22 | 67,819 | 02/18/2009 12:31:40 | 454 | 64 | Windows API vs. UNIX shell (equiv?) -- Or -- When is a programming language a language and not a script? | I've seen a number of question's closed as "Not programming related" (e.g. http://stackoverflow.com/questions/397854/what-process-accesses-my-hdd)
I understand that their's several alternative site (stackoverflow) themed-forums and to attempt keep site question's to a minimum also some may argue that this is too sub... | unix | windows | compare | interface | null | 07/05/2009 13:49:59 | off topic | Windows API vs. UNIX shell (equiv?) -- Or -- When is a programming language a language and not a script?
===
I've seen a number of question's closed as "Not programming related" (e.g. http://stackoverflow.com/questions/397854/what-process-accesses-my-hdd)
I understand that their's several alternative site (stackov... | 2 |
6,068,505 | 05/20/2011 06:57:22 | 677,839 | 03/26/2011 08:25:10 | 1 | 0 | Advantages and disadvantages of using log4j | I have been told to use log4j for my logging project,but before using log4j, i wanted to know what all are its disadvantages, so that i can find some solution to do away with those disadvantages..Please help,its urgent. | java | log4j | null | null | null | 05/21/2011 14:12:28 | not constructive | Advantages and disadvantages of using log4j
===
I have been told to use log4j for my logging project,but before using log4j, i wanted to know what all are its disadvantages, so that i can find some solution to do away with those disadvantages..Please help,its urgent. | 4 |
7,843,741 | 10/21/2011 00:13:56 | 391,399 | 07/14/2010 09:37:37 | 450 | 11 | R: abbrivations and functions in preperation of programming contest |
I am participating in a big programming competition tomorrow where I use R.
Time is the main factor (only 2 hours for 7 coding problems).
The problems are very mathematics related.
1)
I would like to write "f" instead of "function" when I define a function.
This can be done and I had the code to do so, but ... | r | null | null | null | null | 10/21/2011 09:10:08 | not constructive | R: abbrivations and functions in preperation of programming contest
===
I am participating in a big programming competition tomorrow where I use R.
Time is the main factor (only 2 hours for 7 coding problems).
The problems are very mathematics related.
1)
I would like to write "f" instead of "function" when... | 4 |
8,071,360 | 11/09/2011 20:40:19 | 1,026,213 | 11/02/2011 18:00:14 | 15 | 0 | Compilers in brand new operating systems? | If I were to write a new operating system, clearly I would need a compiler that would run on that system. How would you go about writing that compiler, as you have no compiler already on that operating system. Just for clarity hear is a condensed view of the scenario:
- Frank writes an OS, which he then compiles an... | language-agnostic | compiler | operating-system | null | null | 11/10/2011 19:49:37 | off topic | Compilers in brand new operating systems?
===
If I were to write a new operating system, clearly I would need a compiler that would run on that system. How would you go about writing that compiler, as you have no compiler already on that operating system. Just for clarity hear is a condensed view of the scenario:
... | 2 |
3,135,947 | 06/28/2010 20:37:31 | 334,807 | 05/06/2010 20:03:53 | 511 | 52 | Access own bank account via self-written application | as I can imagine, this is a quite big topic. Let me explain: I have used MS Money for several years now and due to my "coding interest" it would be great to know where to start learning the basics for programming such an application. Better to say: Its not about how to design and write an application, its about the "ba... | java | c++ | security | onlinebanking | null | null | open | Access own bank account via self-written application
===
as I can imagine, this is a quite big topic. Let me explain: I have used MS Money for several years now and due to my "coding interest" it would be great to know where to start learning the basics for programming such an application. Better to say: Its not about... | 0 |
9,714,601 | 03/15/2012 05:47:21 | 840,090 | 07/12/2011 05:34:16 | 304 | 6 | android - How to handle the json exception | In my app i am parsing the web service response using the json. But i got the following exception. how to handle this?
Code for parsing the response
com.google.gson.Gson gson = new com.google.gson.Gson();
RB_Constant.upcomingexits_obj = gson.fromJson(upcomingeExitsResponse, UpcomingExits.class);
**Exc... | android | json | null | null | null | null | open | android - How to handle the json exception
===
In my app i am parsing the web service response using the json. But i got the following exception. how to handle this?
Code for parsing the response
com.google.gson.Gson gson = new com.google.gson.Gson();
RB_Constant.upcomingexits_obj = gson.fromJson(upcomin... | 0 |
2,632,383 | 04/13/2010 19:00:46 | 89,484 | 04/10/2009 14:56:01 | 198 | 11 | What is the JScript version that's in IE9? | Title says it all.
I want this for some [conditional compilation][1] code that will run in all IE's less than IE9.
[1]: http://msdn.microsoft.com/en-us/library/7kx09ct1(VS.80).aspx | javascript | chakra | null | null | null | null | open | What is the JScript version that's in IE9?
===
Title says it all.
I want this for some [conditional compilation][1] code that will run in all IE's less than IE9.
[1]: http://msdn.microsoft.com/en-us/library/7kx09ct1(VS.80).aspx | 0 |
3,652,802 | 09/06/2010 16:04:40 | 361,635 | 06/08/2010 17:17:07 | 235 | 1 | PHP Coding and timing | Could a news system with admin panel made only in 2 hours?
1- admin panel html and css
2- news database (title, descriptipn, text - no image)
3- add news
4- edit news
5- delete news
6- fetch news
Thanks in advance | php | null | null | null | null | 09/06/2010 17:51:46 | off topic | PHP Coding and timing
===
Could a news system with admin panel made only in 2 hours?
1- admin panel html and css
2- news database (title, descriptipn, text - no image)
3- add news
4- edit news
5- delete news
6- fetch news
Thanks in advance | 2 |
8,283,561 | 11/27/2011 04:01:08 | 1,020,785 | 10/30/2011 14:57:40 | 48 | 4 | Questions about assembly | I have programmed in 16-bit assembly for a while now. I now am in need of a few tutorials, and answers to questions:
1) I am in need a tutorial to use the other registers (IP, BP, SP, SI, DI, etc.).
2) I am in need a tutorial to program in 32-bit assembly.
3) I also just switched to Ubuntu 11.10, and n... | ubuntu | assembly | null | null | null | null | open | Questions about assembly
===
I have programmed in 16-bit assembly for a while now. I now am in need of a few tutorials, and answers to questions:
1) I am in need a tutorial to use the other registers (IP, BP, SP, SI, DI, etc.).
2) I am in need a tutorial to program in 32-bit assembly.
3) I also just s... | 0 |
8,496,586 | 12/13/2011 21:42:28 | 549,372 | 12/21/2010 01:04:27 | 60 | 21 | What exactly is the point of the GeoLocation API - why there's no direct access to GPS fix (coarse/fine location)? | To me it just makes no sense, that an App can access a device's GPS fix directly,
while a JavaScript has to use that not very exact HTML5 Geo-Location API, which is just a web-service.
I've just tried - not even even setting { enableHighAccuracy:true } returns the concrete GPS fix.
I mean, *privacy* can't be any... | javascript | html5 | mobile | geolocation | gps | 12/15/2011 03:41:00 | not constructive | What exactly is the point of the GeoLocation API - why there's no direct access to GPS fix (coarse/fine location)?
===
To me it just makes no sense, that an App can access a device's GPS fix directly,
while a JavaScript has to use that not very exact HTML5 Geo-Location API, which is just a web-service.
I've just t... | 4 |
6,132,367 | 05/26/2011 00:05:33 | 168,143 | 09/03/2009 20:31:24 | 1,186 | 45 | How can I have an rcov task know if a subtask failed? | I have this task:
task :all => ['foo', 'bar', 'announce_success']
If `foo` and `bar` don't raise exceptions, then `announce_success` happens. How can I have a particular task or code block execute if they _do_ raise exceptions? | ruby | rake | null | null | null | null | open | How can I have an rcov task know if a subtask failed?
===
I have this task:
task :all => ['foo', 'bar', 'announce_success']
If `foo` and `bar` don't raise exceptions, then `announce_success` happens. How can I have a particular task or code block execute if they _do_ raise exceptions? | 0 |
8,510,613 | 12/14/2011 19:40:17 | 450,456 | 09/17/2010 09:47:09 | 521 | 4 | How do I hash / un-hash a datafile? | How do I hash / un-hash a datafile. It's going to be a sqlite database. | iphone | objective-c | ios | cocoa-touch | null | null | open | How do I hash / un-hash a datafile?
===
How do I hash / un-hash a datafile. It's going to be a sqlite database. | 0 |
5,353,502 | 03/18/2011 14:37:00 | 598,717 | 02/01/2011 16:20:07 | 82 | 7 | Dojo - click method and selectors | Tell me, please, how shall I rewrite such script in jQery with Dojo?
<pre>
$('table > tbody > tr').click(function(){
alert('clicked');
});
</pre> | dojo | null | null | null | null | null | open | Dojo - click method and selectors
===
Tell me, please, how shall I rewrite such script in jQery with Dojo?
<pre>
$('table > tbody > tr').click(function(){
alert('clicked');
});
</pre> | 0 |
6,503,958 | 06/28/2011 08:53:25 | 812,331 | 06/23/2011 13:44:53 | 14 | 0 | merge two linked list into a single list | typedef struct node
{
int info;
struct node *NEXT;
}*NODE;
NODE insert_front(int item, NODE first)
{
NODE temp;
temp = ( struct node *) malloc( sizeof (struct node*));
temp -> info = item;
temp -> NEXT = first;
return temp;
}
void display(NODE f... | c | null | null | null | null | 06/28/2011 12:27:36 | not a real question | merge two linked list into a single list
===
typedef struct node
{
int info;
struct node *NEXT;
}*NODE;
NODE insert_front(int item, NODE first)
{
NODE temp;
temp = ( struct node *) malloc( sizeof (struct node*));
temp -> info = item;
temp -> NEXT = first;
... | 1 |
10,648,264 | 05/18/2012 07:13:45 | 1,244,458 | 03/02/2012 06:34:22 | 1 | 0 | Makeing WC3 Map with world editor H,e,,l,p | **Okay so I am currently in progress of creating a Warcraft 3 TFT custom map**
And I am makeing a game that you have a "Basic Worker" that can 'Build TOWERS' to attacks creeps
Spawning right..?
Well I dont know if this matters.
But my tower is a unit, I've got the unit acting as a building.
Now I need to ... | world-of-warcraft | null | null | null | null | 05/18/2012 12:50:54 | off topic | Makeing WC3 Map with world editor H,e,,l,p
===
**Okay so I am currently in progress of creating a Warcraft 3 TFT custom map**
And I am makeing a game that you have a "Basic Worker" that can 'Build TOWERS' to attacks creeps
Spawning right..?
Well I dont know if this matters.
But my tower is a unit, I've go... | 2 |
8,281,010 | 11/26/2011 19:32:03 | 310,139 | 04/06/2010 15:00:31 | 286 | 17 | Supervisord does not appear in my process list |
I recently set up Supervisord on Ubuntu Natty to daemonize some gearman workers.
I used an init script from [here][1].
When I start the supervisord using something like this `/etc/init.d/supervisord`, it don't see 'supervisor' or similar in my process list i.e. `lsof -i` shows no process with the name 'supervis... | ubuntu | supervisord | null | null | null | 11/29/2011 18:42:37 | off topic | Supervisord does not appear in my process list
===
I recently set up Supervisord on Ubuntu Natty to daemonize some gearman workers.
I used an init script from [here][1].
When I start the supervisord using something like this `/etc/init.d/supervisord`, it don't see 'supervisor' or similar in my process list i.e... | 2 |
6,374,987 | 06/16/2011 16:06:36 | 750,511 | 05/12/2011 12:05:37 | 163 | 0 | Violation of OO Guiding Principle | It is said that the following code violates the OO Guiding Principle.
public class Main {
public static String NAME = "James";
public Main() {
System.out.println("Name is: "+NAME);
}
}
public class AnotherMain() {
public AnotherMain() {
System.o... | java | oop | null | null | null | null | open | Violation of OO Guiding Principle
===
It is said that the following code violates the OO Guiding Principle.
public class Main {
public static String NAME = "James";
public Main() {
System.out.println("Name is: "+NAME);
}
}
public class AnotherMain() {
pub... | 0 |
439,115 | 01/13/2009 14:26:49 | 6,950 | 09/15/2008 12:53:39 | 91 | 5 | random Decimal in python | How can I get a random decimal.Decimal? it appears that the random module only returns floats which are a pita to convert to Decimals. | python | random | null | null | null | null | open | random Decimal in python
===
How can I get a random decimal.Decimal? it appears that the random module only returns floats which are a pita to convert to Decimals. | 0 |
8,455,830 | 12/10/2011 10:23:10 | 606,482 | 02/07/2011 13:23:56 | 35 | 0 | linking between two modules with setup.py | I have recently [exposed a problem](http://stackoverflow.com/questions/8443652/dependencies-between-compiled-modules-in-python) when working with several compiled C++ modules and would like to rephrase the question.
I have two modules 'mod1' and 'mod2'. They are compiled as two distinct 'ext_modules' in my setup.py,... | python | boost-python | bjam | null | null | null | open | linking between two modules with setup.py
===
I have recently [exposed a problem](http://stackoverflow.com/questions/8443652/dependencies-between-compiled-modules-in-python) when working with several compiled C++ modules and would like to rephrase the question.
I have two modules 'mod1' and 'mod2'. They are compile... | 0 |
6,585,362 | 07/05/2011 15:41:22 | 379,779 | 06/30/2010 07:45:54 | 861 | 97 | Loading the data and process them programmatically is faster than SQL queries ? | Is it true that loading the data and process them programmatically is faster than SQL queries ? I am supposed to optimized the legacy applications which are running slow because of the growing size of data. Any kind help is appreciated. | java | database | null | null | null | 11/11/2011 09:34:55 | not a real question | Loading the data and process them programmatically is faster than SQL queries ?
===
Is it true that loading the data and process them programmatically is faster than SQL queries ? I am supposed to optimized the legacy applications which are running slow because of the growing size of data. Any kind help is appreciated... | 1 |
6,873,184 | 07/29/2011 12:36:40 | 869,373 | 07/29/2011 12:36:40 | 1 | 0 | the lenght of list is five but i wanna length of list 150 pls tell me with example how i can do it | static final ArrayList<HashMap<String,String>> arraylistobject = new ArrayList<HashMap<String,String>>();
private void populateList() {
HashMap<String,String> temp = new HashMap<String,String>();
temp.put("pen","MONT Blanc");
temp.put("price", "200 rs");
arraylistobject.add(temp);
HashMap<String,String... | android | null | null | null | null | 12/20/2011 16:15:47 | not a real question | the lenght of list is five but i wanna length of list 150 pls tell me with example how i can do it
===
static final ArrayList<HashMap<String,String>> arraylistobject = new ArrayList<HashMap<String,String>>();
private void populateList() {
HashMap<String,String> temp = new HashMap<String,String>();
temp.put("pe... | 1 |
11,505,151 | 07/16/2012 13:16:23 | 1,338,166 | 04/17/2012 08:07:53 | 1 | 0 | Wanted tutorial regarding thrift api for Hbase | Can anyone post how to use thrift API for communicating hbase client...
Thanks in advance | c++ | null | null | null | null | 07/16/2012 19:27:16 | not a real question | Wanted tutorial regarding thrift api for Hbase
===
Can anyone post how to use thrift API for communicating hbase client...
Thanks in advance | 1 |
2,493,906 | 03/22/2010 16:23:40 | 207,658 | 11/10/2009 09:49:51 | 6 | 0 | Best way of implementing a batch like operation in a RESTful architecture? | We have a predominantly RESTful architecture for our product. This enables us to nicely implement almost all of the required functionality, except this new requirement thats come in.
I need to implement a page which lets the user to large scale DB operations synchronously. They can stop the operation in between, if ... | rest | batch | operation | null | null | null | open | Best way of implementing a batch like operation in a RESTful architecture?
===
We have a predominantly RESTful architecture for our product. This enables us to nicely implement almost all of the required functionality, except this new requirement thats come in.
I need to implement a page which lets the user to larg... | 0 |
8,573,270 | 12/20/2011 09:28:40 | 919,516 | 08/30/2011 10:36:36 | 26 | 0 | Can we launch the android application every time we open it in the mobile | When I closed my app and re-opened it in the mobile,it is opening with the same page which I closed with. But my requirement is that, when I close my app and re-open it ,it should start from the beginning(launched) instead of starting from where I closed it.
Please help me solve this..
| android | null | null | null | null | 12/20/2011 15:40:56 | not a real question | Can we launch the android application every time we open it in the mobile
===
When I closed my app and re-opened it in the mobile,it is opening with the same page which I closed with. But my requirement is that, when I close my app and re-open it ,it should start from the beginning(launched) instead of starting from w... | 1 |
7,754,635 | 10/13/2011 13:10:39 | 993,516 | 10/13/2011 13:07:17 | 1 | 0 | The left joins making query slow,is there any method to increase the speed of this query | $sql = "select b.entry_id,b.assign_id,a.profile_type,a.profile_id,a.profile_name,a.profile_status, b.entry_type,b.assign_id,c.chapter_name,d.section_name,h.group_name,i.programme_name,k.subjectprogramme_name,j.masterprogramme_name,l.developmentprogramme_name from
profile_master a
left join profile_assig... | mysql | null | null | null | null | null | open | The left joins making query slow,is there any method to increase the speed of this query
===
$sql = "select b.entry_id,b.assign_id,a.profile_type,a.profile_id,a.profile_name,a.profile_status, b.entry_type,b.assign_id,c.chapter_name,d.section_name,h.group_name,i.programme_name,k.subjectprogramme_name,j.masterprogramme_... | 0 |
3,630,816 | 09/02/2010 20:09:48 | 202,968 | 11/04/2009 21:23:58 | 40 | 5 | UISlider to represent the color spectrum | I have a UISlider that is supposed to update the color of a textlabel. Now I want the user to be able to choose between all colors in the spectrum (sort of all anyway). I was thinking of using this UISlider to represent the colors and when dragging the slider the value/color changes.
I know the spectrum is not seque... | iphone | objective-c | rgb | uislider | uicolor | null | open | UISlider to represent the color spectrum
===
I have a UISlider that is supposed to update the color of a textlabel. Now I want the user to be able to choose between all colors in the spectrum (sort of all anyway). I was thinking of using this UISlider to represent the colors and when dragging the slider the value/colo... | 0 |
11,727,908 | 07/30/2012 19:02:37 | 1,390,118 | 05/11/2012 18:49:24 | 3 | 0 | How does this pi-generating algorithm work? | I used this algorithm for a program but I'm not quite sure how it works. I would assume its an implementation of an infinite series approximation. Here is the code in C. The function takes a buffer and a number of digits to return:
#ifndef _PI_H
#define _PI_H
#define SCALE 10000
#... | c | algorithm | function | pi | infinite-sequence | 07/30/2012 19:10:56 | not a real question | How does this pi-generating algorithm work?
===
I used this algorithm for a program but I'm not quite sure how it works. I would assume its an implementation of an infinite series approximation. Here is the code in C. The function takes a buffer and a number of digits to return:
#ifndef _PI_H
#def... | 1 |
444,752 | 01/14/2009 21:25:19 | 17,176 | 09/18/2008 03:45:41 | 1,212 | 68 | Yearly Developer Review | What criteria do you rate your developers on when doing their yearly reviews? We are looking to improve our process more than "we feel you did a good job, here is a raise!"
We were thinking something like:
1. Attendance
2. Teamwork
3. Quality of Work
We are a .NET / C# shop if that helps. | c# | .net | null | null | null | 04/09/2012 17:47:07 | not constructive | Yearly Developer Review
===
What criteria do you rate your developers on when doing their yearly reviews? We are looking to improve our process more than "we feel you did a good job, here is a raise!"
We were thinking something like:
1. Attendance
2. Teamwork
3. Quality of Work
We are a .NET / C# shop if t... | 4 |
7,043,051 | 08/12/2011 16:10:31 | 348,673 | 05/24/2010 05:18:07 | 18 | 0 | Hosted SVN Services | I currently am hosting my own SVN on my home server in one main repo for all my random personal projects, but will be moving away from it soon. The problem is I can not really take the server with me, and I don’t want to deal with connecting remotely.
Are there any suggestions for online SVN hosters? I'd like it to... | svn | hosted | null | null | null | null | open | Hosted SVN Services
===
I currently am hosting my own SVN on my home server in one main repo for all my random personal projects, but will be moving away from it soon. The problem is I can not really take the server with me, and I don’t want to deal with connecting remotely.
Are there any suggestions for online SVN... | 0 |
6,650,236 | 07/11/2011 12:42:52 | 335,597 | 05/07/2010 15:37:44 | 18 | 0 | Two separate "if"'s, same condition -- is it OK? | Which of the two, do you think, is better?
if (the_condition)
variable = sth;
else
variable = sth_else;
if (the_condition)
variable_2 = sth_different;
else
variable_2 = sth_even_more_different;
or
if (the_condition)
{
variable = sth;
... | c++ | syntax | null | null | null | 07/11/2011 15:52:49 | not constructive | Two separate "if"'s, same condition -- is it OK?
===
Which of the two, do you think, is better?
if (the_condition)
variable = sth;
else
variable = sth_else;
if (the_condition)
variable_2 = sth_different;
else
variable_2 = sth_even_more_different;
or
... | 4 |
11,630,242 | 07/24/2012 11:49:46 | 598,500 | 02/01/2011 14:10:15 | 2,717 | 212 | PHP best practice: getRecords() accepting one concrete id or getRecordById()? | Since I was a part of discussion whether or what is the best practice I would like to also ask You, of course:
Consider having DAO class manipulating with object(s).
What is the best approach:
1. To have one getRecords() method accepting many parameters (for paging, sorting and filtering) including the ID parame... | php | dao | null | null | null | 07/26/2012 07:50:15 | not constructive | PHP best practice: getRecords() accepting one concrete id or getRecordById()?
===
Since I was a part of discussion whether or what is the best practice I would like to also ask You, of course:
Consider having DAO class manipulating with object(s).
What is the best approach:
1. To have one getRecords() method ac... | 4 |
10,018,339 | 04/04/2012 19:56:25 | 1,167,022 | 01/24/2012 12:48:27 | 8 | 0 | Get paid to like on facebook legal or illegal? (.. and Google+ ?) | Just checking it for my GPT site,
Is it LEGAL to get pay my users for liking my page on Facebook?
And the same for google+ (Pay my users for pushing the google+ button)?
I searched like whole Facebook / Google to find the guidelines and check this, but i haven't found something.
Thnx! | facebook | facebook-like | legal | google-plus | illegal | 04/04/2012 20:22:42 | off topic | Get paid to like on facebook legal or illegal? (.. and Google+ ?)
===
Just checking it for my GPT site,
Is it LEGAL to get pay my users for liking my page on Facebook?
And the same for google+ (Pay my users for pushing the google+ button)?
I searched like whole Facebook / Google to find the guidelines and check t... | 2 |
11,205,877 | 06/26/2012 10:59:06 | 627,730 | 02/22/2011 04:58:24 | 122 | 14 | Is cocos2d-x a good development platform for games? | I have just learnt cocos2d, but i am not an expert on it. But a friend told me to learn cocos2d-x. Should i prefer cocos2d-x on cocos2d? I have heard the technologies which are used multiplatforms developments are not as good as the native's. Can someone help in this regard? Any input will be appreciated. | ios | cocos2d-iphone | cocos2d-x | null | null | 06/26/2012 12:29:07 | not constructive | Is cocos2d-x a good development platform for games?
===
I have just learnt cocos2d, but i am not an expert on it. But a friend told me to learn cocos2d-x. Should i prefer cocos2d-x on cocos2d? I have heard the technologies which are used multiplatforms developments are not as good as the native's. Can someone help in ... | 4 |
5,392,329 | 03/22/2011 13:51:25 | 356,790 | 06/02/2010 18:59:59 | 487 | 14 | When was the first version of Hadoop released? | When was the first version of Hadoop released to the public? Any supporting links? | hadoop | null | null | null | null | 01/19/2012 04:14:59 | too localized | When was the first version of Hadoop released?
===
When was the first version of Hadoop released to the public? Any supporting links? | 3 |
2,244,172 | 02/11/2010 11:50:26 | 164,216 | 08/27/2009 13:26:42 | 409 | 6 | Declare at start, or as you go? | I would say this is pretty much a style / readability thing, although I do see nearly all objective-c/cocoa formatted as per "METHOD_002". I am just curious if "METHOD_001" would be considered bad style, there are advantages to having all the declarations at the top of a method, but then again there are disadvantages i... | objective-c | cocoa-touch | null | null | null | null | open | Declare at start, or as you go?
===
I would say this is pretty much a style / readability thing, although I do see nearly all objective-c/cocoa formatted as per "METHOD_002". I am just curious if "METHOD_001" would be considered bad style, there are advantages to having all the declarations at the top of a method, but... | 0 |
8,596,182 | 12/21/2011 20:52:40 | 766,719 | 05/23/2011 21:07:51 | 18 | 1 | alternative to cdi, seam 3, and primefaces 3 | I've been developing jsf applications for quite some time. And some 3 or 4 years ago I discovered seam 2 and it was great. Now I decided to try jsf 2 + cdi + seam 3 + primefaces 3 (I know this version is not final yet) and had so many problems along the way, that I am looking for alternatives.
So, if someone can poi... | jsf-2.0 | primefaces | cdi | seam3 | null | 12/28/2011 14:19:50 | not constructive | alternative to cdi, seam 3, and primefaces 3
===
I've been developing jsf applications for quite some time. And some 3 or 4 years ago I discovered seam 2 and it was great. Now I decided to try jsf 2 + cdi + seam 3 + primefaces 3 (I know this version is not final yet) and had so many problems along the way, that I am l... | 4 |
3,921,894 | 10/13/2010 08:25:25 | 210,398 | 11/13/2009 11:59:44 | 395 | 21 | Recommended books for learning DTrace | Since the last question similar to this one is from 2008, I thought I'd ask it anyway to see what's new since then.
I'm looking for books or other resources (though I prefer epubs for reading them on the go) for learning how to use DTrace, preferably but not necessarily for Cocoa, ruby or node.js development. | ruby | cocoa | books | node.js | dtrace | 09/26/2011 13:43:06 | not constructive | Recommended books for learning DTrace
===
Since the last question similar to this one is from 2008, I thought I'd ask it anyway to see what's new since then.
I'm looking for books or other resources (though I prefer epubs for reading them on the go) for learning how to use DTrace, preferably but not necessarily for... | 4 |
712,505 | 04/03/2009 04:01:27 | 44,533 | 12/09/2008 08:29:02 | 72 | 1 | Help! recovery file | i'm using eclipse, when i close eclipse, it ask me save a file, i press yes and eclipse shut down, when i open my computer i see that driver only have 3 bytes left, bad feeling, i go to my file and oh my god, it totally blank, size is 0 byte :(, i need that file back, i need free recovery program can work on this case
... | recovery | null | null | null | null | 04/03/2009 04:53:28 | off topic | Help! recovery file
===
i'm using eclipse, when i close eclipse, it ask me save a file, i press yes and eclipse shut down, when i open my computer i see that driver only have 3 bytes left, bad feeling, i go to my file and oh my god, it totally blank, size is 0 byte :(, i need that file back, i need free recovery progr... | 2 |
11,471,267 | 07/13/2012 13:15:42 | 991,292 | 10/12/2011 11:02:42 | 21 | 2 | c# variable name with a white space | I want to have a variable name with a white space.
Am passing this collection to a gridview and i need the title to have a white space instead of an underscore
var registrationReport = (from r in BankMedEntity.Customers
select new {r.Id,Customer Type = r.CustomerType_Id });
Any id... | c# | asp.net | linq | gridview | null | 07/16/2012 12:29:15 | not a real question | c# variable name with a white space
===
I want to have a variable name with a white space.
Am passing this collection to a gridview and i need the title to have a white space instead of an underscore
var registrationReport = (from r in BankMedEntity.Customers
select new {r.Id,Custome... | 1 |
2,075,126 | 01/15/2010 22:14:32 | 175,142 | 09/17/2009 18:43:57 | 70 | 4 | IntelliJ IDEA: regex for removing Oracle to_timestamp syntax. | I'm trying to come up with a search/replace expression that will convert from Oracle style inserts with timestamp fields to insert statements for another database.
Basically, I want to convert strings like:
to_timestamp('13-SEP-09 12.00.00.000000000 PM','DD-MON-RR HH.MI.SS.FF AM')
to just:
'13-SEP-0... | regex | intellij-idea | null | null | null | null | open | IntelliJ IDEA: regex for removing Oracle to_timestamp syntax.
===
I'm trying to come up with a search/replace expression that will convert from Oracle style inserts with timestamp fields to insert statements for another database.
Basically, I want to convert strings like:
to_timestamp('13-SEP-09 12.00.00.000... | 0 |
7,512,560 | 09/22/2011 09:31:03 | 946,516 | 09/15/2011 09:59:26 | 1 | 0 | Android ScreenOrientation changes | I am new to android Game, Restart the game when ScreenOrientation is change.is it possible? if yes, How?. Please tellme.
Thanks. | android | null | null | null | null | 09/22/2011 12:05:11 | not a real question | Android ScreenOrientation changes
===
I am new to android Game, Restart the game when ScreenOrientation is change.is it possible? if yes, How?. Please tellme.
Thanks. | 1 |
2,782,784 | 05/06/2010 16:40:45 | 356 | 08/05/2008 01:13:09 | 5,080 | 170 | .NET 2d library for circuit diagrams | I want to draw and manipulate logic flow (as opposed to analog) circuit diagrams and I'm trying not to reinvent the wheel.
Problems like positioning, line drawing, line crossing and connecting, path finding, rubberband lines, and drag & drop are also identical in flow charts, UML diagrams, or class diagrams so I sta... | .net | circuit | null | null | null | null | open | .NET 2d library for circuit diagrams
===
I want to draw and manipulate logic flow (as opposed to analog) circuit diagrams and I'm trying not to reinvent the wheel.
Problems like positioning, line drawing, line crossing and connecting, path finding, rubberband lines, and drag & drop are also identical in flow charts... | 0 |
8,096,319 | 11/11/2011 15:37:47 | 1,041,965 | 11/11/2011 15:28:34 | 1 | 0 | advice needed! Student record system in java | Hello I need to build a student record system in java that doesn't relying on a database to achieve the record keeping. The system must allow for the creation, deletion and editing I would like advice on how to best attempt this program. I would also like advice which would be easier graphical or text based with this s... | java | homework | system | record | null | 11/11/2011 16:50:32 | not constructive | advice needed! Student record system in java
===
Hello I need to build a student record system in java that doesn't relying on a database to achieve the record keeping. The system must allow for the creation, deletion and editing I would like advice on how to best attempt this program. I would also like advice which w... | 4 |
2,523,865 | 03/26/2010 14:14:16 | 223,160 | 12/02/2009 19:09:51 | 15 | 1 | How can I read a IBM WebSphere MQ message of format type MQEVENT in c# | I can get the event messages from the queue. I get the message properties. I am pretty sure the MQEVENT type is in PCF format but I cannot seem to find any good documentation on how to take that message and convet it into human readable format.
AccountingToken
ApplicationIdData
ApplicationOriginData
Backout... | ibm-mq | websphere-mq | .net | c# | null | null | open | How can I read a IBM WebSphere MQ message of format type MQEVENT in c#
===
I can get the event messages from the queue. I get the message properties. I am pretty sure the MQEVENT type is in PCF format but I cannot seem to find any good documentation on how to take that message and convet it into human readable format.... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.