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,523,205 | 09/23/2011 01:05:39 | 401,226 | 07/24/2010 20:10:49 | 30 | 1 | python shelve ... bsddb deprecated ... how to get shelve to use another database? | I have an app developed in python 2.7.2 on OS X.
I use the module shelve and seems to default to bsddb on the mac.
The program won't run on a Windows 7 machine with ActiveState python 2.7 because the module bsddb is not present and is not in ActiveState's package manager (pypm). ActiveState's documentation says depre... | python | shelve | null | null | null | null | open | python shelve ... bsddb deprecated ... how to get shelve to use another database?
===
I have an app developed in python 2.7.2 on OS X.
I use the module shelve and seems to default to bsddb on the mac.
The program won't run on a Windows 7 machine with ActiveState python 2.7 because the module bsddb is not present and... | 0 |
5,149,791 | 03/01/2011 02:06:51 | 178,183 | 09/24/2009 01:04:36 | 129 | 43 | Confused over Letter | 2010-11-18 08:25:25Z to 2011-03-01 23:59:59Z
maximum of 90 days allowed
What does this mean? | confused | null | null | null | null | 03/01/2011 02:23:08 | off topic | Confused over Letter
===
2010-11-18 08:25:25Z to 2011-03-01 23:59:59Z
maximum of 90 days allowed
What does this mean? | 2 |
4,835,400 | 01/29/2011 05:47:01 | 575,620 | 01/14/2011 11:53:54 | 34 | 4 | Birch algorithm in c# | I am going to implement birch algorithm in c#.I need some useful tutorial to implement this algorithm. This tutorial include number of steps to implement birch algorithm. If you have sample code then send me.This is a clustering algorithm. | c# | null | null | null | null | 01/30/2011 00:52:50 | not a real question | Birch algorithm in c#
===
I am going to implement birch algorithm in c#.I need some useful tutorial to implement this algorithm. This tutorial include number of steps to implement birch algorithm. If you have sample code then send me.This is a clustering algorithm. | 1 |
6,171,210 | 05/29/2011 23:50:31 | 230,884 | 12/14/2009 00:02:19 | 423 | 7 | building python and more on missing modules | I have another thread asking help on "missing zlib". With the nice help the problem has been resolved (almost).
Now I am interested in building python myself (I am using Ubuntu 10.10)
A few important questions have caught my attention:
1. After building Python (say 2.7.1), do I need to rebuild Python if I hav... | python | ubuntu | null | null | null | null | open | building python and more on missing modules
===
I have another thread asking help on "missing zlib". With the nice help the problem has been resolved (almost).
Now I am interested in building python myself (I am using Ubuntu 10.10)
A few important questions have caught my attention:
1. After building Python ... | 0 |
9,746,874 | 03/17/2012 02:58:01 | 1,268,557 | 03/14/2012 09:10:02 | 1 | 0 | java.lang.ClassFormatError: Absent Code attribute in method | Iam getting the following excption .
The exception is as follows debug: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file jewelleryerpapplication/GUI/ERPMainMenu at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoade... | swing | java-ee | netbeans-7 | null | null | null | open | java.lang.ClassFormatError: Absent Code attribute in method
===
Iam getting the following excption .
The exception is as follows debug: java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file jewelleryerpapplication/GUI/ERPMainMenu at java.lang.ClassLoader.defineClas... | 0 |
6,852,237 | 07/27/2011 22:58:11 | 482,219 | 10/20/2010 20:05:41 | 370 | 1 | setBackgroundStyle on NSTextField with an Attributed String Value not working | OS X 10.7:
Whenever I try to `setBackgroundStyle:` on an `NSTextField`'s cell that has an Attributed String value, the background style is unmodified. If the `NSTextField` has just a String value, the background style setter works.
`[myTextField cell]` returns an object of type `NSTextFieldCell` in both cases, wh... | objective-c | cocoa | osx-lion | null | null | null | open | setBackgroundStyle on NSTextField with an Attributed String Value not working
===
OS X 10.7:
Whenever I try to `setBackgroundStyle:` on an `NSTextField`'s cell that has an Attributed String value, the background style is unmodified. If the `NSTextField` has just a String value, the background style setter works.
... | 0 |
1,673,183 | 11/04/2009 11:23:15 | 111,758 | 05/24/2009 13:30:00 | 25 | 0 | C++ Unicode Encryption Library Required (Or is it?) | I need to encryption several pieces of text in a file along side unencrypted text in the same file. All the data is Unicode text.
In all the encryption libraries I have looked at Crypto++ Botan Etc... None of them "appear" to provide Unicode aware methods for encrypting / decrypting data E.G. data can be passed in... | c++ | unicode | encryption | null | null | null | open | C++ Unicode Encryption Library Required (Or is it?)
===
I need to encryption several pieces of text in a file along side unencrypted text in the same file. All the data is Unicode text.
In all the encryption libraries I have looked at Crypto++ Botan Etc... None of them "appear" to provide Unicode aware methods fo... | 0 |
8,459,468 | 12/10/2011 20:03:55 | 1,031,312 | 11/05/2011 16:34:37 | 40 | 5 | Are Java classes a good replacement for an SQL relational database? | The reason I am asking this is because it seems (for me) a lot easier to set-up a file management system in Java than to set up a complicated relational database in SQL. What would having an SQL relational database benefit me over the following example:
Example: a Products file that allows variable pricing for the s... | java | sql | relational-database | null | null | 12/10/2011 20:56:46 | not constructive | Are Java classes a good replacement for an SQL relational database?
===
The reason I am asking this is because it seems (for me) a lot easier to set-up a file management system in Java than to set up a complicated relational database in SQL. What would having an SQL relational database benefit me over the following ex... | 4 |
2,122,585 | 01/23/2010 08:16:31 | 227,889 | 12/09/2009 10:54:53 | 133 | 7 | Google maps doesn't work on the HTC ? | I am developing application with Google Map.
I've tested on the emulator and saw error line In the log:
01-23 16:04:28.453: ERROR/MapActivity(733): Couldn't get connection factory client
But it worked fine on the emulator.
Then I've signed the application and created its .apk file. I've put it on the... | android | null | null | null | null | null | open | Google maps doesn't work on the HTC ?
===
I am developing application with Google Map.
I've tested on the emulator and saw error line In the log:
01-23 16:04:28.453: ERROR/MapActivity(733): Couldn't get connection factory client
But it worked fine on the emulator.
Then I've signed the application an... | 0 |
3,575,709 | 08/26/2010 13:48:59 | 125,857 | 06/19/2009 16:52:42 | 438 | 2 | How do entity self-tracking with change in VM and UI? | my context: Entity Framework 4.0 + WCF Ria Data Service + Silverlight 4.
Suppose I have entity People from EF, then I created PeopleVM like:
public class PeopleViewModel : ViewModelBase
{
public PeopleViewModel(){
//....
this._hasChanges = MyDomainContext.HasCha... | mvvm | silverlight-4.0 | entity-framework-4 | null | null | null | open | How do entity self-tracking with change in VM and UI?
===
my context: Entity Framework 4.0 + WCF Ria Data Service + Silverlight 4.
Suppose I have entity People from EF, then I created PeopleVM like:
public class PeopleViewModel : ViewModelBase
{
public PeopleViewModel(){
//...... | 0 |
10,553,227 | 05/11/2012 14:22:41 | 1,058,183 | 11/21/2011 16:22:20 | 90 | 2 | Storage of pseudo random bytes | I have a 128 bit pseudo random secure code which I generate with a PHP function but I can't work out what datatype it needs to be stored in a MySQL table.
Any ideas? | php | mysql | random | hash | null | null | open | Storage of pseudo random bytes
===
I have a 128 bit pseudo random secure code which I generate with a PHP function but I can't work out what datatype it needs to be stored in a MySQL table.
Any ideas? | 0 |
5,687,682 | 04/16/2011 15:55:58 | 507,220 | 11/14/2010 07:06:14 | 73 | 0 | help solving a programming-contest problem using python | I found this problem, which I thought would be interesting to solve but couldn't really come up with a correct solution-
> Inside a room, there is a monster with
> N heads, and a human (with 1 head).
> The human has two laser guns. The
> first gun, A destroys C1 heads when
> fired and the second gun,B destroys ... | python | programming-contest | null | null | null | 04/16/2011 18:28:07 | not a real question | help solving a programming-contest problem using python
===
I found this problem, which I thought would be interesting to solve but couldn't really come up with a correct solution-
> Inside a room, there is a monster with
> N heads, and a human (with 1 head).
> The human has two laser guns. The
> first gun, A d... | 1 |
9,423,767 | 02/24/2012 00:45:04 | 1,130,097 | 08/16/2008 14:58:30 | 1,589 | 70 | Documentation for IF_EX_IDOC_CREATION_CHECK | recently I've been working with SAP/ABAP and I'm checking an implementation of the interface 'IF_EX_IDOC_CREATION_CHECK' which has a method 'IDOC_DATA_CHECK' with 3 parameters;
1. IDOC_CONTROL type EDIDC
2. IDOC_DATA type EDIDD_TT
3. CREATE_IDOC type C
And my problem is that I can't find documentation in int... | sap | abap | null | null | null | null | open | Documentation for IF_EX_IDOC_CREATION_CHECK
===
recently I've been working with SAP/ABAP and I'm checking an implementation of the interface 'IF_EX_IDOC_CREATION_CHECK' which has a method 'IDOC_DATA_CHECK' with 3 parameters;
1. IDOC_CONTROL type EDIDC
2. IDOC_DATA type EDIDD_TT
3. CREATE_IDOC type C
And my ... | 0 |
6,154,124 | 05/27/2011 15:04:05 | 575,815 | 01/14/2011 15:02:05 | 1 | 0 | convertin a visio drawing in to XPDL | Can anybody please tell me how can I convert a Microsoft Visio diagram in to XPDL?I need to convert a BPMN diagram drawn in visio 2010 in to XPDL(Without using other services such as business process incubator).
Thank you. | visio | bpmn | null | null | null | 10/05/2011 21:22:49 | off topic | convertin a visio drawing in to XPDL
===
Can anybody please tell me how can I convert a Microsoft Visio diagram in to XPDL?I need to convert a BPMN diagram drawn in visio 2010 in to XPDL(Without using other services such as business process incubator).
Thank you. | 2 |
3,501,850 | 08/17/2010 11:25:37 | 175,399 | 09/18/2009 08:33:06 | 454 | 7 | How to save breakpoint in visual basic 6 | How can I save my breakpoints in Visual Basic 6?
Are there any add-ins? For now I have MZ-Tools, but unfortunately they don't save breakpoints. | vb6 | vb | breakpoints | null | null | null | open | How to save breakpoint in visual basic 6
===
How can I save my breakpoints in Visual Basic 6?
Are there any add-ins? For now I have MZ-Tools, but unfortunately they don't save breakpoints. | 0 |
8,454,477 | 12/10/2011 04:49:37 | 1,031,322 | 11/05/2011 16:44:07 | 140 | 0 | What's the use of Trace Class and Debug Class in C#? | I seem not to understand the concepts behind **Trace** and **Debug** Classes in **System.Diagnostic** package ! Can anybody briefly tell me what they all about ? I would appriciate if you include some examples! | c# | null | null | null | null | 12/10/2011 05:09:46 | not a real question | What's the use of Trace Class and Debug Class in C#?
===
I seem not to understand the concepts behind **Trace** and **Debug** Classes in **System.Diagnostic** package ! Can anybody briefly tell me what they all about ? I would appriciate if you include some examples! | 1 |
4,885,736 | 02/03/2011 11:48:09 | 22,837 | 09/26/2008 20:18:20 | 656 | 7 | Search with ASP.net and SQL Server 2008 | I'm about to embark on the ASP.net project which involves building a pretty powerful search function. The application is very database heavy. Essentially, organisations will be adding a lot of metadata about themselves in the form of multi-selects, free text boxes etc. which are all stored in SQL 2008.
When it comes... | asp.net | sql | search | null | null | null | open | Search with ASP.net and SQL Server 2008
===
I'm about to embark on the ASP.net project which involves building a pretty powerful search function. The application is very database heavy. Essentially, organisations will be adding a lot of metadata about themselves in the form of multi-selects, free text boxes etc. which... | 0 |
11,611,982 | 07/23/2012 11:52:01 | 1,545,750 | 07/23/2012 11:48:17 | 1 | 0 | TileMill with non map images | I'm building a web app that will use the tiling, zooming, marker and other functionality associated with map applications, however i dont need to use all this Geolocation and other stuff that TileMill requires as my application will be loading medical images not maps. Is it possible to import a custom image into TileMi... | image | html5 | custom-action | tile | null | null | open | TileMill with non map images
===
I'm building a web app that will use the tiling, zooming, marker and other functionality associated with map applications, however i dont need to use all this Geolocation and other stuff that TileMill requires as my application will be loading medical images not maps. Is it possible to... | 0 |
7,764,573 | 10/14/2011 07:46:52 | 878,528 | 08/04/2011 11:55:18 | 113 | 15 | Post different text on facebook and twitter using Android intents | I want to enable the user of my android app to post some data on fb,twitter and email it to someone as well. I am using Intent.ACTION_SEND for this. I can add the email subject and add test as Intent.EXTRA_TEXT. But I want different texts to be sent to dirrerent applications.
Like the text to be sent to twitter will b... | android | facebook | twitter | android-intent | null | null | open | Post different text on facebook and twitter using Android intents
===
I want to enable the user of my android app to post some data on fb,twitter and email it to someone as well. I am using Intent.ACTION_SEND for this. I can add the email subject and add test as Intent.EXTRA_TEXT. But I want different texts to be sent... | 0 |
8,896,878 | 01/17/2012 15:02:25 | 1,154,197 | 01/17/2012 14:59:25 | 1 | 0 | Google Analytics Overview as Javascript | I need a javascript which can show turnover for each day, but I would like it something like google analytics does for the overview. Where you can zoom, and choose from which date to which date.
Does anybody know if the is possible ?
Google does not seam to provide this in their Graf Tool Api | javascript | google | null | null | null | 01/18/2012 19:39:08 | not a real question | Google Analytics Overview as Javascript
===
I need a javascript which can show turnover for each day, but I would like it something like google analytics does for the overview. Where you can zoom, and choose from which date to which date.
Does anybody know if the is possible ?
Google does not seam to provide thi... | 1 |
11,049,849 | 06/15/2012 11:28:19 | 1,421,861 | 05/28/2012 13:58:35 | 1 | 3 | i am not getting any record in list view to see | I am using sugar crm 6.4. I have created a cusom module.In that module,i added one relate field.When i am adding this relate field to list view layout,I am not getting any records to see but records are saving in the database.When i am removing that relate field from list view layout,I am getting records without any pr... | sugarcrm | null | null | null | null | 06/15/2012 18:09:48 | not a real question | i am not getting any record in list view to see
===
I am using sugar crm 6.4. I have created a cusom module.In that module,i added one relate field.When i am adding this relate field to list view layout,I am not getting any records to see but records are saving in the database.When i am removing that relate field from... | 1 |
7,690,317 | 10/07/2011 16:46:31 | 763,518 | 05/20/2011 23:28:51 | 51 | 0 | Can't Push Commits to Central Repository | I have done everything that the youtube tutorial shows to do at http://www.youtube.com/watch?v=JByfXdbVAiE . Everytime that I go to push to origin the process hangs and will eventually fail.
The output that I am getting is this:
c:\Program Files (x86)\Git\bin\git.exe push "origin" master:master
(Then it hangs... | git | git-extensions | null | null | null | null | open | Can't Push Commits to Central Repository
===
I have done everything that the youtube tutorial shows to do at http://www.youtube.com/watch?v=JByfXdbVAiE . Everytime that I go to push to origin the process hangs and will eventually fail.
The output that I am getting is this:
c:\Program Files (x86)\Git\bin\git.e... | 0 |
6,114,948 | 05/24/2011 18:15:11 | 768,287 | 05/24/2011 18:15:11 | 1 | 0 | Variable 'name' in a django template form | I have the following template, which has both an "add" and "delete" button:
<tr>
<td>Position</td>
<td>{{ form.position }}<input type="submit" value="add" , name='add'/></td>
</tr>
<tr>
<td> </td>
<td>
{% for position in positions %}
{{ position}}<input type=... | forms | django-templates | django-views | null | null | null | open | Variable 'name' in a django template form
===
I have the following template, which has both an "add" and "delete" button:
<tr>
<td>Position</td>
<td>{{ form.position }}<input type="submit" value="add" , name='add'/></td>
</tr>
<tr>
<td> </td>
<td>
{% for positio... | 0 |
4,538,469 | 12/27/2010 11:52:48 | 554,913 | 12/27/2010 11:43:56 | 1 | 0 | Unable to get Three20 script working (ttmodule.py problem) | Forgive the newbie, but I have been searching for an answer for this for a week or so and starting to give up all hope.
I wanted to use the Three20 project to learn some more about iphone app dev.
I downloaded all the Three20 files via git and was using the script to place all the files in my latest project.
T... | iphone | null | null | null | null | null | open | Unable to get Three20 script working (ttmodule.py problem)
===
Forgive the newbie, but I have been searching for an answer for this for a week or so and starting to give up all hope.
I wanted to use the Three20 project to learn some more about iphone app dev.
I downloaded all the Three20 files via git and was us... | 0 |
7,089,315 | 08/17/2011 07:38:09 | 838,313 | 07/11/2011 06:17:10 | 83 | 2 | How can i perform below task? | 1) Write a script for the following case.
Sample Input Table
Id Data
1 A
1 A
1 A
1 A
2 B
2 B
3 C
3 C
3 C
... | sql-server-2008 | null | null | null | null | 08/17/2011 08:37:14 | not a real question | How can i perform below task?
===
1) Write a script for the following case.
Sample Input Table
Id Data
1 A
1 A
1 A
1 A
2 B
2 B
3 C
3 C... | 1 |
8,809,526 | 01/10/2012 19:43:56 | 458,370 | 09/25/2010 20:33:25 | 540 | 38 | Missing Link for Scala and simplifying JDBC | I'm trying to get hold of an article that is supposed to be at http://scala.sygneca.com/code/simplifying-jdbc, but for the last week that site has timed out and I can't find the link cached on Google either. Does anyone know where I could find a copy of that article?
Thanks,
Ant
| scala | null | null | null | null | 01/12/2012 03:30:24 | off topic | Missing Link for Scala and simplifying JDBC
===
I'm trying to get hold of an article that is supposed to be at http://scala.sygneca.com/code/simplifying-jdbc, but for the last week that site has timed out and I can't find the link cached on Google either. Does anyone know where I could find a copy of that article?
... | 2 |
7,712,775 | 10/10/2011 12:30:29 | 175,157 | 09/17/2009 19:07:02 | 13 | 2 | Passing an actual Type object to a T4 template / template host? | I have a question similar to this one [MVC T4 MvcTextTemplateHost and Customized “Controller” T4 Template](http://stackoverflow.com/questions/1128003/mvc-t4-mvctexttemplatehost-and-customized-controller-t4-template).
I want to customize the templates that MVC 3 uses and I want access to the Type objects and NOT the ... | asp.net-mvc | visual-studio | t4 | vsx | null | null | open | Passing an actual Type object to a T4 template / template host?
===
I have a question similar to this one [MVC T4 MvcTextTemplateHost and Customized “Controller” T4 Template](http://stackoverflow.com/questions/1128003/mvc-t4-mvctexttemplatehost-and-customized-controller-t4-template).
I want to customize the templat... | 0 |
5,997,371 | 05/13/2011 20:25:29 | 752,983 | 05/13/2011 20:25:29 | 1 | 0 | Is the title attribute for links required for 508 compliance? | Is the title attribute for links required for 508 compliance or does the text in the link suffice?
Thanks! | section508 | null | null | null | null | null | open | Is the title attribute for links required for 508 compliance?
===
Is the title attribute for links required for 508 compliance or does the text in the link suffice?
Thanks! | 0 |
8,761,973 | 01/06/2012 17:35:47 | 244,178 | 01/05/2010 19:03:17 | 186 | 2 | What are some good resources for Javascript Error handling | I recently ran into some issues this week on a web app that I built and I realized that I didn't have a good process in place for handling errors. What are some good resources on the subject? I'm talking links, books, videos, slides, whatever. | javascript | null | null | null | null | null | open | What are some good resources for Javascript Error handling
===
I recently ran into some issues this week on a web app that I built and I realized that I didn't have a good process in place for handling errors. What are some good resources on the subject? I'm talking links, books, videos, slides, whatever. | 0 |
10,582,872 | 05/14/2012 11:58:48 | 1,114,993 | 12/25/2011 01:20:16 | 40 | 3 | Create Web Editable Photo Album | I want to create a photo album for a web page I'm working on, now I do know how to make a gallery but my real problem is that I want to **include features as creating new album deleting it, upload new images to an album and also delete them**. That last part I have no idea how to do it. Delete and add pictures and al... | php | mysql | html | css | photos | 05/14/2012 12:42:37 | not a real question | Create Web Editable Photo Album
===
I want to create a photo album for a web page I'm working on, now I do know how to make a gallery but my real problem is that I want to **include features as creating new album deleting it, upload new images to an album and also delete them**. That last part I have no idea how to do... | 1 |
10,232,529 | 04/19/2012 16:27:46 | 1,305,259 | 03/31/2012 16:36:15 | 1 | 0 | Web Service in Java with apache axis2 | How to invoke web service operations or methods in java from browser? | java | web-services | apache | axis2 | null | 04/21/2012 09:59:42 | not a real question | Web Service in Java with apache axis2
===
How to invoke web service operations or methods in java from browser? | 1 |
3,314,871 | 07/23/2010 02:00:02 | 290,957 | 03/10/2010 21:32:05 | 266 | 0 | What's the font used at the top of google | I'm not sure if this is really the right site for this, but what's the font called that's used for the
Web Images Videos Maps News Books Gmail more
at the top of google, it's a pretty standard font I'm just wondering the exact name so I can use it in a photoshop psd.
Thanks | fonts | null | null | null | null | 07/23/2010 02:15:24 | off topic | What's the font used at the top of google
===
I'm not sure if this is really the right site for this, but what's the font called that's used for the
Web Images Videos Maps News Books Gmail more
at the top of google, it's a pretty standard font I'm just wondering the exact name so I can use it in a photoshop p... | 2 |
584,308 | 02/25/2009 00:36:50 | 66,282 | 02/13/2009 21:44:00 | 66 | 0 | What do $undefined and $end refer to in Ruby? | I used a backslash to continue a Ruby statement on the next line.
print abc \
+ def
I added a space after the backslash, because I like to blow things up, and, sure enough, I got an error:
unexpected $undefined, expecting $end
I assume $undefined is a global variable that means anything the compil... | ruby | undefined | ruby-on-rails | null | null | null | open | What do $undefined and $end refer to in Ruby?
===
I used a backslash to continue a Ruby statement on the next line.
print abc \
+ def
I added a space after the backslash, because I like to blow things up, and, sure enough, I got an error:
unexpected $undefined, expecting $end
I assume $undefined ... | 0 |
10,446,927 | 05/04/2012 10:19:32 | 123,927 | 06/16/2009 20:42:39 | 3,050 | 41 | jQuery plugin to position a popup next to a button? | There a multiple buttons, which should invoke the same popup/dropdown list. Is there a jQuery plugin, which would position a currently hidden element next to the clicked button, taking into account the screen limits (so that if the button is at the bottom of the page, the popup is above it)? | jquery | plugins | null | null | null | null | open | jQuery plugin to position a popup next to a button?
===
There a multiple buttons, which should invoke the same popup/dropdown list. Is there a jQuery plugin, which would position a currently hidden element next to the clicked button, taking into account the screen limits (so that if the button is at the bottom of the ... | 0 |
7,000,240 | 08/09/2011 17:25:44 | 187,677 | 10/10/2009 15:00:04 | 433 | 5 | How to define a recursive relation between an exception type and another type? | What is the best way to create an exception that contains a type it is thrown from in F#? The following does not work:
// this fails since HeaderInfo is not yet defined. Can't seem use the and-keyword
// on HeaderInfo
exception MissingHeader of string*HeaderInfo
type HeaderInfo =
{
... | exception | f# | null | null | null | null | open | How to define a recursive relation between an exception type and another type?
===
What is the best way to create an exception that contains a type it is thrown from in F#? The following does not work:
// this fails since HeaderInfo is not yet defined. Can't seem use the and-keyword
// on HeaderInfo
e... | 0 |
6,456,405 | 06/23/2011 15:15:20 | 812,492 | 06/23/2011 15:15:20 | 1 | 0 | Fetch records of a table as an array php mySQL | The query is:
How can I fetch the abbr from manualtab into an array. Code:
$connection = mysql_connect('localhost', 'root', '') or die ('Unable to connect!');
mysql_select_db('mydb') or die ('Unable to select database!');
$query = 'SELECT abbr FROM manualtab';
$result = mysql_query($query) ... | php | mysql | fetch | null | null | 06/23/2011 23:30:22 | not a real question | Fetch records of a table as an array php mySQL
===
The query is:
How can I fetch the abbr from manualtab into an array. Code:
$connection = mysql_connect('localhost', 'root', '') or die ('Unable to connect!');
mysql_select_db('mydb') or die ('Unable to select database!');
$query = 'SELECT abbr F... | 1 |
3,357,202 | 07/28/2010 20:26:16 | 356,519 | 06/02/2010 14:13:08 | 54 | 2 | passing dbi handlers between functions in perl | I'm having a weird issue where if I prepare a query handler in one subroutine and then pass the handler as an argument to another function, the handler doesn't execute correctly, but it does execute correctly if I use it within the same scope where it was declared.
This is pretty annoying as it's going to make my ... | perl | dbi | null | null | null | null | open | passing dbi handlers between functions in perl
===
I'm having a weird issue where if I prepare a query handler in one subroutine and then pass the handler as an argument to another function, the handler doesn't execute correctly, but it does execute correctly if I use it within the same scope where it was declared.
... | 0 |
7,613,227 | 09/30/2011 16:17:21 | 973,440 | 09/30/2011 16:10:10 | 1 | 0 | Java tutorial for acm programming contest | How to prepare for acm programming contest? I am interested in Java. Have any tutorial guide by which I can prepare myself for participate acm Programming Contest? Please advice me asap. | java | programming-contest | acm-icpc | null | null | 09/30/2011 16:28:46 | off topic | Java tutorial for acm programming contest
===
How to prepare for acm programming contest? I am interested in Java. Have any tutorial guide by which I can prepare myself for participate acm Programming Contest? Please advice me asap. | 2 |
5,483,594 | 03/30/2011 08:05:48 | 523,325 | 11/29/2010 00:43:42 | 123 | 2 | What is the most popular android in US? | What is the most popular android in US?
What is the most powerful android phone?
| phone | android | null | null | null | 03/30/2011 09:06:16 | off topic | What is the most popular android in US?
===
What is the most popular android in US?
What is the most powerful android phone?
| 2 |
8,983,586 | 01/24/2012 07:56:19 | 954,325 | 09/20/2011 08:33:01 | 111 | 0 | Control order of Mysql table with up/down buttons | Is there a script in Php where a user can administer a list from mysql, by clicking UP and DOWN arrow buttons. For example a list of items. they are ordered by a field called `order_id` .
Basically if a user user clicks the UP button it moves up one row in the list.
Any help would be appreciated
| php | mysql | database | query | null | 01/24/2012 13:19:32 | not a real question | Control order of Mysql table with up/down buttons
===
Is there a script in Php where a user can administer a list from mysql, by clicking UP and DOWN arrow buttons. For example a list of items. they are ordered by a field called `order_id` .
Basically if a user user clicks the UP button it moves up one row in the l... | 1 |
8,556,878 | 12/19/2011 03:41:58 | 765,484 | 05/23/2011 05:43:29 | 21 | 0 | Need help configuring/setting up something with git (new) | I have never worked with git before, and Im confused as to where to enter the "install the server" part to get this working..
http://addyosmani.com/blog/autosave-changes-chrome-dev-tools/
Details in steps would be very helpful! Thanks!! | git | null | null | null | null | 12/19/2011 17:42:59 | too localized | Need help configuring/setting up something with git (new)
===
I have never worked with git before, and Im confused as to where to enter the "install the server" part to get this working..
http://addyosmani.com/blog/autosave-changes-chrome-dev-tools/
Details in steps would be very helpful! Thanks!! | 3 |
11,322,879 | 07/04/2012 05:25:43 | 1,488,047 | 06/28/2012 09:15:03 | 1 | 0 | How to write partition manager in bash | I want to write a partition manager in bash, how can i detect total size,used size,free size separately and also want to know how can i format the HDD and repartitioned it again according my need.
thanks | linux | partition | info | hdd | null | 07/04/2012 08:53:47 | not a real question | How to write partition manager in bash
===
I want to write a partition manager in bash, how can i detect total size,used size,free size separately and also want to know how can i format the HDD and repartitioned it again according my need.
thanks | 1 |
6,714,644 | 07/16/2011 01:19:52 | 663,425 | 03/16/2011 23:14:21 | 14 | 0 | Audio editing objective c | I am looking to make a program that can do very simple audio manipulations on music files, such as changing the pitch and speed of the song. It will be made for mac os, and i have no idea where to start. | objective-c | osx | null | null | null | 07/16/2011 07:27:15 | not a real question | Audio editing objective c
===
I am looking to make a program that can do very simple audio manipulations on music files, such as changing the pitch and speed of the song. It will be made for mac os, and i have no idea where to start. | 1 |
9,082,717 | 01/31/2012 16:02:48 | 2,648 | 08/23/2008 22:40:47 | 27,852 | 719 | 404 error on page load | When [this page][1] loads, the following appears in Firebug:
NetworkError: 404 Not Found - http://summer-festivals.cloudfoundry.com/undefined
I've tracked down the error to the [JQuery plugin][2] that renders the carousel. If I remove this plugin and the code that calls it, the error disappears.
However, I... | javascript | jquery | http-status-code-404 | null | null | null | open | 404 error on page load
===
When [this page][1] loads, the following appears in Firebug:
NetworkError: 404 Not Found - http://summer-festivals.cloudfoundry.com/undefined
I've tracked down the error to the [JQuery plugin][2] that renders the carousel. If I remove this plugin and the code that calls it, the err... | 0 |
8,270,750 | 11/25/2011 14:50:45 | 707,598 | 04/14/2011 08:51:44 | 380 | 4 | What is the most maintained newest framework in .NET for writing acceptance tests? | I am practicing TDD for some time now, I want to advance my skills and start doing ATDD,
I read about frameworks for ruby and java but didn't hear much about .NET
What is the most maintained newest framework in .NET for writing acceptance tests? | .net | unit-testing | selenium | tdd | acceptance-testing | 11/26/2011 03:04:15 | not constructive | What is the most maintained newest framework in .NET for writing acceptance tests?
===
I am practicing TDD for some time now, I want to advance my skills and start doing ATDD,
I read about frameworks for ruby and java but didn't hear much about .NET
What is the most maintained newest framework in .NET for writing ... | 4 |
118,261 | 09/22/2008 23:45:00 | 9,198 | 09/15/2008 18:01:45 | 3 | 3 | Long-running code within asp.net process | E.g. we this code in the asp.net form codebihind:
private void btnSendEmails_OnClick()
{
Send100000EmailsAndWaitForReplies();
}
This code execution will be killed by the timeout reason.
For resolving the problem I'd like to see something like this:
private void btnSendEmails_OnClick... | asp.net | .net | null | null | null | null | open | Long-running code within asp.net process
===
E.g. we this code in the asp.net form codebihind:
private void btnSendEmails_OnClick()
{
Send100000EmailsAndWaitForReplies();
}
This code execution will be killed by the timeout reason.
For resolving the problem I'd like to see something like t... | 0 |
7,186,104 | 08/25/2011 06:43:23 | 898,569 | 08/17/2011 12:03:11 | 19 | 0 | c# condition checking | i need to check condition constantly. Not in each loop iteration but also during time of function execution.
wth like this is not acceptable:
while(condition)
{
...
}
I need simply to abort function even 'in the middle' of progress when condition appears true.
Any ideas? | c# | condition | null | null | null | null | open | c# condition checking
===
i need to check condition constantly. Not in each loop iteration but also during time of function execution.
wth like this is not acceptable:
while(condition)
{
...
}
I need simply to abort function even 'in the middle' of progress when condition app... | 0 |
5,591,326 | 04/08/2011 06:33:28 | 696,364 | 04/07/2011 08:13:30 | 15 | 0 | wordpress xml genrated data | I have to do a site in wordpress fully based on XML data?
>Exactly in site i have to bring data on each and every link click by the user from third party.
Is it ok if i select wordpress ? If yes , Can anyone suggest me best and easy way to do it ?
| xml | wordpress | null | null | null | 04/08/2011 09:58:33 | not a real question | wordpress xml genrated data
===
I have to do a site in wordpress fully based on XML data?
>Exactly in site i have to bring data on each and every link click by the user from third party.
Is it ok if i select wordpress ? If yes , Can anyone suggest me best and easy way to do it ?
| 1 |
9,020,330 | 01/26/2012 15:17:06 | 322,013 | 04/21/2010 07:06:12 | 137 | 7 | What are build team responsibilities from developer point of view? | What do you think should be build team responsibilities that performs 'services' for developers?
What do you expect to be doing by yourselves and what tasks would you gladly pass?
| continuous-integration | build-automation | null | null | null | 01/26/2012 15:42:33 | not constructive | What are build team responsibilities from developer point of view?
===
What do you think should be build team responsibilities that performs 'services' for developers?
What do you expect to be doing by yourselves and what tasks would you gladly pass?
| 4 |
5,772,818 | 04/24/2011 19:48:59 | 645,460 | 03/04/2011 21:38:53 | 130 | 3 | Several app.config files for one executalbe | I have a WindowsForms project that uses its app config to store some appSettings. Let's call it WinFormsApp.exe
WinFormsApp uses classes from a libruary that basicaly exposes WCF server connectivity. Let's call it WCFClass.dll
WCFClass.dll is a separate project in a solution and it has it's own app.config it whic... | .net | app-config | null | null | null | null | open | Several app.config files for one executalbe
===
I have a WindowsForms project that uses its app config to store some appSettings. Let's call it WinFormsApp.exe
WinFormsApp uses classes from a libruary that basicaly exposes WCF server connectivity. Let's call it WCFClass.dll
WCFClass.dll is a separate project in ... | 0 |
10,047,402 | 04/06/2012 18:08:31 | 1,309,229 | 04/02/2012 23:28:34 | 8 | 1 | JQuery selector for DOM object | Am I wrong or there isn't a jquery selector that would allow to select a specific DOM object? Is it somehow possible to pass DOM object to JQuery selector? | javascript | jquery | firefox-addon | null | null | 04/06/2012 22:10:56 | not a real question | JQuery selector for DOM object
===
Am I wrong or there isn't a jquery selector that would allow to select a specific DOM object? Is it somehow possible to pass DOM object to JQuery selector? | 1 |
4,272,367 | 11/24/2010 23:03:33 | 76,827 | 03/11/2009 18:41:50 | 21 | 1 | Getting an instance of a bean excplicitly in runtime | I have a case where I have a bean (let's call it A) which needs some other bean (B).
This B is retrieved from a static method of a class using MethodInvokingFactoryBean.
This static method depends on the state of the system and will work after the web application is loaded.
I need to access the B only in runtime... | spring | initialization | javabeans | null | null | null | open | Getting an instance of a bean excplicitly in runtime
===
I have a case where I have a bean (let's call it A) which needs some other bean (B).
This B is retrieved from a static method of a class using MethodInvokingFactoryBean.
This static method depends on the state of the system and will work after the web applic... | 0 |
6,206,933 | 06/01/2011 20:00:05 | 83,313 | 03/26/2009 19:57:46 | 920 | 11 | Select a JQuery UI Tab after client validation... | I have Tab1, Tab2 and Tab3...
All tabs have inputs that are validated ...
My save method validates the required inputs:
var validator = $("form").validate(); // obtain validator
var anyError = false;
$('#tabs').find(":input").each(function ()
{
if (!validator.element(this)) { // valid... | jquery | jquery-ui | jquery-tabs | null | null | null | open | Select a JQuery UI Tab after client validation...
===
I have Tab1, Tab2 and Tab3...
All tabs have inputs that are validated ...
My save method validates the required inputs:
var validator = $("form").validate(); // obtain validator
var anyError = false;
$('#tabs').find(":input").each(function ()
... | 0 |
4,905,548 | 02/05/2011 06:52:39 | 540,345 | 12/13/2010 09:53:22 | 5 | 0 | Class Inside Structure | Could some one please explain, What happens when a reference type is defined inside the value type.
I write the following code:
namespace ClassInsideStruct
{
class ClassInsideStruct
{
static void Main(string[] args)
{
ValueType ObjVal = new ValueType(10);
... | c# | .net | oop | null | null | null | open | Class Inside Structure
===
Could some one please explain, What happens when a reference type is defined inside the value type.
I write the following code:
namespace ClassInsideStruct
{
class ClassInsideStruct
{
static void Main(string[] args)
{
ValueType ObjVal = ne... | 0 |
8,346,119 | 12/01/2011 18:07:24 | 928,752 | 09/05/2011 11:21:05 | 127 | 5 | A grasp of immuatble datastructures | I am learning scala and as a good student I try to obey all rules I found.
One this rule is: IMMUTABILITY!!!
So I tried to code everything I with immutable datastructures and only use vals and sometimes this is really hard.
But today I thought to myself: The only important think is: the object/class should hav... | scala | data-structures | functional-programming | immutable | null | null | open | A grasp of immuatble datastructures
===
I am learning scala and as a good student I try to obey all rules I found.
One this rule is: IMMUTABILITY!!!
So I tried to code everything I with immutable datastructures and only use vals and sometimes this is really hard.
But today I thought to myself: The only import... | 0 |
10,280,578 | 04/23/2012 12:30:29 | 1,299,927 | 03/29/2012 05:48:24 | 35 | 2 | Generate Word File in c#.net | I need to generate a word document from the data's retrieved from sql server database . Can anyone suggest me an idea. | c# | null | null | null | null | 04/23/2012 22:36:10 | not a real question | Generate Word File in c#.net
===
I need to generate a word document from the data's retrieved from sql server database . Can anyone suggest me an idea. | 1 |
8,325,956 | 11/30/2011 12:28:30 | 823,255 | 06/30/2011 14:45:58 | 1 | 0 | magento server-configuration (avg. 2000 visitors) | I'm planning to go live with my magento shop soon, so i'm currently looking out for an root server that suits my needs. I know that magento has a pretty high ram and cpu consumption and low response times are crucial for any web shop.
I want to be prepared for the following:
* Max. 30 Articles
* Avg 2.000 visitor... | magento | server-configuration | null | null | null | 06/06/2012 12:23:59 | off topic | magento server-configuration (avg. 2000 visitors)
===
I'm planning to go live with my magento shop soon, so i'm currently looking out for an root server that suits my needs. I know that magento has a pretty high ram and cpu consumption and low response times are crucial for any web shop.
I want to be prepared for th... | 2 |
3,479,866 | 08/13/2010 18:53:26 | 48,943 | 12/24/2008 17:45:49 | 468 | 26 | What to do when waiting for an application to compile? | I find that local builds will some times take 5-10 minutes of an application we are working on, but I always feel a little icky about going on line during that time... kind of like now ;).
What do you guys do when waiting for your application to compile? | compiler | waiting | null | null | null | 08/15/2010 02:47:28 | off topic | What to do when waiting for an application to compile?
===
I find that local builds will some times take 5-10 minutes of an application we are working on, but I always feel a little icky about going on line during that time... kind of like now ;).
What do you guys do when waiting for your application to compile? | 2 |
7,189,706 | 08/25/2011 11:39:41 | 860,148 | 07/24/2011 10:53:13 | 3 | 0 | jquery validation plugin default or custom messages not working | I use jQuery Validation Plugin. I got a form and want to validate it but something is wrong with the validation messages. Instead of a message error label displays id of a field.
<script type="text/javascript" src="js/jquery.validate.js"></script>
<script>
jQuery(document).ready(function(){
var v... | jquery | form-validation | null | null | null | null | open | jquery validation plugin default or custom messages not working
===
I use jQuery Validation Plugin. I got a form and want to validate it but something is wrong with the validation messages. Instead of a message error label displays id of a field.
<script type="text/javascript" src="js/jquery.validate.js"></scri... | 0 |
8,924,442 | 01/19/2012 10:25:17 | 671,059 | 03/22/2011 11:02:47 | 40 | 2 | Image resize and crop in wordpress | I had been searching for an image resizing and cropping function for wordpress and finally I made one for myself. Hope this can be of use for you guys. Put this function into a single file or in any file (theme/plugins) as required.
<?php
/**
* This function is used to resize and crop image
* b... | php | wordpress | wordpress-plugin | wordpress-theming | image-resizing | 01/20/2012 17:28:29 | not a real question | Image resize and crop in wordpress
===
I had been searching for an image resizing and cropping function for wordpress and finally I made one for myself. Hope this can be of use for you guys. Put this function into a single file or in any file (theme/plugins) as required.
<?php
/**
* This function is ... | 1 |
11,459,640 | 07/12/2012 19:57:16 | 1,521,658 | 07/12/2012 18:13:37 | 1 | 0 | Need beginner Android project Intent and exit button | I need an Android project that contains 3 classes (3 activities)
Each Activity contains 3 Buttons. 2 buttons to move between the activities and the third one is Exit button.
more clear discuss:
In Activity1 there are 3 buttons (call Activity2, call Activity3, Exit)
In Activity2 there are 3 buttons (call Acti... | java | android | eclipse | android-intent | null | 07/13/2012 15:06:13 | not a real question | Need beginner Android project Intent and exit button
===
I need an Android project that contains 3 classes (3 activities)
Each Activity contains 3 Buttons. 2 buttons to move between the activities and the third one is Exit button.
more clear discuss:
In Activity1 there are 3 buttons (call Activity2, call Activi... | 1 |
7,489,991 | 09/20/2011 18:32:55 | 955,416 | 09/20/2011 18:32:55 | 1 | 0 | Is there a way to have a program find the next available row in a spreadsheet? | How can I create a program that sorts through a spreadsheet finds the last line of data then copies/pastes in new text in the next available row? | excel | vba | macros | office-programing | null | null | open | Is there a way to have a program find the next available row in a spreadsheet?
===
How can I create a program that sorts through a spreadsheet finds the last line of data then copies/pastes in new text in the next available row? | 0 |
6,114,789 | 05/24/2011 18:00:58 | 260,127 | 01/27/2010 14:03:49 | 5,572 | 33 | Fragmented XML string parsing with Linq. | Let's say I have a fragmented XML as follows.
<A>
<B></B>
</A>
<A>
<B></B>
</A>
I can use `XmlReader` with Fragment option to parse this `not complete` XML string.
XmlReaderSettings settings = new XmlReaderSettings();
settings.ConformanceLevel = ConformanceLevel.Fragme... | c# | .net | xml | linq | null | null | open | Fragmented XML string parsing with Linq.
===
Let's say I have a fragmented XML as follows.
<A>
<B></B>
</A>
<A>
<B></B>
</A>
I can use `XmlReader` with Fragment option to parse this `not complete` XML string.
XmlReaderSettings settings = new XmlReaderSettings();
setti... | 0 |
8,760,509 | 01/06/2012 15:51:45 | 1,134,559 | 01/06/2012 15:12:22 | 1 | 0 | Graceful application shutdown when Windows shuts down | I have an application that I'd like to shutdown gracefully when Windows shuts down (or user logs off). This used to work (in xp) but sometime in the last year it broke without anyone noticing. It's also broke (but differently) under Windows 7.
Our product has a main process (server.exe) that starts many other proc... | windows | windows-7 | null | null | null | null | open | Graceful application shutdown when Windows shuts down
===
I have an application that I'd like to shutdown gracefully when Windows shuts down (or user logs off). This used to work (in xp) but sometime in the last year it broke without anyone noticing. It's also broke (but differently) under Windows 7.
Our product ... | 0 |
6,137,722 | 05/26/2011 11:26:15 | 771,202 | 05/26/2011 11:26:15 | 1 | 0 | Why aren't there cutting-edge compiler backends in functional languages like Haskell? | current state-of-the-art compiler backends are mostly written in C/C++, the best example is possibly the LLVM infrastructure. Furthermore it is often stated that it would be nice to have some kind of a killer project implemented in a functional language.
Functional programming claims to have the advantage of solving... | compiler | haskell | functional-programming | null | null | 05/26/2011 12:58:35 | not constructive | Why aren't there cutting-edge compiler backends in functional languages like Haskell?
===
current state-of-the-art compiler backends are mostly written in C/C++, the best example is possibly the LLVM infrastructure. Furthermore it is often stated that it would be nice to have some kind of a killer project implemented ... | 4 |
9,388,789 | 02/22/2012 03:40:45 | 885,017 | 08/09/2011 00:07:13 | 25 | 2 | Odd regular expression result... / character | I have this regular expression in objective-c
NSString* searchString = [searchBlock stringByReplacingOccurrencesOfString:@"<(.*?)>" withString:@"" options: NSRegularExpressionSearch range:NSMakeRange (0, [searchBlock length])];
The code should remove everything that comes between pointy brackets <> and it s... | objective-c | regex | nsregularexpression | null | null | null | open | Odd regular expression result... / character
===
I have this regular expression in objective-c
NSString* searchString = [searchBlock stringByReplacingOccurrencesOfString:@"<(.*?)>" withString:@"" options: NSRegularExpressionSearch range:NSMakeRange (0, [searchBlock length])];
The code should remove everythi... | 0 |
10,621,009 | 05/16/2012 14:45:18 | 190,674 | 10/15/2009 14:51:33 | 15 | 3 | Struts2 prepare method can not be handled | when i use implements Preparable and override prepare() method and if i got any problem in preparetion i set a action error with com.opensymphony.xwork2.ActionSupport addActionError method. after prepare method set the errormessages i want to process on this message in the real initialize method.
public class T... | java | struts2 | prepare | null | null | null | open | Struts2 prepare method can not be handled
===
when i use implements Preparable and override prepare() method and if i got any problem in preparetion i set a action error with com.opensymphony.xwork2.ActionSupport addActionError method. after prepare method set the errormessages i want to process on this message in the... | 0 |
1,593,218 | 10/20/2009 08:40:43 | 144,491 | 07/24/2009 12:41:33 | 736 | 84 | Adding SSIS Connections Programmatically - Oracle Provider for OLE DB | I'm writing a C# application to generate an SSIS package.
Part of this involves adding database connection managers - using the library **Microsoft.SqlServer.Dts.Runtime**. The following line of code shows how this can be done:
ConnectionManager cm = pkg.Connections.Add("OLEDB");
In the above code, I am ad... | c# | sql-server-2005 | dts | ssis | null | null | open | Adding SSIS Connections Programmatically - Oracle Provider for OLE DB
===
I'm writing a C# application to generate an SSIS package.
Part of this involves adding database connection managers - using the library **Microsoft.SqlServer.Dts.Runtime**. The following line of code shows how this can be done:
Connect... | 0 |
8,237,476 | 11/23/2011 04:48:42 | 1,017,029 | 10/27/2011 17:40:49 | 1 | 0 | Rendering a scene as a texture Three.js | I'm trying to achieve this: http://learningwebgl.com/blog/?p=1786 with Three.js.
I have no idea where to start looking. Just passing the scene as a texture gives a type error.
Thanks in advance :) | javascript | 3d | three.js | null | null | 02/03/2012 21:57:52 | not a real question | Rendering a scene as a texture Three.js
===
I'm trying to achieve this: http://learningwebgl.com/blog/?p=1786 with Three.js.
I have no idea where to start looking. Just passing the scene as a texture gives a type error.
Thanks in advance :) | 1 |
874,256 | 05/17/2009 09:43:06 | 108,356 | 05/17/2009 09:43:06 | 1 | 0 | dynamicaly loaded js function does not appear in firebug js debugger | There is a page1.html (I open it in browser):
<div id="content">
</div>
<script type="text/JavaScript">
jQuery.ajax({
type : "GET",
url : 'page2.html',
dataType : "html",
success : function(response) {
jQuery('#content').append(response);
}
... | javascript | firebug | debugging | null | null | null | open | dynamicaly loaded js function does not appear in firebug js debugger
===
There is a page1.html (I open it in browser):
<div id="content">
</div>
<script type="text/JavaScript">
jQuery.ajax({
type : "GET",
url : 'page2.html',
dataType : "html",
success : function(res... | 0 |
7,997,081 | 11/03/2011 15:00:00 | 48,523 | 12/23/2008 00:36:38 | 6,115 | 104 | How to render a plain HTML file with Sinatra? | I have a simple sinatra application. All I want to do is use it as a wrapper to serve a static HTML file at a specific route. My directory structure looks like this:
/directory
myhtmlfile.html
app.rb
My `app.rb` file looks like this:
require 'sinatra'
get '/myspecialroute' ... | ruby | sinatra | null | null | null | null | open | How to render a plain HTML file with Sinatra?
===
I have a simple sinatra application. All I want to do is use it as a wrapper to serve a static HTML file at a specific route. My directory structure looks like this:
/directory
myhtmlfile.html
app.rb
My `app.rb` file looks like this:
... | 0 |
7,336,202 | 09/07/2011 15:09:56 | 933,025 | 09/07/2011 15:09:56 | 1 | 0 | how to use built in printer fonts in jasper reports? | I use the i-report for jasper reports 4.02. My first problem is that I need to use printer's built-in font to print faster in my dot-matrix printer. Please tell me how to do that.
Secondly, my one printer prints (yes, slowly) and advances the paper for tearing off perfectly but another printer advances paper only so... | printing | fonts | report | jasper | null | 09/08/2011 20:50:06 | not a real question | how to use built in printer fonts in jasper reports?
===
I use the i-report for jasper reports 4.02. My first problem is that I need to use printer's built-in font to print faster in my dot-matrix printer. Please tell me how to do that.
Secondly, my one printer prints (yes, slowly) and advances the paper for tearin... | 1 |
7,344,451 | 09/08/2011 07:14:25 | 801,230 | 06/16/2011 10:16:28 | 43 | 0 | How to substitute variables into JQuery selector? | I have HTML:
<li onclick="myselect(mazda3,m3-to);">...</li>
and function:
var a='';
var b='';
function myselect(a,b){
$('#workcont').empty();
$('#tocont').load('pages/' + a + '.html #' + b);
}
But it's not work. How to improve it? | javascript | jquery | null | null | null | null | open | How to substitute variables into JQuery selector?
===
I have HTML:
<li onclick="myselect(mazda3,m3-to);">...</li>
and function:
var a='';
var b='';
function myselect(a,b){
$('#workcont').empty();
$('#tocont').load('pages/' + a + '.html #' + b);
}
But it's not work. How to imp... | 0 |
8,380,542 | 12/05/2011 02:54:45 | 1,061,354 | 11/23/2011 07:15:25 | 1 | 0 | (Pizza Project) how to make a for loop to print out the first topping and number of slices for it, and keep repeating | Hello I in the process of making a pizza delivery. I have made some variables like what the toppings the user wants which is int toppings and how many slices which is int slices, but I don't know how to make a for loop to print out how many slices of pizza the user wants with one topping and how many slices the user wa... | java | eclipse | homework | null | null | 12/15/2011 02:22:59 | not a real question | (Pizza Project) how to make a for loop to print out the first topping and number of slices for it, and keep repeating
===
Hello I in the process of making a pizza delivery. I have made some variables like what the toppings the user wants which is int toppings and how many slices which is int slices, but I don't know h... | 1 |
4,827,280 | 01/28/2011 10:41:09 | 440,414 | 09/06/2010 07:08:24 | 22 | 0 | C doubts interview questions | I had just seen two interview questions for which i was unable to find any satisfying answers.The questions are shown below
1)How many levels deep can include files be nested?
2)When should a type cast not be used?
Thanks in advance
Maddy | c | interview-questions | null | null | null | 11/30/2011 03:10:06 | not constructive | C doubts interview questions
===
I had just seen two interview questions for which i was unable to find any satisfying answers.The questions are shown below
1)How many levels deep can include files be nested?
2)When should a type cast not be used?
Thanks in advance
Maddy | 4 |
8,538,307 | 12/16/2011 18:09:59 | 1,047,737 | 11/15/2011 14:10:11 | 10 | 0 | grep from "text1" to "text2" in linux | How can I use grep to find string from line to line? Please help | linux | bash | awk | grep | null | 12/17/2011 20:12:13 | not a real question | grep from "text1" to "text2" in linux
===
How can I use grep to find string from line to line? Please help | 1 |
11,733,198 | 07/31/2012 04:38:51 | 1,074,803 | 12/01/2011 05:38:03 | 43 | 1 | Difference between if(): and if() { | Can I please know the difference between
<?php if() : ?>
<?php endif; ?>
and
<?php if() { ?>
<?php } ?> | php | joomla | web-deployment | null | null | 07/31/2012 04:57:18 | not a real question | Difference between if(): and if() {
===
Can I please know the difference between
<?php if() : ?>
<?php endif; ?>
and
<?php if() { ?>
<?php } ?> | 1 |
9,450,156 | 02/26/2012 03:02:18 | 1,232,303 | 02/25/2012 09:07:33 | 4 | 0 | PHP SEARCH_FUNCTION | How can we use PHP search function to search information from our database? Wherein, we will let the user for example key in the username and all of the information from that specified username will be shown. | search | null | null | null | null | 02/27/2012 02:50:21 | not a real question | PHP SEARCH_FUNCTION
===
How can we use PHP search function to search information from our database? Wherein, we will let the user for example key in the username and all of the information from that specified username will be shown. | 1 |
5,590,694 | 04/08/2011 05:07:11 | 592,052 | 01/27/2011 10:53:23 | 22 | 0 | controling embed via js | W.G.H
i've got an embed tag on my website.
how can I get and set the current position of the track playing? | javascript | html | embed | null | null | 04/08/2011 05:56:36 | not a real question | controling embed via js
===
W.G.H
i've got an embed tag on my website.
how can I get and set the current position of the track playing? | 1 |
10,061,575 | 04/08/2012 08:48:22 | 1,066,071 | 11/25/2011 17:47:07 | 1 | 0 | WordPress TinyMCE Loading Issue | I'm trying to put up a submission form in a WordPress site using tinyMCE for capturing the contents. I'm encountering two problems in this :
1. The content is not getting captured to get posted
2. When the error message pops up to show that the mandatory field is not entered (the field value missing is the conten... | wordpress | tinymce | null | null | null | 04/09/2012 17:48:36 | not a real question | WordPress TinyMCE Loading Issue
===
I'm trying to put up a submission form in a WordPress site using tinyMCE for capturing the contents. I'm encountering two problems in this :
1. The content is not getting captured to get posted
2. When the error message pops up to show that the mandatory field is not entered (... | 1 |
7,748,748 | 10/13/2011 02:21:08 | 251,518 | 01/15/2010 12:49:32 | 884 | 33 | Hash from String in Ruby: Marshal.load? (re-create the params hash from a Rails production.log) | I want to parse Rails production.log files and recreate the params Hash. I am stuck with the Marshal.load method, which actually expects the data to be marshalled. Well, the data is well-formed but it is a String and not in a Marshal expected format.
here is the String that i regexed out of the request from the logf... | ruby | json | parsing | hash | marshalling | null | open | Hash from String in Ruby: Marshal.load? (re-create the params hash from a Rails production.log)
===
I want to parse Rails production.log files and recreate the params Hash. I am stuck with the Marshal.load method, which actually expects the data to be marshalled. Well, the data is well-formed but it is a String and no... | 0 |
8,552,097 | 12/18/2011 13:41:37 | 1,104,491 | 12/18/2011 13:23:13 | 1 | 0 | what is the pre-requirement(both software and hardware knowledge) to learn "Operating Systems"? | am really in a tough spot! hope some support from the pros here. am pursuing b.tech in comp sci. i had to skip college(and thus few courses i.e. "Microprocessors and Controllers" and "Fundamentals of Algorithms") due to unavoidable reasons and now i am appearing for my "operating Systems" exam in a few weeks.
I have b... | operating-system | null | null | null | null | 12/18/2011 18:12:10 | off topic | what is the pre-requirement(both software and hardware knowledge) to learn "Operating Systems"?
===
am really in a tough spot! hope some support from the pros here. am pursuing b.tech in comp sci. i had to skip college(and thus few courses i.e. "Microprocessors and Controllers" and "Fundamentals of Algorithms") due to... | 2 |
8,551,797 | 12/18/2011 12:48:30 | 1,061,543 | 11/23/2011 09:23:13 | 6 | 0 | [C++][SDL] invalid dynamic table od SDL_Surface | I'm having difficulties with creating dynamic table od SDL_Surface.
Take a look at that code:
SDL_Surface **testA = new SDL_Surface *[2];
for(int i=0;i<2;i++)
testA[i] = new SDL_Surface;
SDL_Surface* testB[2];
As far as i'm concerned, TestA and textB should look identically. But Visual Studio locals look... | c++ | sdl | null | null | null | null | open | [C++][SDL] invalid dynamic table od SDL_Surface
===
I'm having difficulties with creating dynamic table od SDL_Surface.
Take a look at that code:
SDL_Surface **testA = new SDL_Surface *[2];
for(int i=0;i<2;i++)
testA[i] = new SDL_Surface;
SDL_Surface* testB[2];
As far as i'm concerned, TestA and textB s... | 0 |
5,624,217 | 04/11/2011 16:09:31 | 473,763 | 10/12/2010 19:50:07 | 1,293 | 59 | Is there any JavaScript Grid plugin that have no framework dependency? | Is there any JavaScript Grid plugin that have no framework dependency? | javascript | null | null | null | null | 02/07/2012 15:05:37 | not a real question | Is there any JavaScript Grid plugin that have no framework dependency?
===
Is there any JavaScript Grid plugin that have no framework dependency? | 1 |
8,786,595 | 01/09/2012 09:57:25 | 528,046 | 06/04/2010 10:51:25 | 12 | 2 | Any existing jquery demo/showcase or open source project for enterprise app? | I would like to ask if there is any demo/showcase or open source project which used jquery, and got below layout (below is scm-manager open source project, using extjs), which is just what I need...
![enter image description here][1]
[1]: http://i.stack.imgur.com/AS2SX.jpg
| jquery | extjs | null | null | null | 01/10/2012 09:04:05 | too localized | Any existing jquery demo/showcase or open source project for enterprise app?
===
I would like to ask if there is any demo/showcase or open source project which used jquery, and got below layout (below is scm-manager open source project, using extjs), which is just what I need...
![enter image description here][1]
... | 3 |
9,446,216 | 02/25/2012 17:24:18 | 1,131,889 | 01/05/2012 10:32:55 | 1 | 0 | Realistic Terrain | Im a newbie in game development. And I was looking for information about it so more time.
I found next methods:
1) Perlin noise (slow, but free. Fast version is not free :((( )
2) Fractals (I have no information about this)
What you can say me about it? What is better?
I was tried to work with Perlin noi... | c++ | terrain | fractals | perlin-noise | voxel | 02/25/2012 19:41:45 | not constructive | Realistic Terrain
===
Im a newbie in game development. And I was looking for information about it so more time.
I found next methods:
1) Perlin noise (slow, but free. Fast version is not free :((( )
2) Fractals (I have no information about this)
What you can say me about it? What is better?
I was tried ... | 4 |
6,971,407 | 08/07/2011 07:36:03 | 735,536 | 05/03/2011 05:47:13 | 10 | 0 | What better url? | What better url?
----------------
**this:**
Forum/{forumId}/Section/{sectionId}/Thread/{threadId}/
for example:
Forum/1/Section/2/Thread/3
when the topic with ID = 3 is contained in the section with ID = 2, which is contained in the forum with ID = 1, return some view, otherwise(topic with id=3 is c... | asp.net-mvc | routing | null | null | null | null | open | What better url?
===
What better url?
----------------
**this:**
Forum/{forumId}/Section/{sectionId}/Thread/{threadId}/
for example:
Forum/1/Section/2/Thread/3
when the topic with ID = 3 is contained in the section with ID = 2, which is contained in the forum with ID = 1, return some view, otherwis... | 0 |
11,650,275 | 07/25/2012 12:59:02 | 1,427,659 | 05/31/2012 06:31:40 | 18 | 0 | how to create the listfiled in blackberry as like in the image | ![enter image description here][1]
[1]: http://i.stack.imgur.com/GJ9C9.png
i have used liststyle button filed class which is available in the advanecd ui examples. so that class is taking taking string as paraetre. if i have given the string like techv and time and message using tabs("\t") . the alignmen... | blackberry | null | null | null | null | 07/26/2012 13:34:00 | not a real question | how to create the listfiled in blackberry as like in the image
===
![enter image description here][1]
[1]: http://i.stack.imgur.com/GJ9C9.png
i have used liststyle button filed class which is available in the advanecd ui examples. so that class is taking taking string as paraetre. if i have given the str... | 1 |
11,308,324 | 07/03/2012 09:46:10 | 954,001 | 09/20/2011 04:48:36 | 100 | 12 | Stub the value of the pointer in RTRT | **Can you stub the value of the pointer and Can you access the value of the pointer in RTRT passed as a parameter?** | c | null | null | null | null | 07/03/2012 12:12:01 | not a real question | Stub the value of the pointer in RTRT
===
**Can you stub the value of the pointer and Can you access the value of the pointer in RTRT passed as a parameter?** | 1 |
3,250,413 | 07/14/2010 20:51:04 | 147,601 | 07/30/2009 05:40:08 | 3,587 | 20 | What is a "story" in the Text Object Model? | This documentation describes RichEdit and ITextDocument, which are part of MFC. RichEdit uses TOM, or text object model. The documentation makes repeated reference to "stories":
> The GetStoryCount
> property-get method retrieves the
> count of stories in this document.
>
The GetStoryRanges
> property-get ... | mfc | richedit | null | null | null | null | open | What is a "story" in the Text Object Model?
===
This documentation describes RichEdit and ITextDocument, which are part of MFC. RichEdit uses TOM, or text object model. The documentation makes repeated reference to "stories":
> The GetStoryCount
> property-get method retrieves the
> count of stories in this doc... | 0 |
10,347,054 | 04/27/2012 08:08:41 | 1,287,714 | 03/23/2012 07:22:45 | 3 | 0 | lxml - function to return cleaned object, not just a stirng | Here is some code:
from lxml import etree
url = 'http://www.google.com/ig/api?stock=aapl'
data = etree.parse(url)
root = data.getroot()
finance = root[0]
def clean(var, num):
var = str(finance[num].attrib).split("'")[-2]
print var
I would like to return the variable as an object that I ca... | python | xml | django | lxml | null | 04/30/2012 15:29:42 | not a real question | lxml - function to return cleaned object, not just a stirng
===
Here is some code:
from lxml import etree
url = 'http://www.google.com/ig/api?stock=aapl'
data = etree.parse(url)
root = data.getroot()
finance = root[0]
def clean(var, num):
var = str(finance[num].attrib).split("'")[-2]
print ... | 1 |
7,575,858 | 09/27/2011 21:24:48 | 366,640 | 06/14/2010 20:02:52 | 1 | 1 | Gnuplot examples in perl produce no output in Mac 10.7 | I am trying to plot an xy scatter plot in perl on Mac 10.7. I have tried other options GD::Graph but would like to try gnu plot. I have gnu plot installed (confirmed in Terminal) and the perl modules but when I run an example it does not produce any graphic file. What am I doing wrong? Thanks!
Example code can be fo... | osx | perl | gnuplot | null | null | 09/28/2011 05:34:14 | not a real question | Gnuplot examples in perl produce no output in Mac 10.7
===
I am trying to plot an xy scatter plot in perl on Mac 10.7. I have tried other options GD::Graph but would like to try gnu plot. I have gnu plot installed (confirmed in Terminal) and the perl modules but when I run an example it does not produce any graphic fi... | 1 |
7,109,464 | 08/18/2011 14:53:11 | 875,527 | 08/02/2011 21:48:33 | 19 | 0 | File Storage Problem with Python Web Crawler | I am screen scraping data using a web crawler and storing the results - (tweets from a twitter page) as separate html files for each user I'm crawling. I intend to later parse the html files and store the data into a database for analysis. However, I am having a bizarre problem.
When I run the following program - a... | python | web | crawler | null | null | null | open | File Storage Problem with Python Web Crawler
===
I am screen scraping data using a web crawler and storing the results - (tweets from a twitter page) as separate html files for each user I'm crawling. I intend to later parse the html files and store the data into a database for analysis. However, I am having a bizarre... | 0 |
2,280,479 | 02/17/2010 12:23:04 | 134,759 | 07/08/2009 07:33:33 | 23 | 2 | In the UIImagePickerController, is it possible to get the NSURL value for UIImagePickerControllerMediaURL? | When the user selects an image from the picker controller, im calling the delegate -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
in the dictionary info, the value for key UIImagePickerControllerMediaURL is NULL..
am i missing something here..pls i ... | iphone | null | null | null | null | null | open | In the UIImagePickerController, is it possible to get the NSURL value for UIImagePickerControllerMediaURL?
===
When the user selects an image from the picker controller, im calling the delegate -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
in the ... | 0 |
6,297,702 | 06/09/2011 18:46:52 | 244,613 | 01/06/2010 10:30:03 | 26 | 2 | How to establish a video call? | I am trying to establish a video call with with UCMA 2.0. But, I always end up with establishing an audio call.
I found that default value of the DefaultMediaType property of the AudioVideoCall is MediaType.Audio.
Sample code is:
_call = new AudioVideoCall (_conversation);
_call.DefaultMediaType = Me... | ucma | office-communicator | video-conferencing | ucma2.0 | null | null | open | How to establish a video call?
===
I am trying to establish a video call with with UCMA 2.0. But, I always end up with establishing an audio call.
I found that default value of the DefaultMediaType property of the AudioVideoCall is MediaType.Audio.
Sample code is:
_call = new AudioVideoCall (_conversation... | 0 |
1,766,449 | 11/19/2009 20:53:35 | 214,969 | 11/19/2009 20:53:35 | 1 | 0 | How to make a Small system to comment on a individuals in a group in PHP? | I am building a team roster application. It takes a team class (this is a quick mockup not the actual class as my question does not pertain to it)
class Team {
function __construct($teamName, $roster){
$this->setName($teamName);
$this->setRoster($roster);
}
I didn't in... | php | class | comments | null | null | null | open | How to make a Small system to comment on a individuals in a group in PHP?
===
I am building a team roster application. It takes a team class (this is a quick mockup not the actual class as my question does not pertain to it)
class Team {
function __construct($teamName, $roster){
$this->setNa... | 0 |
11,653,719 | 07/25/2012 15:51:43 | 377,320 | 06/27/2010 08:30:19 | 111 | 10 | Cannot open bug for Netty | Good day, I tried to open a bug at the JBoss issues page (https://issues.jboss.org/browse/NETTY) by clicking the "Create Issue" button, but Netty is not present amongst projects listed in the "Create Issue" popup :) | netty | null | null | null | null | 07/30/2012 03:30:18 | off topic | Cannot open bug for Netty
===
Good day, I tried to open a bug at the JBoss issues page (https://issues.jboss.org/browse/NETTY) by clicking the "Create Issue" button, but Netty is not present amongst projects listed in the "Create Issue" popup :) | 2 |
4,458 | 08/07/2008 06:24:33 | 100 | 08/01/2008 20:41:59 | 248 | 8 | Domain Specific Language resources | I was just listening to some older .Net Rocks! episodes, and I found #329 on DSLs to be interesting. My problem is that I can't find any good online resources for people trying to learn this technology. I get the basics of the creating new designers, but the MS docs on the T4 engine used by the DSL tools and then how t... | ms | dsl | t4 | vsx | null | 08/16/2011 13:54:06 | not constructive | Domain Specific Language resources
===
I was just listening to some older .Net Rocks! episodes, and I found #329 on DSLs to be interesting. My problem is that I can't find any good online resources for people trying to learn this technology. I get the basics of the creating new designers, but the MS docs on the T4 eng... | 4 |
6,968,811 | 08/06/2011 18:34:03 | 699,323 | 04/08/2011 20:34:11 | 76 | 5 | Android Renderscript 3.2 More Strict Than 3.1? | I updated my Eclipse Android SDK to version 3.2 and I'm now getting compilation errors for constants.
This used to work:
static const X = 2;
static const X_SQUARED = X * X;
But now I get a compilation error on the 2nd line:
error: initializer element is not a compile-time constant
Was this a... | android | renderscript | null | null | null | null | open | Android Renderscript 3.2 More Strict Than 3.1?
===
I updated my Eclipse Android SDK to version 3.2 and I'm now getting compilation errors for constants.
This used to work:
static const X = 2;
static const X_SQUARED = X * X;
But now I get a compilation error on the 2nd line:
error: initializer ... | 0 |
9,136,534 | 02/03/2012 22:45:35 | 719,612 | 04/21/2011 20:13:11 | 36 | 0 | Dynamic forms in rails | So I'm creating a simple application. I have a 'Games' database table and a 'Rules' database table. Each game can have many rules. I want to present a form like this:
Game Title:
Game Description:
Rule #1:
(Click to add another rule)
So the user can click a button to add another text field... | ruby-on-rails | ruby-on-rails-3 | ruby-on-rails-3.1 | null | null | null | open | Dynamic forms in rails
===
So I'm creating a simple application. I have a 'Games' database table and a 'Rules' database table. Each game can have many rules. I want to present a form like this:
Game Title:
Game Description:
Rule #1:
(Click to add another rule)
So the user can click a butt... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.