PostId
int64 13
11.8M
| PostCreationDate
stringlengths 19
19
| OwnerUserId
int64 3
1.57M
| OwnerCreationDate
stringlengths 10
19
| ReputationAtPostCreation
int64 -33
210k
| OwnerUndeletedAnswerCountAtPostTime
int64 0
5.77k
| Title
stringlengths 10
250
| BodyMarkdown
stringlengths 12
30k
| Tag1
stringlengths 1
25
⌀ | Tag2
stringlengths 1
25
⌀ | Tag3
stringlengths 1
25
⌀ | Tag4
stringlengths 1
25
⌀ | Tag5
stringlengths 1
25
⌀ | PostClosedDate
stringlengths 19
19
⌀ | OpenStatus
stringclasses 5
values | unified_texts
stringlengths 47
30.1k
| OpenStatus_id
int64 0
4
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10,811,111 | 05/30/2012 06:36:21 | 1,387,157 | 05/10/2012 13:01:32 | 136 | 18 | Which open source technologies should i use? | Ok, this is my problem.
We have developed a Java jsp/servlet application using JDeveloper. This application resides on a Weblogic application server. It communicates with an Oracle 11g database and performs user authentication on an Oracle Internet Directory (LDAP) server. Note that everything is working fine and we are going to production.
The problem is that the budget is limited and we want to avoid the costs to buy Oracle Licenses. What do you thing are the most suitable open source products to use?
We are mainly interested in replacing the LDAP server and the Application Server.
| java | oracle | jsp | servlets | open-source | 05/31/2012 06:47:00 | not constructive | Which open source technologies should i use?
===
Ok, this is my problem.
We have developed a Java jsp/servlet application using JDeveloper. This application resides on a Weblogic application server. It communicates with an Oracle 11g database and performs user authentication on an Oracle Internet Directory (LDAP) server. Note that everything is working fine and we are going to production.
The problem is that the budget is limited and we want to avoid the costs to buy Oracle Licenses. What do you thing are the most suitable open source products to use?
We are mainly interested in replacing the LDAP server and the Application Server.
| 4 |
6,015,099 | 05/16/2011 09:01:59 | 742,314 | 05/06/2011 18:47:21 | 991 | 50 | XCode 3.2.5: Make "Treat Warnings as Errors" and "Run Static Analyzer" both true for new projects. | **The Problem**
Every time I create a new project in XCode I have to go to **Project > Edit Project Settings** and navigate to **Treat Warnings as Errors** and **Run Static Analyzer** to turn them on. For the life of me I cannot seem to find out how to make this the default from now on.
**What I Have Tried**
Hunting through the menus. Google. Stackoverflow.com. A animal sacrifice in a graveyard at midnight (OK, I haven't tried that yet, but after this it is next on my list).
**The Question**
Is there a simple way of setting compiler settings for new projects?
Please don't tell me to upgrade to XCode 4. I already have it (and have not explored to see if I can accomplish this task in it yet). I still will need XCode 3 for a few months.
Whoops! Almost forgot -- thanks in advance! | iphone | xcode | ipad | compiler-options | defaults | null | open | XCode 3.2.5: Make "Treat Warnings as Errors" and "Run Static Analyzer" both true for new projects.
===
**The Problem**
Every time I create a new project in XCode I have to go to **Project > Edit Project Settings** and navigate to **Treat Warnings as Errors** and **Run Static Analyzer** to turn them on. For the life of me I cannot seem to find out how to make this the default from now on.
**What I Have Tried**
Hunting through the menus. Google. Stackoverflow.com. A animal sacrifice in a graveyard at midnight (OK, I haven't tried that yet, but after this it is next on my list).
**The Question**
Is there a simple way of setting compiler settings for new projects?
Please don't tell me to upgrade to XCode 4. I already have it (and have not explored to see if I can accomplish this task in it yet). I still will need XCode 3 for a few months.
Whoops! Almost forgot -- thanks in advance! | 0 |
2,009,349 | 01/05/2010 21:49:13 | 191,899 | 10/18/2009 03:49:24 | 25 | 24 | What stylesheet gets used by loading ajax content? | I am trying to find out whether a piece of content included via ajax, needs it's own call to the stylesheet, or relies upon the stylesheet loaded of the calling page...
It just isn't clear how it is being styled, and what is the source of that stylings....
My educated gut tells me it get it's styling from the calling page, but i'd like to see some solid reliable proof.
Thanks | ajax | stylesheet | css | null | null | null | open | What stylesheet gets used by loading ajax content?
===
I am trying to find out whether a piece of content included via ajax, needs it's own call to the stylesheet, or relies upon the stylesheet loaded of the calling page...
It just isn't clear how it is being styled, and what is the source of that stylings....
My educated gut tells me it get it's styling from the calling page, but i'd like to see some solid reliable proof.
Thanks | 0 |
9,670,383 | 03/12/2012 15:55:14 | 185,840 | 10/07/2009 18:22:05 | 1,081 | 51 | CSS override line-height on word wrap | I have a list of links bound to a fairly narrow box; narrow enough for some links to wrap.
line-height is set to 30px, which is fine for the non-wrapped links; however, for a link whose text is long enough to force a line wrap, a 30px line-height is applied there as well, thus making it appear as if there are 2 links and not just a continuation of link text.
I'd like somehow (without js or on middleware end calc'ing string length) to get the wrapped link text to have a line-height of 10px or so to give visual impression of continuation and not separation
Thanks | css | override | word-wrap | line-height | null | null | open | CSS override line-height on word wrap
===
I have a list of links bound to a fairly narrow box; narrow enough for some links to wrap.
line-height is set to 30px, which is fine for the non-wrapped links; however, for a link whose text is long enough to force a line wrap, a 30px line-height is applied there as well, thus making it appear as if there are 2 links and not just a continuation of link text.
I'd like somehow (without js or on middleware end calc'ing string length) to get the wrapped link text to have a line-height of 10px or so to give visual impression of continuation and not separation
Thanks | 0 |
5,793,198 | 04/26/2011 16:13:41 | 725,736 | 04/26/2011 16:13:41 | 1 | 0 | I cant make the exe setup file in c# | I have the solution bar in visual studio 2008 from c# but i can my project make a exe setup file becouse it have the solution bar but havent that solution fanction so how to get that function? | c# | null | null | null | null | 04/26/2011 16:26:20 | not a real question | I cant make the exe setup file in c#
===
I have the solution bar in visual studio 2008 from c# but i can my project make a exe setup file becouse it have the solution bar but havent that solution fanction so how to get that function? | 1 |
845,636 | 05/10/2009 16:47:16 | 44,084 | 12/07/2008 12:12:53 | 6,239 | 186 | WPF: Adding an element to a databound Collection (a Dependency Property) | I have this `DependencyProperty` which holds an entity with a property that is a collection (`ShoutBox.Entities`):
public static readonly DependencyProperty ShoutBoxProperty = DependencyProperty.Register("ShoutBox",typeof (ShoutBox),typeof (ShoutBoxViewerControl));
public ShoutBox ShoutBox
{
get { return (ShoutBox) GetValue(ShoutBoxProperty); }
set { SetValue(ShoutBoxProperty, value); }
}
It is being binded in `xaml` like such:
<ItemsControl ItemsSource="{Binding ShoutBox.Entries}">
.
.
</ItemsControl>
When I bind it the first time, it works as expected but there are times when I need to add items to the collection (with a method that is in the same control), like such:
public void AddNewEntry(ShoutBoxEntry newEntry)
{
Dispatcher.Invoke(new Action(() =>{
ShoutBox.Entries.Add(newEntry); //Adding directly the the Dependency property
}));
}
The problem is that when I add a new element with the above method, the item isn't being displayed in the `ItemsControl`.
----------
My question is, **why isn't the new element that I am adding isn't being displayed in the `ItemsControl`** ?
| wpf | data-binding | xaml | c# | dependency-properties | null | open | WPF: Adding an element to a databound Collection (a Dependency Property)
===
I have this `DependencyProperty` which holds an entity with a property that is a collection (`ShoutBox.Entities`):
public static readonly DependencyProperty ShoutBoxProperty = DependencyProperty.Register("ShoutBox",typeof (ShoutBox),typeof (ShoutBoxViewerControl));
public ShoutBox ShoutBox
{
get { return (ShoutBox) GetValue(ShoutBoxProperty); }
set { SetValue(ShoutBoxProperty, value); }
}
It is being binded in `xaml` like such:
<ItemsControl ItemsSource="{Binding ShoutBox.Entries}">
.
.
</ItemsControl>
When I bind it the first time, it works as expected but there are times when I need to add items to the collection (with a method that is in the same control), like such:
public void AddNewEntry(ShoutBoxEntry newEntry)
{
Dispatcher.Invoke(new Action(() =>{
ShoutBox.Entries.Add(newEntry); //Adding directly the the Dependency property
}));
}
The problem is that when I add a new element with the above method, the item isn't being displayed in the `ItemsControl`.
----------
My question is, **why isn't the new element that I am adding isn't being displayed in the `ItemsControl`** ?
| 0 |
9,277,108 | 02/14/2012 12:46:01 | 1,209,060 | 02/14/2012 12:29:37 | 1 | 0 | Java and main() | I'm messing around with Eclipse(and java in general) for the first time in about a year. among the things I have forgotten is the following:
I have a function (void callvote() that I am hoping will be activated by my main function (that is, automatically, relatively early in the program). I currently have it within the same class (body) as the main function itself.
I try to call it with`callvote();` and get an error, "- Cannot make a static reference to the non-static method callvote() from the type body"
my function callvote is, at the moment, in the space below main and simply says
`public void callvote()
{
}`
am i committing a horrible sin by putting more functions in the same class as main?
is this a relatively easy fix that I missed somehow?
What does this error mean?
Have I woken Azatoth with this code?
Thanks in advance,
Tormos | eclipse | main | null | null | null | null | open | Java and main()
===
I'm messing around with Eclipse(and java in general) for the first time in about a year. among the things I have forgotten is the following:
I have a function (void callvote() that I am hoping will be activated by my main function (that is, automatically, relatively early in the program). I currently have it within the same class (body) as the main function itself.
I try to call it with`callvote();` and get an error, "- Cannot make a static reference to the non-static method callvote() from the type body"
my function callvote is, at the moment, in the space below main and simply says
`public void callvote()
{
}`
am i committing a horrible sin by putting more functions in the same class as main?
is this a relatively easy fix that I missed somehow?
What does this error mean?
Have I woken Azatoth with this code?
Thanks in advance,
Tormos | 0 |
5,878,279 | 05/04/2011 03:46:24 | 676,238 | 03/25/2011 06:33:36 | 11 | 0 | random image name for an image | I have uploaded the image to specified directory. Now I want to store image with a different name using the 'upload' library.How to accomplish this? | php | codeigniter | null | null | null | null | open | random image name for an image
===
I have uploaded the image to specified directory. Now I want to store image with a different name using the 'upload' library.How to accomplish this? | 0 |
11,169,742 | 06/23/2012 13:07:17 | 1,369,825 | 05/02/2012 10:57:46 | 4 | 0 | how to set progressive jpeg on Magickcore? | Can you answer my question
how to set progressive jpeg on Magickcore? | c | imagemagick | null | null | null | 06/24/2012 13:25:12 | not a real question | how to set progressive jpeg on Magickcore?
===
Can you answer my question
how to set progressive jpeg on Magickcore? | 1 |
8,733,224 | 01/04/2012 20:02:39 | 281,839 | 02/26/2010 06:30:28 | 390 | 3 | what is relationship between agile and OOP? | I am a .net developer.
Kindly guide what is relationship of agile and OOP ?
What I know is Agile is a process that recommend TDD and OOP is a way of writing code.
Are Agile and OOP both require to each other ? they are against each other or what please guide ? | asp.net | oop | agile | null | null | 01/04/2012 20:07:14 | off topic | what is relationship between agile and OOP?
===
I am a .net developer.
Kindly guide what is relationship of agile and OOP ?
What I know is Agile is a process that recommend TDD and OOP is a way of writing code.
Are Agile and OOP both require to each other ? they are against each other or what please guide ? | 2 |
3,304,018 | 07/21/2010 21:30:03 | 398,167 | 07/21/2010 15:35:08 | 1 | 0 | SQL Server XML Data Type and QUOTED_IDENTIFIER | Can anyone provide insight into this?
I've developed an import process using an XML data type. After the data is inserted in to a table by the import sProc I run another procedures to update another table with the imported table.
The update procedure throws an exception if it is created with SET QUOTED_IDENTIFIER OFF. I'd like to understand why that is happening.
Here's the code:
DECLARE @xmlRecords XML
SET @xmlRecords = (SELECT importedXML FROM importTable WHERE importId = @lastImportId)
UPDATE o
SET o.ReferralCode = import.refCode
FROM (
SELECT records.record.value('(@orderId)[1]', 'INT') AS orderId,
records.record.value('(@refCode)[1]', 'VARCHAR(15)') AS refCode
FROM @xmlRecords.nodes('/records/record') records(record)
) import
INNER JOIN tblOrder o ON import.OrderId = o.orderId
I'm assuming it has to do with the quoted datatypes ('VARCHAR(15)') or the xml query path elements ('/records/record').
Thanks for any insight you can provide. | sql | xml | server | quoted-identifier | null | null | open | SQL Server XML Data Type and QUOTED_IDENTIFIER
===
Can anyone provide insight into this?
I've developed an import process using an XML data type. After the data is inserted in to a table by the import sProc I run another procedures to update another table with the imported table.
The update procedure throws an exception if it is created with SET QUOTED_IDENTIFIER OFF. I'd like to understand why that is happening.
Here's the code:
DECLARE @xmlRecords XML
SET @xmlRecords = (SELECT importedXML FROM importTable WHERE importId = @lastImportId)
UPDATE o
SET o.ReferralCode = import.refCode
FROM (
SELECT records.record.value('(@orderId)[1]', 'INT') AS orderId,
records.record.value('(@refCode)[1]', 'VARCHAR(15)') AS refCode
FROM @xmlRecords.nodes('/records/record') records(record)
) import
INNER JOIN tblOrder o ON import.OrderId = o.orderId
I'm assuming it has to do with the quoted datatypes ('VARCHAR(15)') or the xml query path elements ('/records/record').
Thanks for any insight you can provide. | 0 |
4,843,330 | 01/30/2011 14:09:16 | 449,897 | 09/14/2010 20:04:52 | 363 | 12 | Does REST and SOAP are enemies? | Now a days,REST is very popular on web community.So that I am curious to know these two questions.
1. Does SOAP and REST are enemies?
2. Which one is better and why?
| wcf | rest | soap | null | null | 01/30/2011 21:02:52 | not constructive | Does REST and SOAP are enemies?
===
Now a days,REST is very popular on web community.So that I am curious to know these two questions.
1. Does SOAP and REST are enemies?
2. Which one is better and why?
| 4 |
6,641,218 | 07/10/2011 12:55:28 | 837,604 | 07/10/2011 12:55:28 | 1 | 0 | How To Program a Simple Java Image Animation? | OK, I have 6 images in a netbeans project resources.I want to learn how to draw these images in a sequence so that it displays a smooth animation. I searched through multiple books and this site explaining threads, loading images and drawing them onto a panel.All these examples only show code snippets and I'm struggling to put all the pieces together and see the big picture(how all these pieces interact with each other where to call these methods where the thread shoul be?etc.) If anyone can post a complete example (maybe a main class and a animator class) it will be much appreciated. | java | multithreading | animation | bufferedimage | graphics2d | 07/11/2011 01:05:58 | not a real question | How To Program a Simple Java Image Animation?
===
OK, I have 6 images in a netbeans project resources.I want to learn how to draw these images in a sequence so that it displays a smooth animation. I searched through multiple books and this site explaining threads, loading images and drawing them onto a panel.All these examples only show code snippets and I'm struggling to put all the pieces together and see the big picture(how all these pieces interact with each other where to call these methods where the thread shoul be?etc.) If anyone can post a complete example (maybe a main class and a animator class) it will be much appreciated. | 1 |
4,332,041 | 12/02/2010 05:38:27 | 52,273 | 01/07/2009 02:11:32 | 1,789 | 117 | How do I redirect all errors, including uncaught exceptions, NSLog calls, and other logs, to a log file on Mac OS X? | I am attempting to find a logging framework for a Cocoa application, written in ObjC.
What I've attempted so far:
1. Use NSLog, but then realise that it is very hard to configure and redirect. I suppose I could hack it and write a macro that obtains the information I want, such as thread ID, current function, current line, current file, current time, the message, etcetera, and then uses NSLog, however...
2. NSLog ultimately uses NSLogv, which ultimately uses asl, so I thought "fantastic", I tried using asl instead, with the default client and context (If I was doing this properly, I would've had to create a new client for each thread), however, unless I create a macro, this is also very verbose, and I noticed that the logs sent via asl got broadcast system wide, whereas NSLog only logged to stderr, and I want them to both go to the same log!
3. I then noticed that errors, are formatted in a different way (different datestamp, etc), so there is now a third logging context.
What l logging framework setup can I use to have ALL messages logged through that framework in a convenient fashion so that if there is a problem with an application, a developer can get the log files, and figure out what went wrong?
I don't want to simply redirect stderr, I want to have a structured log output that contains all of the logs. I don't want some logs going to standard output, I don't want any logs sent to a syslogd, I just want all the logs written to a single file, that reliably identifies all the pertinent information about that log message (such as thread ID, message, the function that called the logger, etcetera), in format that is easy to view and visualise.
Currently I am very tempted to write my own framework from scratch, but I am hoping to find something similar to python's logging framework, in my mind, that framework is /perfect/.
Does anyone have any suggestions? | cocoa | osx | logging | null | null | null | open | How do I redirect all errors, including uncaught exceptions, NSLog calls, and other logs, to a log file on Mac OS X?
===
I am attempting to find a logging framework for a Cocoa application, written in ObjC.
What I've attempted so far:
1. Use NSLog, but then realise that it is very hard to configure and redirect. I suppose I could hack it and write a macro that obtains the information I want, such as thread ID, current function, current line, current file, current time, the message, etcetera, and then uses NSLog, however...
2. NSLog ultimately uses NSLogv, which ultimately uses asl, so I thought "fantastic", I tried using asl instead, with the default client and context (If I was doing this properly, I would've had to create a new client for each thread), however, unless I create a macro, this is also very verbose, and I noticed that the logs sent via asl got broadcast system wide, whereas NSLog only logged to stderr, and I want them to both go to the same log!
3. I then noticed that errors, are formatted in a different way (different datestamp, etc), so there is now a third logging context.
What l logging framework setup can I use to have ALL messages logged through that framework in a convenient fashion so that if there is a problem with an application, a developer can get the log files, and figure out what went wrong?
I don't want to simply redirect stderr, I want to have a structured log output that contains all of the logs. I don't want some logs going to standard output, I don't want any logs sent to a syslogd, I just want all the logs written to a single file, that reliably identifies all the pertinent information about that log message (such as thread ID, message, the function that called the logger, etcetera), in format that is easy to view and visualise.
Currently I am very tempted to write my own framework from scratch, but I am hoping to find something similar to python's logging framework, in my mind, that framework is /perfect/.
Does anyone have any suggestions? | 0 |
6,467,893 | 06/24/2011 12:36:10 | 383,600 | 07/05/2010 11:08:40 | 70 | 4 | Comparing cloud hosting technologies(Azure, EC2 or Google) | I'm going to start a simple SaaS application and am considering which cloud technology to go with(Azure, EC2 or Google).
Can someone who experience both (actual use)point the pros and cons(performence,costs,easy to develop,easy to maintain) of each technology and recommend his favorite? | google-app-engine | azure | amazon-ec2 | null | null | null | open | Comparing cloud hosting technologies(Azure, EC2 or Google)
===
I'm going to start a simple SaaS application and am considering which cloud technology to go with(Azure, EC2 or Google).
Can someone who experience both (actual use)point the pros and cons(performence,costs,easy to develop,easy to maintain) of each technology and recommend his favorite? | 0 |
8,416,348 | 12/07/2011 13:49:10 | 1,041,993 | 11/11/2011 15:46:46 | 1 | 0 | Linux see "huawei bm338" as flash storage? | I am having trouble with linux, it sees the 4G usb huawei bm338 as flash storage, how can I let linux see it as 4G broadband so I can setup internet connection | linux | linux-device-driver | null | null | null | 12/07/2011 14:03:26 | off topic | Linux see "huawei bm338" as flash storage?
===
I am having trouble with linux, it sees the 4G usb huawei bm338 as flash storage, how can I let linux see it as 4G broadband so I can setup internet connection | 2 |
9,177,177 | 02/07/2012 13:34:27 | 1,194,740 | 02/07/2012 13:27:30 | 1 | 0 | How to insert a row in a table between two existing rows in Sql | I have a table with 9 records in it but i want to insert a row in between of 5th and 6th record. | mysql | null | null | null | null | 06/14/2012 13:12:07 | not a real question | How to insert a row in a table between two existing rows in Sql
===
I have a table with 9 records in it but i want to insert a row in between of 5th and 6th record. | 1 |
4,620,179 | 01/06/2011 21:39:26 | 499,448 | 11/06/2010 20:35:34 | 105 | 3 | Updating GUI Component from a different class C# WPF | I am trying to update a GUI component (DataGrid) in one class from a different class. I am using C# and WPF Forms.
When I used the standard WF forms I could pass a reference to the GUI component as a parameter to the function that needed to do the work with the DataGrid. However, I do not know how I can do this in WPF.
I have Class1 which has the GUI component and I need Class3 to run the function inside Class2 which will automatically update the GUI display of the Datagrid found in Class1.
Any help with this would be much appreciated. | c# | wpf | null | null | null | null | open | Updating GUI Component from a different class C# WPF
===
I am trying to update a GUI component (DataGrid) in one class from a different class. I am using C# and WPF Forms.
When I used the standard WF forms I could pass a reference to the GUI component as a parameter to the function that needed to do the work with the DataGrid. However, I do not know how I can do this in WPF.
I have Class1 which has the GUI component and I need Class3 to run the function inside Class2 which will automatically update the GUI display of the Datagrid found in Class1.
Any help with this would be much appreciated. | 0 |
1,186,891 | 07/27/2009 07:28:21 | 117,126 | 06/04/2009 07:16:04 | 28 | 6 | Careers alternative to programming after a degree in computer science? | I suppose most of the people who graduated in computer science work as a sw programmer/engineer / sw tester / software project manager.
I would like to ask what other career options exist for Computer scientist.
M. | career-development | education | degree | null | null | 01/25/2012 01:02:38 | not constructive | Careers alternative to programming after a degree in computer science?
===
I suppose most of the people who graduated in computer science work as a sw programmer/engineer / sw tester / software project manager.
I would like to ask what other career options exist for Computer scientist.
M. | 4 |
10,231,418 | 04/19/2012 15:24:51 | 422,835 | 08/17/2010 12:21:17 | 6 | 0 | How to Bypass Login Managers (GDM/KDM) | i have implemented a PAM module that logs user in according to login information written on NFC-Tags. i can log in via GDM or KDM with checking data on nfc tag and corresponding information on Ubuntu.
Here is my question:
*how can i bypass (GDM or KDM) login screen and log user in just with detecting and checking login infromation stored on NFC-tag?*
Example scenario:
When Ubuntu started, user put his tag on nfc reader and log in without any interaction with login screen.
-
Thanks in advance.
| ubuntu | pam | null | null | null | 04/20/2012 12:49:27 | off topic | How to Bypass Login Managers (GDM/KDM)
===
i have implemented a PAM module that logs user in according to login information written on NFC-Tags. i can log in via GDM or KDM with checking data on nfc tag and corresponding information on Ubuntu.
Here is my question:
*how can i bypass (GDM or KDM) login screen and log user in just with detecting and checking login infromation stored on NFC-tag?*
Example scenario:
When Ubuntu started, user put his tag on nfc reader and log in without any interaction with login screen.
-
Thanks in advance.
| 2 |
2,725,579 | 04/27/2010 22:20:03 | 41,956 | 11/30/2008 17:33:49 | 3,376 | 233 | Null-coalescing operator and operator && in C# | Is it possible to use together any way operator `??` and operator `&&` in next case:
bool? Any
{
get
{
var any = this.ViewState["any"] as bool?;
return any.HasValue ? any.Value && this.SomeBool : any;
}
}
This means next:
- if `any` is null then `this.Any.HasValue` return `false`
- if `any` has value, then it returns value considering another boolean property, i.e. `Any && SomeBool` | c# | boolean-logic | logical-operators | null-coalescing-operator | null | null | open | Null-coalescing operator and operator && in C#
===
Is it possible to use together any way operator `??` and operator `&&` in next case:
bool? Any
{
get
{
var any = this.ViewState["any"] as bool?;
return any.HasValue ? any.Value && this.SomeBool : any;
}
}
This means next:
- if `any` is null then `this.Any.HasValue` return `false`
- if `any` has value, then it returns value considering another boolean property, i.e. `Any && SomeBool` | 0 |
5,491,554 | 03/30/2011 19:55:07 | 643,545 | 03/03/2011 19:14:34 | 49 | 0 | download x11 for windows 7 | i want to download x11 for windows 7, any to a safe download please | x11 | null | null | null | null | 03/30/2011 20:14:56 | off topic | download x11 for windows 7
===
i want to download x11 for windows 7, any to a safe download please | 2 |
2,264,974 | 02/15/2010 09:38:38 | 273,347 | 02/15/2010 08:52:24 | 1 | 0 | Psychology researcher wants to learn new language | I'm currently considering R, matlab, or python, but I'm open to other options. Could you help me pick the best language for my needs? Here are the criteria I have in mind (not in order):
1. Simple to learn. I don't really have a lot of free time, so I'm looking for something that isn't extremely complicated and/or difficult to pick up. I know some C, FWIW.
2. Good for statistics/psychometrics. I do a ton of statistics and psychometrics analysis. A lot of it is basic stuff that I can do with SPSS, but I'd like to play around with the more advanced stuff too (bootstrapping, genetic programming, data mining, neural nets, modeling, etc). I'm looking for a language/environment that can help me run my simpler analyses faster and give me more options than a canned stat package like SPSS. If it can even make tables for me, then it'll be perfect.
3. I also do a fair bit of experimental psychology. I use a canned experiment "programming" software (SuperLab) to make most of my experiments, but I want to be able to program executable programs that I can run on any computer and that can compile the data from the experiments in a spreadsheet. I know python has psychopy and pyepl and matlab has psychtoolbox, but I don't know which one is best. If R had something like this, I'd probably be sold on R already.
4. I'm looking for something regularly used in academe and industry. Everybody else here (including myself, so far) uses canned stat and experiment programming software. One of the reasons I'm trying to learn a programming language is so that I can keep up when I move to another lab.
Looking forward to your comments and suggestions. | psychology | matlab | r | python | null | 12/20/2011 19:22:50 | off topic | Psychology researcher wants to learn new language
===
I'm currently considering R, matlab, or python, but I'm open to other options. Could you help me pick the best language for my needs? Here are the criteria I have in mind (not in order):
1. Simple to learn. I don't really have a lot of free time, so I'm looking for something that isn't extremely complicated and/or difficult to pick up. I know some C, FWIW.
2. Good for statistics/psychometrics. I do a ton of statistics and psychometrics analysis. A lot of it is basic stuff that I can do with SPSS, but I'd like to play around with the more advanced stuff too (bootstrapping, genetic programming, data mining, neural nets, modeling, etc). I'm looking for a language/environment that can help me run my simpler analyses faster and give me more options than a canned stat package like SPSS. If it can even make tables for me, then it'll be perfect.
3. I also do a fair bit of experimental psychology. I use a canned experiment "programming" software (SuperLab) to make most of my experiments, but I want to be able to program executable programs that I can run on any computer and that can compile the data from the experiments in a spreadsheet. I know python has psychopy and pyepl and matlab has psychtoolbox, but I don't know which one is best. If R had something like this, I'd probably be sold on R already.
4. I'm looking for something regularly used in academe and industry. Everybody else here (including myself, so far) uses canned stat and experiment programming software. One of the reasons I'm trying to learn a programming language is so that I can keep up when I move to another lab.
Looking forward to your comments and suggestions. | 2 |
5,674,683 | 04/15/2011 09:15:47 | 617,801 | 02/15/2011 12:59:45 | 55 | 4 | How to show icon of apk in my File manager | I want to show icon of apk file in my listview.
How can i get icon of apk? | android | icons | apk | null | null | null | open | How to show icon of apk in my File manager
===
I want to show icon of apk file in my listview.
How can i get icon of apk? | 0 |
9,520,522 | 03/01/2012 16:56:39 | 844,872 | 07/14/2011 15:13:52 | 678 | 6 | Predicting age by an image - Beginner | I am new to `AI` (Artificial intelligence). i have been asked to predict a persons age from a `JPEG`. Since i am new to `AI`. i don't know how this is done.
I am hoping to use `Java` or `Objective-C` for this.
Can someone point me to a Tutorial/libraries/sample code or anything that you think will be useful.
note: And if you think, **SO** is not the right place to ask AI related questions, then point me to a suitable forum.
edit: and it should free
| java | objective-c | artificial-intelligence | null | null | 03/01/2012 18:46:56 | not constructive | Predicting age by an image - Beginner
===
I am new to `AI` (Artificial intelligence). i have been asked to predict a persons age from a `JPEG`. Since i am new to `AI`. i don't know how this is done.
I am hoping to use `Java` or `Objective-C` for this.
Can someone point me to a Tutorial/libraries/sample code or anything that you think will be useful.
note: And if you think, **SO** is not the right place to ask AI related questions, then point me to a suitable forum.
edit: and it should free
| 4 |
8,222,277 | 11/22/2011 05:12:35 | 1,058,419 | 11/21/2011 19:00:48 | 1 | 0 | iphone camera toolbar | Ok I am making a iPhone camera app where I am adding my custom buttons at the bottom. .
picpicker.showsCameraControls = NO;
picpicker.navigationBarHidden = NO;
Basically I want my app to look like the camera app that comes with the iPhone so that the users can keep taking multiple pictures or videos, plus I will add some additional buttons/features to it as well.
What I want to ask is that when I launch my app
- I created an overlay
- In the overlay I added a toolbar
- In the toolbar I added two custom buttons -Take Pic, -Done
I got the Done function to get implemented properly but how do I implement Take pic button function.
UIBarButtonItem *takePicButton = [[UIBarButtonItem alloc] initWithTitle:@"Take Pic" style:(UIBarButtonItemStyleBordered) target:self action:@selector(takePictureWithCamera)];
UIBarButtonItem *cancelPicButton = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:(UIBarButtonItemStyleBordered) target:self action:@selector(cancelPictureWithCamera)];
NSArray *items = [NSArray arrayWithObjects: takePicButton, cancelPicButton, nil];
[toolbar setItems:items animated:NO];
[overlayview addSubview:toolbar];
...
...
-(IBAction)cancelPictureWithCamera
{
NSLog(@"INSIDE cancelPictureWithCamera Function");
[self dismissModalViewControllerAnimated:YES];
}
-(IBAction)takePictureWithCamera
{
NSLog(@"INSIDE takePictureWithCamera Function");
?????
//I can't do this as the Xcode doesn't like it
[self imagePickerController];
}
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{ ......
........
| iphone | null | null | null | null | null | open | iphone camera toolbar
===
Ok I am making a iPhone camera app where I am adding my custom buttons at the bottom. .
picpicker.showsCameraControls = NO;
picpicker.navigationBarHidden = NO;
Basically I want my app to look like the camera app that comes with the iPhone so that the users can keep taking multiple pictures or videos, plus I will add some additional buttons/features to it as well.
What I want to ask is that when I launch my app
- I created an overlay
- In the overlay I added a toolbar
- In the toolbar I added two custom buttons -Take Pic, -Done
I got the Done function to get implemented properly but how do I implement Take pic button function.
UIBarButtonItem *takePicButton = [[UIBarButtonItem alloc] initWithTitle:@"Take Pic" style:(UIBarButtonItemStyleBordered) target:self action:@selector(takePictureWithCamera)];
UIBarButtonItem *cancelPicButton = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:(UIBarButtonItemStyleBordered) target:self action:@selector(cancelPictureWithCamera)];
NSArray *items = [NSArray arrayWithObjects: takePicButton, cancelPicButton, nil];
[toolbar setItems:items animated:NO];
[overlayview addSubview:toolbar];
...
...
-(IBAction)cancelPictureWithCamera
{
NSLog(@"INSIDE cancelPictureWithCamera Function");
[self dismissModalViewControllerAnimated:YES];
}
-(IBAction)takePictureWithCamera
{
NSLog(@"INSIDE takePictureWithCamera Function");
?????
//I can't do this as the Xcode doesn't like it
[self imagePickerController];
}
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{ ......
........
| 0 |
8,617,559 | 12/23/2011 15:11:26 | 1,113,600 | 12/23/2011 15:09:09 | 1 | 0 | UITabBar padding | Is there a ways to adjust the width of the padding that Cocoa UITabBar buttons? I'm working on an iPad project and I would like to reduce the padding between buttons for a slightly tighter look. Am I out of luck? | ios | cocoa | uitabbar | padding | uitabbaritem | null | open | UITabBar padding
===
Is there a ways to adjust the width of the padding that Cocoa UITabBar buttons? I'm working on an iPad project and I would like to reduce the padding between buttons for a slightly tighter look. Am I out of luck? | 0 |
10,409,125 | 05/02/2012 07:00:33 | 308,251 | 04/03/2010 10:35:48 | 1,359 | 114 | Android read text file from asset folder using C (ndk) | I need to read text file from asset folder in android, by searching through internet I found that there is asset_manager api available from android 2.3 onwards. As I am targeting only tablet devices this is useful. But as I am not expert in C language I am not able to find any example on how to read/write files using file descriptor. I found many examples using FILE* (file pointers)
> My goal is to decrypt a js file from asset folder which is encrypted
> using C (for securing the code), as js code is visible if end user
> decompiled my apk. Because asset folder is inside zip file is it possible to do? | c | encryption | android-ndk | null | null | null | open | Android read text file from asset folder using C (ndk)
===
I need to read text file from asset folder in android, by searching through internet I found that there is asset_manager api available from android 2.3 onwards. As I am targeting only tablet devices this is useful. But as I am not expert in C language I am not able to find any example on how to read/write files using file descriptor. I found many examples using FILE* (file pointers)
> My goal is to decrypt a js file from asset folder which is encrypted
> using C (for securing the code), as js code is visible if end user
> decompiled my apk. Because asset folder is inside zip file is it possible to do? | 0 |
2,725,542 | 04/27/2010 22:12:36 | 2,635 | 08/23/2008 19:46:51 | 16,548 | 178 | What is the best way to translate this recursive python method into Java? | In [another question][1] I was provided with a great answer involving generating certain sets for the Chinese Postman Problem.
The answer provided was:
def get_pairs(s):
if not s: yield []
else:
i = min(s)
for j in s - set([i]):
for r in get_pairs(s - set([i, j])):
yield [(i, j)] + r
for x in get_pairs(set([1,2,3,4,5,6])):
print x
This will output the desire result of:
[(1, 2), (3, 4), (5, 6)]
[(1, 2), (3, 5), (4, 6)]
[(1, 2), (3, 6), (4, 5)]
[(1, 3), (2, 4), (5, 6)]
[(1, 3), (2, 5), (4, 6)]
[(1, 3), (2, 6), (4, 5)]
[(1, 4), (2, 3), (5, 6)]
[(1, 4), (2, 5), (3, 6)]
[(1, 4), (2, 6), (3, 5)]
[(1, 5), (2, 3), (4, 6)]
[(1, 5), (2, 4), (3, 6)]
[(1, 5), (2, 6), (3, 4)]
[(1, 6), (2, 3), (4, 5)]
[(1, 6), (2, 4), (3, 5)]
[(1, 6), (2, 5), (3, 4)]
This really shows off the expressiveness of Python because this is almost exactly how I would write the pseudo-code for the algorithm. I especially like the usage of yield and and the way that sets are treated as first class citizens.
However, there in lies my problem.
What would be the best way to:
1.Duplicate the functionality of the yield return construct in Java? Would it instead be best to maintain a list and append my partial results to this list? How would you handle the yield keyword.
2.Handle the dealing with the sets? I know that I could probably use one of the Java collections which implements that implements the Set interface and then using things like removeAll() to give me a set difference. Is this what you would do in that case?
Ultimately, I'm looking to reduce this method into as concise and straightforward way as possible in Java. I'm thinking the return type of the java version of this method will likely return a list of int arrays or something similar.
How would you handle the situations above when converting this method into Java?
[1]: http://stackoverflow.com/questions/2715585/how-should-i-generate-the-partitions-pairs-for-the-chinese-postman-problem
| java | python | yield | sets | null | null | open | What is the best way to translate this recursive python method into Java?
===
In [another question][1] I was provided with a great answer involving generating certain sets for the Chinese Postman Problem.
The answer provided was:
def get_pairs(s):
if not s: yield []
else:
i = min(s)
for j in s - set([i]):
for r in get_pairs(s - set([i, j])):
yield [(i, j)] + r
for x in get_pairs(set([1,2,3,4,5,6])):
print x
This will output the desire result of:
[(1, 2), (3, 4), (5, 6)]
[(1, 2), (3, 5), (4, 6)]
[(1, 2), (3, 6), (4, 5)]
[(1, 3), (2, 4), (5, 6)]
[(1, 3), (2, 5), (4, 6)]
[(1, 3), (2, 6), (4, 5)]
[(1, 4), (2, 3), (5, 6)]
[(1, 4), (2, 5), (3, 6)]
[(1, 4), (2, 6), (3, 5)]
[(1, 5), (2, 3), (4, 6)]
[(1, 5), (2, 4), (3, 6)]
[(1, 5), (2, 6), (3, 4)]
[(1, 6), (2, 3), (4, 5)]
[(1, 6), (2, 4), (3, 5)]
[(1, 6), (2, 5), (3, 4)]
This really shows off the expressiveness of Python because this is almost exactly how I would write the pseudo-code for the algorithm. I especially like the usage of yield and and the way that sets are treated as first class citizens.
However, there in lies my problem.
What would be the best way to:
1.Duplicate the functionality of the yield return construct in Java? Would it instead be best to maintain a list and append my partial results to this list? How would you handle the yield keyword.
2.Handle the dealing with the sets? I know that I could probably use one of the Java collections which implements that implements the Set interface and then using things like removeAll() to give me a set difference. Is this what you would do in that case?
Ultimately, I'm looking to reduce this method into as concise and straightforward way as possible in Java. I'm thinking the return type of the java version of this method will likely return a list of int arrays or something similar.
How would you handle the situations above when converting this method into Java?
[1]: http://stackoverflow.com/questions/2715585/how-should-i-generate-the-partitions-pairs-for-the-chinese-postman-problem
| 0 |
5,731,838 | 04/20/2011 14:20:03 | 708,195 | 04/14/2011 15:02:53 | 15 | 0 | Is it illegal to write your own encyption | Someone told me it was illegal to write your own encryption is this true? | security | encryption | protection | null | null | 04/20/2011 14:38:28 | off topic | Is it illegal to write your own encyption
===
Someone told me it was illegal to write your own encryption is this true? | 2 |
7,923,118 | 10/27/2011 22:16:35 | 895,761 | 08/15/2011 23:14:43 | 7 | 1 | The correct way to use GIT? | What is the correct way to use Git? Let me explain. I have a bin/ folder with tons of Bash, Python scripts and some C code. I did "git init" in this folder, then I did "git add file_name". I thought "git add ." would not be good because it would think that all the different scripts and programs were part of the same commit. The "git status" command just scrolls off the page. When I create a branch I don't know what name to give it.
Is it better to make a folder for each individual project for code? And then run "git init" and then "git add ."
in each folder? I think it would be easier to branch that way too. What do you guys think? | git | null | null | null | null | null | open | The correct way to use GIT?
===
What is the correct way to use Git? Let me explain. I have a bin/ folder with tons of Bash, Python scripts and some C code. I did "git init" in this folder, then I did "git add file_name". I thought "git add ." would not be good because it would think that all the different scripts and programs were part of the same commit. The "git status" command just scrolls off the page. When I create a branch I don't know what name to give it.
Is it better to make a folder for each individual project for code? And then run "git init" and then "git add ."
in each folder? I think it would be easier to branch that way too. What do you guys think? | 0 |
8,801,400 | 01/10/2012 10:01:01 | 980,202 | 10/05/2011 10:54:18 | 11 | 3 | How to run different versions of the same project at the same time? | I have 2 versions of the same project.
I copied version A and pasted it in another directory. Lets call this copied version B.
When I change some code in version A and I want to run version B the compiler see the changes I made in version A.
How can I run this B version without the changes I have made in version A?
Already thnx. | c# | null | null | null | null | 01/10/2012 13:06:30 | not a real question | How to run different versions of the same project at the same time?
===
I have 2 versions of the same project.
I copied version A and pasted it in another directory. Lets call this copied version B.
When I change some code in version A and I want to run version B the compiler see the changes I made in version A.
How can I run this B version without the changes I have made in version A?
Already thnx. | 1 |
4,752,440 | 01/20/2011 20:51:22 | 16,313 | 09/17/2008 16:08:32 | 360 | 8 | Opening an image in Photoshop using ScriptingBridge | I have an AppleScript that I am trying to convert to ScriptingBridge. ScriptingBridge is much easier to use and quite a bit faster (not to mention I hate dynamically building AppleScripts).
Everything seems to be working well if the image is already open in Photoshop, but I can't seem to get Photoshop to open an image through ScriptingBridge. The type ScriptingBridge is creating for the file in the open API is just an id, so I don't know what type it's expecting here. Anything I've tried passing in it has just ignored.
In AppleScript I create it as an alias with an absolute path. Any ideas how to create an alias to pass in? Or what other type of object I should be passing? | objective-c | applescript | photoshop | scripting-bridge | null | null | open | Opening an image in Photoshop using ScriptingBridge
===
I have an AppleScript that I am trying to convert to ScriptingBridge. ScriptingBridge is much easier to use and quite a bit faster (not to mention I hate dynamically building AppleScripts).
Everything seems to be working well if the image is already open in Photoshop, but I can't seem to get Photoshop to open an image through ScriptingBridge. The type ScriptingBridge is creating for the file in the open API is just an id, so I don't know what type it's expecting here. Anything I've tried passing in it has just ignored.
In AppleScript I create it as an alias with an absolute path. Any ideas how to create an alias to pass in? Or what other type of object I should be passing? | 0 |
4,574,301 | 01/01/2011 14:07:39 | 1,423,644 | 12/20/2010 13:52:34 | 41 | 1 | accessing picture box on childform, c# | i have childform and parent form
I want to show picture in picturebox in childform at run time.
How can I access it from parent form.
e.g.
i can change nackground of childform from parentform
it works childForm.BackgroundImage = Image.FromFile(str[2]);
but how can i access picturebox.
i tried like this
public PictureBox picturebox1
{
get
{
return picturebox1;
}
set
{
picturebox1 = value;
}
}
and then from parentform
childForm.picturebox1.Image = Image.FromFile(str[2]);
but got unhandeled exception error.
anyhint
regards, | c# | null | null | null | null | null | open | accessing picture box on childform, c#
===
i have childform and parent form
I want to show picture in picturebox in childform at run time.
How can I access it from parent form.
e.g.
i can change nackground of childform from parentform
it works childForm.BackgroundImage = Image.FromFile(str[2]);
but how can i access picturebox.
i tried like this
public PictureBox picturebox1
{
get
{
return picturebox1;
}
set
{
picturebox1 = value;
}
}
and then from parentform
childForm.picturebox1.Image = Image.FromFile(str[2]);
but got unhandeled exception error.
anyhint
regards, | 0 |
7,401,517 | 09/13/2011 12:01:47 | 809,395 | 06/21/2011 22:59:11 | 39 | 4 | error when running chat app on simulator xcode iphone | I am working on xmpp for jabber client on iphone specifying server name as gmail.com ,when i run it on iphone it works ok giving all the available friends list but when i run it on simulator it gives me an error on console
Error Domain=kCFStreamErrorDomainNetDB Code=8 "nodename nor servname provided, or not known" UserInfo=0x4f7bbb0 {NSLocalizedDescription=nodename nor servname provided, or not known}.Also i can't debug it neither on iphone nor on simulator
any help would be appreciated
Thanks
Vikas | iphone | xcode | debugging | xmpp | null | 09/14/2011 09:07:39 | not a real question | error when running chat app on simulator xcode iphone
===
I am working on xmpp for jabber client on iphone specifying server name as gmail.com ,when i run it on iphone it works ok giving all the available friends list but when i run it on simulator it gives me an error on console
Error Domain=kCFStreamErrorDomainNetDB Code=8 "nodename nor servname provided, or not known" UserInfo=0x4f7bbb0 {NSLocalizedDescription=nodename nor servname provided, or not known}.Also i can't debug it neither on iphone nor on simulator
any help would be appreciated
Thanks
Vikas | 1 |
10,475,052 | 05/06/2012 23:09:39 | 239,879 | 12/29/2009 00:03:06 | 1,114 | 28 | Why won't Express.js properly read POST parameters? | HEre's my POST:
account_id 1231
limit 3
ordertype limit
quantity 1
symbol USDJPY
transaction_type buy
In my code, I have:
var account_id = req.param('account_id', null);
var symbol_pair = req.param('symbol', null);
var transaction_type = req.param('transaction_type', null);
var order_type = req.param('ordertype', null);
var amount = req.param('amount', null);
var limit = req.param('limit', null);
console.log(account_id + " | " + symbol_pair + " | " + transaction_type + " | " + order_type + " | " + amount + " | " + limit);return;
But for some reason `ordertype` comes back `market`. Any ideas what's going on? | node.js | http-post | express | null | null | 05/07/2012 13:12:29 | not a real question | Why won't Express.js properly read POST parameters?
===
HEre's my POST:
account_id 1231
limit 3
ordertype limit
quantity 1
symbol USDJPY
transaction_type buy
In my code, I have:
var account_id = req.param('account_id', null);
var symbol_pair = req.param('symbol', null);
var transaction_type = req.param('transaction_type', null);
var order_type = req.param('ordertype', null);
var amount = req.param('amount', null);
var limit = req.param('limit', null);
console.log(account_id + " | " + symbol_pair + " | " + transaction_type + " | " + order_type + " | " + amount + " | " + limit);return;
But for some reason `ordertype` comes back `market`. Any ideas what's going on? | 1 |
9,309,959 | 02/16/2012 10:50:09 | 1,099,972 | 12/15/2011 13:36:37 | 98 | 4 | Symfony2,Doctrine Extensions Tree : Generating a "tree"-like dropdown Select list | I have a Categories table, built with Tree architecture, using Doctrine Tree Extension
and it looks something like this
id parent_id title lft lvl rgt root
864 (NULL) Movies 1 0 18 864
865 864 Packs 2 1 3 864
866 864 Dubbed 4 1 5 864
and visually like this:
Movies
|
|
|->Packs
|->Dubbed
now i want to generated form for adding reviews , and loading categories as dropdown list for each movie, so i have in my movie-review form-type-class
public function buildForm(FormBuilder $builder, array $options)
{
$builder->add('name');
$builder->add('file');
$builder->add('cover');
$builder->add('category','entity', array('class'=>'Tracker\MembersBundle\Entity\Category', 'property'=>'title', ));
}
which generates a normal dropdown menu like this:
http://oi44.tinypic.com/hsrl2u.jpg
how can i configure my menu settings, so it generates a **Tree-Like-dropdown select** like this?
http://oi40.tinypic.com/ak7fyg.jpg | html | forms | symfony-2.0 | doctrine2 | null | null | open | Symfony2,Doctrine Extensions Tree : Generating a "tree"-like dropdown Select list
===
I have a Categories table, built with Tree architecture, using Doctrine Tree Extension
and it looks something like this
id parent_id title lft lvl rgt root
864 (NULL) Movies 1 0 18 864
865 864 Packs 2 1 3 864
866 864 Dubbed 4 1 5 864
and visually like this:
Movies
|
|
|->Packs
|->Dubbed
now i want to generated form for adding reviews , and loading categories as dropdown list for each movie, so i have in my movie-review form-type-class
public function buildForm(FormBuilder $builder, array $options)
{
$builder->add('name');
$builder->add('file');
$builder->add('cover');
$builder->add('category','entity', array('class'=>'Tracker\MembersBundle\Entity\Category', 'property'=>'title', ));
}
which generates a normal dropdown menu like this:
http://oi44.tinypic.com/hsrl2u.jpg
how can i configure my menu settings, so it generates a **Tree-Like-dropdown select** like this?
http://oi40.tinypic.com/ak7fyg.jpg | 0 |
11,675,819 | 07/26/2012 18:34:41 | 1,555,690 | 07/26/2012 18:28:29 | 1 | 0 | what would need to change on IIS for SSL Enabled SQL server | I have IIS set with windows intergrated security, the intranet c# web application connects database with trust connection.
Everything works fine till we enabled SSL on the database (Sql server 2008), now we got the error "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'". Tried to change the SQL server connection string, but would not work. Any suggestion? | c# | sql | iis | ssl | server | 07/30/2012 06:42:56 | off topic | what would need to change on IIS for SSL Enabled SQL server
===
I have IIS set with windows intergrated security, the intranet c# web application connects database with trust connection.
Everything works fine till we enabled SSL on the database (Sql server 2008), now we got the error "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'". Tried to change the SQL server connection string, but would not work. Any suggestion? | 2 |
9,786,437 | 03/20/2012 12:07:54 | 1,211,231 | 02/15/2012 11:47:20 | 1 | 0 | Alias name is same as column name | In sql server 2008 alias name is same as column name so am getting error The column was specified multiple times.I cn't change the alias name the application breaks
this is the query.
]The column 'published' was specified multiple times for '_myResults'.SQL=SELECT TOP 20 * FROM (SELECT a.id, a.menutype, a.title, a.alias, a.note, a.path, a.link, a.type, a.parent_id, a.level, a.published, a.component_id, a.ordering, a.checked_out, a.checked_out_time, a.browserNav, a.access, a.img, a.template_style_id, a.params, a.lft, a.rgt, a.home, a.language, a.client_id,CASE a.type WHEN N'component' THEN a.published+2*(e.enabled-1) WHEN N'url' THEN a.published+2 WHEN N'alias' THEN a.published+4 WHEN N'separator' THEN a.published+6 END AS published,l.title AS language_title, l.image as image,u.name AS editor,c.element AS componentname,ag.title AS access_level,e.name AS name ,ROW_NUMBER() OVER (ORDER BY a.lft asc) AS RowNumber FROM [ax_menu] AS a LEFT JOIN [ax_languages] AS l ON l.lang_code = a.language LEFT JOIN [ax_users] AS u ON u.id = a.checked_out LEFT JOIN [ax_extensions] AS c ON c.extension_id = a.component_id LEFT JOIN ax_viewlevels AS ag ON ag.id = a.access LEFT JOIN ax_extensions AS e ON e.extension_id = a.component_id WHERE a.id > 1 AND a.client_id = 0 AND (a.published IN (0, 1)) AND a.menutype = N'aboutjoomla' ) _myResults WHERE RowNumber > 0 | sql-server | null | null | null | null | 03/21/2012 14:06:51 | not a real question | Alias name is same as column name
===
In sql server 2008 alias name is same as column name so am getting error The column was specified multiple times.I cn't change the alias name the application breaks
this is the query.
]The column 'published' was specified multiple times for '_myResults'.SQL=SELECT TOP 20 * FROM (SELECT a.id, a.menutype, a.title, a.alias, a.note, a.path, a.link, a.type, a.parent_id, a.level, a.published, a.component_id, a.ordering, a.checked_out, a.checked_out_time, a.browserNav, a.access, a.img, a.template_style_id, a.params, a.lft, a.rgt, a.home, a.language, a.client_id,CASE a.type WHEN N'component' THEN a.published+2*(e.enabled-1) WHEN N'url' THEN a.published+2 WHEN N'alias' THEN a.published+4 WHEN N'separator' THEN a.published+6 END AS published,l.title AS language_title, l.image as image,u.name AS editor,c.element AS componentname,ag.title AS access_level,e.name AS name ,ROW_NUMBER() OVER (ORDER BY a.lft asc) AS RowNumber FROM [ax_menu] AS a LEFT JOIN [ax_languages] AS l ON l.lang_code = a.language LEFT JOIN [ax_users] AS u ON u.id = a.checked_out LEFT JOIN [ax_extensions] AS c ON c.extension_id = a.component_id LEFT JOIN ax_viewlevels AS ag ON ag.id = a.access LEFT JOIN ax_extensions AS e ON e.extension_id = a.component_id WHERE a.id > 1 AND a.client_id = 0 AND (a.published IN (0, 1)) AND a.menutype = N'aboutjoomla' ) _myResults WHERE RowNumber > 0 | 1 |
10,165,693 | 04/15/2012 20:18:18 | 989,757 | 10/11/2011 14:41:45 | 68 | 0 | Ubuntu - Eclipse cannot load SWT libraries. Not opening | Every time I try to open Eclipse in Ubuntu 12.04 I get an Unsatisfied Link Error and it will not open. I have recently installed the java JDK and Android SDK, could this be the problem? I followed this tutorial - http://forums.team-nocturnal.com/showthread.php/772
Here is the log info.
!SESSION 2012-04-15 21:05:46.902 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.osgi 4 0 2012-04-15 21:05:47.885
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path
Can't load library: /home/tom/.swt/lib/linux/x86_64/libswt-gtk-3740.so
Can't load library: /home/tom/.swt/lib/linux/x86_64/libswt-gtk.so
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:285)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:132)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:695)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:153)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:95)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
I have tried uninstalling and reinstalling, and removing the ~/.eclipse directory but it still doesn't work
Thanks
Tom | java | eclipse | swt | unsatisfiedlinkerror | null | 04/30/2012 20:57:07 | not a real question | Ubuntu - Eclipse cannot load SWT libraries. Not opening
===
Every time I try to open Eclipse in Ubuntu 12.04 I get an Unsatisfied Link Error and it will not open. I have recently installed the java JDK and Android SDK, could this be the problem? I followed this tutorial - http://forums.team-nocturnal.com/showthread.php/772
Here is the log info.
!SESSION 2012-04-15 21:05:46.902 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.7.0
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_GB
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.osgi 4 0 2012-04-15 21:05:47.885
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path
Can't load library: /home/tom/.swt/lib/linux/x86_64/libswt-gtk-3740.so
Can't load library: /home/tom/.swt/lib/linux/x86_64/libswt-gtk.so
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:285)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:194)
at org.eclipse.swt.internal.C.<clinit>(C.java:21)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:132)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:695)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplication.java:153)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:95)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
I have tried uninstalling and reinstalling, and removing the ~/.eclipse directory but it still doesn't work
Thanks
Tom | 1 |
6,683,814 | 07/13/2011 18:34:07 | 663,604 | 03/17/2011 02:53:43 | 679 | 50 | Is this Good PHP Commenting Practice??? | I am writing a PHP package library, and I'd like it to have a *really* good method for commenting and documenting my code. I am using this page from the Joomla CMS as an example to help me comment my code: [http://api.joomla.org/__filesource/fsource_Joomla-Framework_Database_joomladatabasedatabasemysqli.php.html](http://api.joomla.org/__filesource/fsource_Joomla-Framework_Database_joomladatabasedatabasemysqli.php.html).
Take a look at the Java-like annotations added at the top of each page, before each class declaration, before each instance variable, and before each method. Here is what I am wondering:
1. Is that level of commenting, with all of its annotation, considered **really good** code commenting practice for OOP developers, or is it useless and overkill?
2. I notice they are using [phpDocumenter](http://www.phpdoc.org/) to document their code, as you can see by scrolling to the bottom of the page. Are those annotations only considered "good practice" if I decide to use phpDocumenter, or some other system or website, to provide detailed documentation of my code?
3. If these annotations are considered good practice, what annotations do you recommend I use? I don't want to a lot of time updating my annotations every time I create a create/update a class.
Sorry for the crash list of questions, but I am really lost on this.
Thank you for your time! | php | documentation | commenting | phpdocumenter | null | 07/14/2011 01:59:41 | off topic | Is this Good PHP Commenting Practice???
===
I am writing a PHP package library, and I'd like it to have a *really* good method for commenting and documenting my code. I am using this page from the Joomla CMS as an example to help me comment my code: [http://api.joomla.org/__filesource/fsource_Joomla-Framework_Database_joomladatabasedatabasemysqli.php.html](http://api.joomla.org/__filesource/fsource_Joomla-Framework_Database_joomladatabasedatabasemysqli.php.html).
Take a look at the Java-like annotations added at the top of each page, before each class declaration, before each instance variable, and before each method. Here is what I am wondering:
1. Is that level of commenting, with all of its annotation, considered **really good** code commenting practice for OOP developers, or is it useless and overkill?
2. I notice they are using [phpDocumenter](http://www.phpdoc.org/) to document their code, as you can see by scrolling to the bottom of the page. Are those annotations only considered "good practice" if I decide to use phpDocumenter, or some other system or website, to provide detailed documentation of my code?
3. If these annotations are considered good practice, what annotations do you recommend I use? I don't want to a lot of time updating my annotations every time I create a create/update a class.
Sorry for the crash list of questions, but I am really lost on this.
Thank you for your time! | 2 |
7,253,491 | 08/31/2011 06:47:09 | 280,693 | 02/24/2010 20:53:53 | 2,693 | 185 | Why does NuGet check out all csproj-files in TFS on update-package? | I have a solution with multiple projects, many of the projects have NuGet packages installed, some of them have the same packages installed. When I run `update-package` NuGet checks out every csproj-file and occasioanlly it also adds some app.config file to some projects. | tfs | nuget | null | null | null | null | open | Why does NuGet check out all csproj-files in TFS on update-package?
===
I have a solution with multiple projects, many of the projects have NuGet packages installed, some of them have the same packages installed. When I run `update-package` NuGet checks out every csproj-file and occasioanlly it also adds some app.config file to some projects. | 0 |
4,129,945 | 11/09/2010 02:21:51 | 501,365 | 11/09/2010 01:53:55 | 1 | 0 | Android Game Singleton or Application or neither | I'm attempting to learn the ropes of Game Development and Android and it's been a great learning experience so far, but the Android Activity Lifecycle stuff has me a little stuck. Lets say I have three Activities - Game Menu, Level Select and The Actual Game (2d Game using the SurfaceView). I would think I need to load all Bitmaps and Sounds outside the Actual Game Activity to prevent from having to unload and reload them everytime onDestroy and onCreate is called, for example, like when the phone goes to sleep, or everytime a new level is chose from the level select screen. This led me to the Singleton approach which makes sense and seems to be what I'm after, but I don't fully understand where I would need to unload Singleton to make sure it gets GC'd, for example, could I release it in the Game Menu onDestroy, if so, how do i know if the Game Menu Activity will hang around indefinately. I've also seen mention of Android being able to kill the singleton on its own. I have also read some about using the Application Context that would give me lifecycle.
What would be the best way to approach this? Do I really want to unload and reload all the resources in the Game Activity? Am I going in the right direction with the Singleton or Application idea?
| android | singleton | load | unload | null | null | open | Android Game Singleton or Application or neither
===
I'm attempting to learn the ropes of Game Development and Android and it's been a great learning experience so far, but the Android Activity Lifecycle stuff has me a little stuck. Lets say I have three Activities - Game Menu, Level Select and The Actual Game (2d Game using the SurfaceView). I would think I need to load all Bitmaps and Sounds outside the Actual Game Activity to prevent from having to unload and reload them everytime onDestroy and onCreate is called, for example, like when the phone goes to sleep, or everytime a new level is chose from the level select screen. This led me to the Singleton approach which makes sense and seems to be what I'm after, but I don't fully understand where I would need to unload Singleton to make sure it gets GC'd, for example, could I release it in the Game Menu onDestroy, if so, how do i know if the Game Menu Activity will hang around indefinately. I've also seen mention of Android being able to kill the singleton on its own. I have also read some about using the Application Context that would give me lifecycle.
What would be the best way to approach this? Do I really want to unload and reload all the resources in the Game Activity? Am I going in the right direction with the Singleton or Application idea?
| 0 |
5,359,454 | 03/19/2011 01:44:12 | 186,964 | 10/09/2009 07:15:48 | 374 | 9 | PyPE ansi or unicode? | I want to start programming in python and I read on the internet that PyPE is a good editor. When I went to the website There is the option to download an ansi or unicode version.
Witch one should I use? | python | unicode | editor | text-editor | ansi | null | open | PyPE ansi or unicode?
===
I want to start programming in python and I read on the internet that PyPE is a good editor. When I went to the website There is the option to download an ansi or unicode version.
Witch one should I use? | 0 |
5,724,206 | 04/20/2011 00:10:18 | 295,189 | 03/16/2010 21:44:33 | 895 | 16 | parsing through Json with jquery | here is my object that I want to parse through
my.test = [{"Customer":
{
"id":"123",
"Name":"john",
}
I have this already
$.each(Cmy.test, function(index, value) {
$.each(value.Customer, function(innerIndex, innerValue) {
alert('File ' + innerValue.id + ' in customer ' + index);
});
but my alert shows undefined for value. What am I doing wrong
}); | javascript | jquery | json | null | null | null | open | parsing through Json with jquery
===
here is my object that I want to parse through
my.test = [{"Customer":
{
"id":"123",
"Name":"john",
}
I have this already
$.each(Cmy.test, function(index, value) {
$.each(value.Customer, function(innerIndex, innerValue) {
alert('File ' + innerValue.id + ' in customer ' + index);
});
but my alert shows undefined for value. What am I doing wrong
}); | 0 |
3,196,013 | 07/07/2010 15:02:01 | 330,013 | 04/30/2010 18:48:32 | 115 | 13 | IDE pros and cons for J2ME and Android development | I have been tasked with updating my teams dev. environment. This environment will be used to develop and test J2ME and Android mobile applications. I am looking at NetBeans 6.8 and Eclipse 3.6. Do you have any recommendations for why either of these would be good or bad for this? (aka mobile plugin problems, compatibility issues, ease of setup/maintenance for team members, high quality mobile dev. support, etc.)
I am just trying to get some additional opinions from those who have made this decision before me. | android | eclipse | ide | netbeans | java-me | 09/01/2011 13:28:04 | not constructive | IDE pros and cons for J2ME and Android development
===
I have been tasked with updating my teams dev. environment. This environment will be used to develop and test J2ME and Android mobile applications. I am looking at NetBeans 6.8 and Eclipse 3.6. Do you have any recommendations for why either of these would be good or bad for this? (aka mobile plugin problems, compatibility issues, ease of setup/maintenance for team members, high quality mobile dev. support, etc.)
I am just trying to get some additional opinions from those who have made this decision before me. | 4 |
10,324,645 | 04/25/2012 22:20:16 | 1,357,333 | 04/25/2012 22:06:25 | 1 | 0 | COMPILER ERROR Process terminated with status 0 (0 minutes, 0 seconds) | I am using Codeblocks 10.05 and i have recently been making a pong clone game using sdl, this is my first major project in C++ and using SDL. I have finished my writing code and have successfully compiled it with no errors, while writing my code i ran the compile and ran the program at different stages with no problems but now that i have finished coding i can compile the code but when it runs there is no output on the screen.
the command line log says :
[
Checking for existence: C:\Users\Sylvester\Desktop\110CT PROJECT (PONG)\PONG.exe
Executing: "C:\Users\Sylvester\Desktop\110CT PROJECT (PONG)\PONG.exe" (in C:\Users\Sylvester\Desktop\110CT PROJECT (PONG)\.)
Process terminated with status 0 (0 minutes, 0 seconds)
]
has anyone encountered this problem and could possibly help me
thank you | c++ | compiler | sdl | codeblocks | pong | 04/26/2012 23:12:52 | too localized | COMPILER ERROR Process terminated with status 0 (0 minutes, 0 seconds)
===
I am using Codeblocks 10.05 and i have recently been making a pong clone game using sdl, this is my first major project in C++ and using SDL. I have finished my writing code and have successfully compiled it with no errors, while writing my code i ran the compile and ran the program at different stages with no problems but now that i have finished coding i can compile the code but when it runs there is no output on the screen.
the command line log says :
[
Checking for existence: C:\Users\Sylvester\Desktop\110CT PROJECT (PONG)\PONG.exe
Executing: "C:\Users\Sylvester\Desktop\110CT PROJECT (PONG)\PONG.exe" (in C:\Users\Sylvester\Desktop\110CT PROJECT (PONG)\.)
Process terminated with status 0 (0 minutes, 0 seconds)
]
has anyone encountered this problem and could possibly help me
thank you | 3 |
4,921,937 | 02/07/2011 13:39:38 | 356,815 | 06/02/2010 19:27:24 | 54 | 8 | Redirect in Tomcat 5.5 | Is there a simple way (just configuration) to tell Tomcat 5.5 to redirect all requests coming to "abc.com" to "www.abc.com" ?
I know that it's very easy if you do that in httpd, so I wonder whether Tomcat has such a functionality built in too?
Documentation:
http://tomcat.apache.org/tomcat-5.5-doc/balancer-howto.html
But there is no documentation about the format of the rules.xml file and how web.xml should look like. So any better pointers than the above documentation is already good help. | tomcat | redirect | tomcat5.5 | null | null | 03/16/2011 13:46:26 | off topic | Redirect in Tomcat 5.5
===
Is there a simple way (just configuration) to tell Tomcat 5.5 to redirect all requests coming to "abc.com" to "www.abc.com" ?
I know that it's very easy if you do that in httpd, so I wonder whether Tomcat has such a functionality built in too?
Documentation:
http://tomcat.apache.org/tomcat-5.5-doc/balancer-howto.html
But there is no documentation about the format of the rules.xml file and how web.xml should look like. So any better pointers than the above documentation is already good help. | 2 |
7,346,515 | 09/08/2011 10:22:54 | 471,149 | 08/01/2010 10:11:33 | 466 | 11 | java protected modifier | I have just got weird error which involves protected modifier.
I have following code:
package p1;
public class C1 {
protected void doIt() {}
}
package p2;
public class C2 extends p1.C1 {
private C1 c1_instance;
public void doItAgain() {
c1_instance.doIt(); // wtf!!!!
}
}
I get error, stating that doIt has protected access and can't be accessed! But I am in the sub class and do have and access to doIt method.
Is not it a bug? | java | access | java-language-spec | null | null | null | open | java protected modifier
===
I have just got weird error which involves protected modifier.
I have following code:
package p1;
public class C1 {
protected void doIt() {}
}
package p2;
public class C2 extends p1.C1 {
private C1 c1_instance;
public void doItAgain() {
c1_instance.doIt(); // wtf!!!!
}
}
I get error, stating that doIt has protected access and can't be accessed! But I am in the sub class and do have and access to doIt method.
Is not it a bug? | 0 |
9,171,604 | 02/07/2012 05:51:57 | 1,153,393 | 01/17/2012 07:42:15 | 1 | 1 | What is the best way to educate myself on SharePoint? | I work in sales for an IT company that is looking to start support SharePoint. I have no knowledge of it and am looking for some classes or information on learning more. My tech background is not terribly strong, so it would be difficult for me to jump into anything as advanced as deployment or administering. | sharepoint | null | null | null | null | 02/07/2012 09:45:35 | off topic | What is the best way to educate myself on SharePoint?
===
I work in sales for an IT company that is looking to start support SharePoint. I have no knowledge of it and am looking for some classes or information on learning more. My tech background is not terribly strong, so it would be difficult for me to jump into anything as advanced as deployment or administering. | 2 |
10,256,395 | 04/21/2012 05:08:22 | 395,573 | 07/19/2010 07:19:07 | 821 | 18 | Running a Jar twice | is it possible to run a Jar twice?
e.g. consider a Jar which has 2 entry points. can I run them twice simultaneously, each time with an entry?
do they run in different VMs? | java | jar | executable-jar | null | null | 04/21/2012 18:39:58 | not a real question | Running a Jar twice
===
is it possible to run a Jar twice?
e.g. consider a Jar which has 2 entry points. can I run them twice simultaneously, each time with an entry?
do they run in different VMs? | 1 |
1,632,442 | 10/27/2009 17:35:18 | 51,816 | 01/05/2009 21:39:06 | 2,853 | 20 | Where are LINQ assemblies located in Windows XP? | Where are LINQ assemblies located in Windows XP? | c# | .net | linq | windows | null | null | open | Where are LINQ assemblies located in Windows XP?
===
Where are LINQ assemblies located in Windows XP? | 0 |
10,564,363 | 05/12/2012 13:56:28 | 739,606 | 05/05/2011 09:27:16 | 31 | 0 | Free Web Servers PHP | Can anyone suggest me some free webservers, where i can upload my site and test it. My current one is giving me and error, that actually should not happen. And maybe it works with another server. | php | webserver | null | null | null | 05/12/2012 14:00:18 | off topic | Free Web Servers PHP
===
Can anyone suggest me some free webservers, where i can upload my site and test it. My current one is giving me and error, that actually should not happen. And maybe it works with another server. | 2 |
4,107,089 | 11/05/2010 14:57:47 | 450,466 | 09/17/2010 09:59:29 | 119 | 7 | How run exe in InooSetup ? | does not run the command file.
ShellExec ('', ExpandConstant ('{src}\dotNetFx40_Client_x86_x64.exe'),'','', SW_SHOW, ewNoWait, ErrorCode);
it just passes it.
[Files]
Source: C:\Users\User\Documents\Visual Studio 2010\Projects\TrainerRoomSetup\TrainerRoomSetup\Debug\DotNetFX40Client\dotNetFx40_Client_x86_x64.exe; DestDir: {app}; Flags: ignoreversion
| installer | windows-installer | null | null | null | null | open | How run exe in InooSetup ?
===
does not run the command file.
ShellExec ('', ExpandConstant ('{src}\dotNetFx40_Client_x86_x64.exe'),'','', SW_SHOW, ewNoWait, ErrorCode);
it just passes it.
[Files]
Source: C:\Users\User\Documents\Visual Studio 2010\Projects\TrainerRoomSetup\TrainerRoomSetup\Debug\DotNetFX40Client\dotNetFx40_Client_x86_x64.exe; DestDir: {app}; Flags: ignoreversion
| 0 |
11,121,510 | 06/20/2012 14:11:45 | 1,007,262 | 10/21/2011 14:07:10 | 66 | 1 | How to handle static content in OrbeonForms 3.9 | I trying to upgrade from OrbeonForms version 3.8 to 3.9. I'm using `PriorityResourceManagerFactory` as follows:
<context-param>
<param-name>oxf.resources.factory</param-name>
<param-value>org.orbeon.oxf.resources.PriorityResourceManagerFactory</param-value>
</context-param>
<!-- Uncomment this for the filesystem resource manager -->
<context-param>
<param-name>oxf.resources.priority.1</param-name>
<param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
</context-param>
<context-param>
<param-name>oxf.resources.priority.1.oxf.resources.filesystem.sandbox-directory</param-name>
<param-value>d:/Sources/esb-repository/user-interface</param-value>
</context-param>
<context-param>
<param-name>oxf.resources.priority.2</param-name>
<param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value>
</context-param>
<context-param>
<param-name>oxf.resources.priority.2.oxf.resources.webapp.rootdir</param-name>
<param-value>/WEB-INF/resources</param-value>
</context-param>
<context-param>
<param-name>oxf.resources.priority.3</param-name>
<param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
</context-param>
<context-param>
<param-name>oxf.resources.priority.3</param-name>
<param-value>org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory</param-value>
</context-param>
I have entry in page-flow.xml:
<files path-info=".+\.(gif|css|pdf|json|js|png|jpg|xsd|ico)"
matcher="oxf:perl5-matcher"/>
Within my directory I keep whole application code and I have file *theme/styles/layout.css*. In Orbeon 3.8 server path `/orbeon/theme/styles/layout.css` works perfectly, but not in 3.9.
How to configure it to keep backward compatibility? | orbeon | null | null | null | null | null | open | How to handle static content in OrbeonForms 3.9
===
I trying to upgrade from OrbeonForms version 3.8 to 3.9. I'm using `PriorityResourceManagerFactory` as follows:
<context-param>
<param-name>oxf.resources.factory</param-name>
<param-value>org.orbeon.oxf.resources.PriorityResourceManagerFactory</param-value>
</context-param>
<!-- Uncomment this for the filesystem resource manager -->
<context-param>
<param-name>oxf.resources.priority.1</param-name>
<param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
</context-param>
<context-param>
<param-name>oxf.resources.priority.1.oxf.resources.filesystem.sandbox-directory</param-name>
<param-value>d:/Sources/esb-repository/user-interface</param-value>
</context-param>
<context-param>
<param-name>oxf.resources.priority.2</param-name>
<param-value>org.orbeon.oxf.resources.WebAppResourceManagerFactory</param-value>
</context-param>
<context-param>
<param-name>oxf.resources.priority.2.oxf.resources.webapp.rootdir</param-name>
<param-value>/WEB-INF/resources</param-value>
</context-param>
<context-param>
<param-name>oxf.resources.priority.3</param-name>
<param-value>org.orbeon.oxf.resources.FilesystemResourceManagerFactory</param-value>
</context-param>
<context-param>
<param-name>oxf.resources.priority.3</param-name>
<param-value>org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory</param-value>
</context-param>
I have entry in page-flow.xml:
<files path-info=".+\.(gif|css|pdf|json|js|png|jpg|xsd|ico)"
matcher="oxf:perl5-matcher"/>
Within my directory I keep whole application code and I have file *theme/styles/layout.css*. In Orbeon 3.8 server path `/orbeon/theme/styles/layout.css` works perfectly, but not in 3.9.
How to configure it to keep backward compatibility? | 0 |
5,951,436 | 05/10/2011 14:15:07 | 746,973 | 05/10/2011 13:44:06 | 1 | 0 | software architecture for php | My friend said "php is not organized, so, the software architecture is bad with this language"
i need to build a social networking, with php... is it possible to do the software architecture of a simple way with php?
and... Object-Oriented PHP is more easy than Structured-PHP for to do the architecture? | php | social-networking | null | null | null | 05/10/2011 14:40:28 | not a real question | software architecture for php
===
My friend said "php is not organized, so, the software architecture is bad with this language"
i need to build a social networking, with php... is it possible to do the software architecture of a simple way with php?
and... Object-Oriented PHP is more easy than Structured-PHP for to do the architecture? | 1 |
11,684,796 | 07/27/2012 09:10:33 | 1,529,289 | 07/16/2012 15:08:23 | 4 | 0 | Difference between wxpython and tkinter | Can anybody explain me difference between wxpython and tkinter?
Which one is the best for development?
I want to develop a media player using python. | python | null | null | null | null | 07/29/2012 19:25:07 | not constructive | Difference between wxpython and tkinter
===
Can anybody explain me difference between wxpython and tkinter?
Which one is the best for development?
I want to develop a media player using python. | 4 |
11,332,947 | 07/04/2012 16:51:08 | 1,372,139 | 05/03/2012 09:55:38 | 13 | 1 | Do macros make the code more readable? | I had a debate about macros and their readability.
I think that in some cases using macros can make the code shorter, more comprehensible and less tiring to read.
For example:
#include <iostream>
#define EXIT_ON_FAILURE(s) if(s != 0) {std::cout << "Exited on line " << __LINE__ << std::endl; exit(1);}
inline void exitOnFailure(int s) {
if (s != 0) {
std::cout << "Exited on line " << __LINE__ << std::endl;
exit(1);
}
}
int foo() {
return 1;
}
int bar(int a, int b, int c) {
return 0;
}
int main() {
// first option
if (foo() != 0) {
std::cout << "Exited on line " << __LINE__ << std::endl;
exit(1);
}
if (bar(1, 2, 3) != 0) {
std::cout << "Exited on line " << __LINE__ << std::endl;
exit(1);
}
// second option
EXIT_ON_FAILURE(foo());
EXIT_ON_FAILURE(bar(1, 2, 3));
// third option
exitOnFailure(foo());
exitOnFailure(bar(1, 2, 3));
return 0;
}
I prefer the second option here, since it's short and compact and the caps lock text is just clearer and easier to read than camel case.
Is there anything wrong with this method, particularly in C++, or is it just bad (but acceptable) style? | c++ | c | code-readability | null | null | 07/06/2012 04:08:09 | not constructive | Do macros make the code more readable?
===
I had a debate about macros and their readability.
I think that in some cases using macros can make the code shorter, more comprehensible and less tiring to read.
For example:
#include <iostream>
#define EXIT_ON_FAILURE(s) if(s != 0) {std::cout << "Exited on line " << __LINE__ << std::endl; exit(1);}
inline void exitOnFailure(int s) {
if (s != 0) {
std::cout << "Exited on line " << __LINE__ << std::endl;
exit(1);
}
}
int foo() {
return 1;
}
int bar(int a, int b, int c) {
return 0;
}
int main() {
// first option
if (foo() != 0) {
std::cout << "Exited on line " << __LINE__ << std::endl;
exit(1);
}
if (bar(1, 2, 3) != 0) {
std::cout << "Exited on line " << __LINE__ << std::endl;
exit(1);
}
// second option
EXIT_ON_FAILURE(foo());
EXIT_ON_FAILURE(bar(1, 2, 3));
// third option
exitOnFailure(foo());
exitOnFailure(bar(1, 2, 3));
return 0;
}
I prefer the second option here, since it's short and compact and the caps lock text is just clearer and easier to read than camel case.
Is there anything wrong with this method, particularly in C++, or is it just bad (but acceptable) style? | 4 |
11,459,456 | 07/12/2012 19:44:08 | 873,139 | 08/01/2011 16:38:39 | 539 | 9 | jsp encoding does not display character correctly | Trying to display the following letter **š** on .jsp . In editing mode when trying to save text containing the letter Eclipse complains:
![enter image description here][1]
If it is saved as UTF-8 following the advice the complaints stop, but instead of **š** I get:
![clearly **š** not ][2]
[1]: http://i.stack.imgur.com/ohOHt.png
[2]: http://i.stack.imgur.com/bs5OQ.png
Current configuration:
Resource => explicitly set to other: UTF-8
Preferences => Web => ISO 10646/ UNICODE UTF-8
Loading files => User workspace encoding : YES
How the letter should look like(example): http://en.wiktionary.org/wiki/lietuvi%C5%A1kai
I am totally clueless.
| jsp | utf-8 | null | null | null | null | open | jsp encoding does not display character correctly
===
Trying to display the following letter **š** on .jsp . In editing mode when trying to save text containing the letter Eclipse complains:
![enter image description here][1]
If it is saved as UTF-8 following the advice the complaints stop, but instead of **š** I get:
![clearly **š** not ][2]
[1]: http://i.stack.imgur.com/ohOHt.png
[2]: http://i.stack.imgur.com/bs5OQ.png
Current configuration:
Resource => explicitly set to other: UTF-8
Preferences => Web => ISO 10646/ UNICODE UTF-8
Loading files => User workspace encoding : YES
How the letter should look like(example): http://en.wiktionary.org/wiki/lietuvi%C5%A1kai
I am totally clueless.
| 0 |
741,841 | 04/12/2009 14:19:22 | 82,956 | 03/26/2009 05:46:19 | 1 | 1 | tcsh: How to change the file extension for multiple files? | Is there a one line command in tcsh to change the extension of a set of files?
In the various DOS shells I used to use the following:
>ren *.abc *.def
Which would rename all files ending in abc to end instead with def. In sed terms this would perform something like the following:
>sed -e 's/\(.\)*\.abc$/\1.def/'
on the files names. I could probably throw bits and pieces together to achieve something similar in *nix, but I'm guessing that the issue here is my lack of experience with tcsh.
Any help appreciated. | tcsh | linux | shell | regex | null | null | open | tcsh: How to change the file extension for multiple files?
===
Is there a one line command in tcsh to change the extension of a set of files?
In the various DOS shells I used to use the following:
>ren *.abc *.def
Which would rename all files ending in abc to end instead with def. In sed terms this would perform something like the following:
>sed -e 's/\(.\)*\.abc$/\1.def/'
on the files names. I could probably throw bits and pieces together to achieve something similar in *nix, but I'm guessing that the issue here is my lack of experience with tcsh.
Any help appreciated. | 0 |
10,069,830 | 04/09/2012 06:38:55 | 398,802 | 07/22/2010 07:05:37 | 120 | 3 | Android Tutorial: "Busy coders guide to android development" Vs "Beginning Android"? | I have basic knowledge of Java programming language and I am trying to learn Android Application Development (not for fun, a full time app developer). After hours of research on google, or I should say StackOverflow, I have zeroed in on two books that will get me started. I don't want to switch between books after every topic. I understand one book cannot cover everything but what would be the most suitable choice between these two:
[Busy Coders guide to android development][1]
AND
[Beginning android][2]
I tried official documentation but that looks more of a reference material. I am currently following [Android Apps for Absolute Beginners][3] but it doesn't seem promising.
P.S. I don't need one to just get me started but one that will keep me going.
[1]: http://www.amazon.com/Busy-Coders-Guide-Android-Development/dp/0981678009/ref=sr_1_2?s=books&ie=UTF8&qid=1333953250&sr=1-2
[2]: http://www.amazon.com/Beginning-Android-3-Mark-Murphy/dp/1430232978/ref=sr_1_1?ie=UTF8&qid=1333953159&sr=8-1
[3]: http://www.amazon.com/Android-Absolute-Beginners-Wallace-Jackson/dp/1430234466/ref=sr_1_1?s=books&ie=UTF8&qid=1333953342&sr=1-1 | android | books | null | null | null | 04/09/2012 06:50:40 | not constructive | Android Tutorial: "Busy coders guide to android development" Vs "Beginning Android"?
===
I have basic knowledge of Java programming language and I am trying to learn Android Application Development (not for fun, a full time app developer). After hours of research on google, or I should say StackOverflow, I have zeroed in on two books that will get me started. I don't want to switch between books after every topic. I understand one book cannot cover everything but what would be the most suitable choice between these two:
[Busy Coders guide to android development][1]
AND
[Beginning android][2]
I tried official documentation but that looks more of a reference material. I am currently following [Android Apps for Absolute Beginners][3] but it doesn't seem promising.
P.S. I don't need one to just get me started but one that will keep me going.
[1]: http://www.amazon.com/Busy-Coders-Guide-Android-Development/dp/0981678009/ref=sr_1_2?s=books&ie=UTF8&qid=1333953250&sr=1-2
[2]: http://www.amazon.com/Beginning-Android-3-Mark-Murphy/dp/1430232978/ref=sr_1_1?ie=UTF8&qid=1333953159&sr=8-1
[3]: http://www.amazon.com/Android-Absolute-Beginners-Wallace-Jackson/dp/1430234466/ref=sr_1_1?s=books&ie=UTF8&qid=1333953342&sr=1-1 | 4 |
7,450,980 | 09/16/2011 22:23:43 | 949,648 | 09/16/2011 22:14:30 | 1 | 0 | Computing algorithm running time in C | I am using the time.h lib in c to find the time taken to run an algorithm. The code structure is somewhat as follows :-
#include <time.h>
int main()
{
time_t start,end,diff;
start = clock();
//ALGORITHM COMPUTATIONS
end = clock();
diff = end - start;
printf("%d",diff);
return 0;
}
The values for start and end are always zero. Is it that the clock() function does't work? Please help.
Thanks in advance.
| c | null | null | null | null | null | open | Computing algorithm running time in C
===
I am using the time.h lib in c to find the time taken to run an algorithm. The code structure is somewhat as follows :-
#include <time.h>
int main()
{
time_t start,end,diff;
start = clock();
//ALGORITHM COMPUTATIONS
end = clock();
diff = end - start;
printf("%d",diff);
return 0;
}
The values for start and end are always zero. Is it that the clock() function does't work? Please help.
Thanks in advance.
| 0 |
9,094,342 | 02/01/2012 10:34:19 | 907,828 | 08/23/2011 13:45:46 | 53 | 1 | How to create oracle procedures but not store | I want to use some smart procedures I wrote, but not store them. For example here is this quite big select, that retrieves the primary keys for a table:
SELECT cols.table_name, cols.column_name, cols.position, cons.status, cons.owner
FROM all_constraints cons, all_cons_columns cols
WHERE cols.table_name = 'TABLE_NAME'
AND cons.constraint_type = 'P'
AND cons.constraint_name = cols.constraint_name
AND cons.owner = cols.owner
ORDER BY cols.table_name, cols.position;
I don't want to remember this, not even type it every time I need the constraints of a table. BUT I don't want to create a procedure for this into the DB, because it is a prod DB, and noone else needs my procedure. Just me. Just for developing.
So here is where I am now:
SQL> declare procedure hello as begin dbms_output.put_line('Hello world!'); end; begin hello; end;
2 /
Hello world!
PL/SQL procedure successfully completed.
SQL> hello;
SP2-0042: unknown command "hello" - rest of line ignored.
... so I can declare and define hello function from command line. I can call it from the begin - end block after the declare, but after that the hello procedure is gone.
Question: is there a solution to make the second "hello;" work, so I can create clever and useful procedures and not make any trash in the DB itself?
If this would work, I would create a file with that, and make the alias for sqlplus to execute that file at startup. | sql | oracle | procedure | null | null | null | open | How to create oracle procedures but not store
===
I want to use some smart procedures I wrote, but not store them. For example here is this quite big select, that retrieves the primary keys for a table:
SELECT cols.table_name, cols.column_name, cols.position, cons.status, cons.owner
FROM all_constraints cons, all_cons_columns cols
WHERE cols.table_name = 'TABLE_NAME'
AND cons.constraint_type = 'P'
AND cons.constraint_name = cols.constraint_name
AND cons.owner = cols.owner
ORDER BY cols.table_name, cols.position;
I don't want to remember this, not even type it every time I need the constraints of a table. BUT I don't want to create a procedure for this into the DB, because it is a prod DB, and noone else needs my procedure. Just me. Just for developing.
So here is where I am now:
SQL> declare procedure hello as begin dbms_output.put_line('Hello world!'); end; begin hello; end;
2 /
Hello world!
PL/SQL procedure successfully completed.
SQL> hello;
SP2-0042: unknown command "hello" - rest of line ignored.
... so I can declare and define hello function from command line. I can call it from the begin - end block after the declare, but after that the hello procedure is gone.
Question: is there a solution to make the second "hello;" work, so I can create clever and useful procedures and not make any trash in the DB itself?
If this would work, I would create a file with that, and make the alias for sqlplus to execute that file at startup. | 0 |
6,155,782 | 05/27/2011 17:33:59 | 591,130 | 01/26/2011 18:50:00 | 139 | 1 | What to write in one js file to prevent another js file from loading | I'm trying to prevent a javascript file from loading if a user is on an iPhone. I'm using the Mobile ESP script for the detection, I'm just not sure what to add to this file to remove the unwanted file from loading.
In other words, what do I add to this file:
js/detect.js
…to prevent my page from loading the file:
js/jquery.ceebox-min.js | javascript | load | prevent | null | null | null | open | What to write in one js file to prevent another js file from loading
===
I'm trying to prevent a javascript file from loading if a user is on an iPhone. I'm using the Mobile ESP script for the detection, I'm just not sure what to add to this file to remove the unwanted file from loading.
In other words, what do I add to this file:
js/detect.js
…to prevent my page from loading the file:
js/jquery.ceebox-min.js | 0 |
7,515,704 | 09/22/2011 13:41:08 | 723,217 | 04/25/2011 04:08:06 | 53 | 0 | jQuery .numeric and pasting content | The .numeric function (http://www.texotela.co.uk/code/jquery/numeric/) works great, but when you paste content into the txtOrderName field and you exit the field it doesnt validate.
Does anyone know any modifications that will allow the .numeric function to be run again after content has been pasted?
For example, if I paste '4,00' into the txtOrderPrice field, I dont want the comma (,) to be displayed. The numeric function ignores this if you type '4,00' in the field (changes to '400'). But knowing people they might just paste '4,00' into the field and stuff things up.
<script type="text/javascript" src="jquery.numeric.js"></script>
$(document).ready(function() {
$(".numeric").numeric();
});
</script>
<input class="numeric" type="text" id="txtOrderPrice" name="txtOrderPrice_name" maxlength="128" /> | php | jquery | validation | numeric | null | null | open | jQuery .numeric and pasting content
===
The .numeric function (http://www.texotela.co.uk/code/jquery/numeric/) works great, but when you paste content into the txtOrderName field and you exit the field it doesnt validate.
Does anyone know any modifications that will allow the .numeric function to be run again after content has been pasted?
For example, if I paste '4,00' into the txtOrderPrice field, I dont want the comma (,) to be displayed. The numeric function ignores this if you type '4,00' in the field (changes to '400'). But knowing people they might just paste '4,00' into the field and stuff things up.
<script type="text/javascript" src="jquery.numeric.js"></script>
$(document).ready(function() {
$(".numeric").numeric();
});
</script>
<input class="numeric" type="text" id="txtOrderPrice" name="txtOrderPrice_name" maxlength="128" /> | 0 |
6,548,374 | 07/01/2011 13:10:47 | 514,916 | 11/21/2010 05:53:04 | 16 | 0 | how to add listener to an adapter in java swing | I have to add a listener to an adapter in java swing.can anyone please tell how to do this. Any sample code will be highly appreciated.
Thanks | java | swing | null | null | null | 07/01/2011 13:53:59 | not a real question | how to add listener to an adapter in java swing
===
I have to add a listener to an adapter in java swing.can anyone please tell how to do this. Any sample code will be highly appreciated.
Thanks | 1 |
591,678 | 02/26/2009 17:54:39 | 30,099 | 10/21/2008 20:03:54 | 596 | 14 | How can I perform the equivalent of shellexecute() in Lazarus for a Mac? | How can I perform the equivalent of `shellexecute()` in Lazarus for a Mac? | lazarus | delphi | osx | pascal | null | null | open | How can I perform the equivalent of shellexecute() in Lazarus for a Mac?
===
How can I perform the equivalent of `shellexecute()` in Lazarus for a Mac? | 0 |
4,710,073 | 01/17/2011 04:40:04 | 578,062 | 01/17/2011 04:40:04 | 1 | 0 | How does playgif.com work? | [playgif][1] adds functionality to animated gifs, including controls for pause, reverse, and speed adjustment. I would like to do this with animated gifs on my site. Any ideas how this is done and if it's possible to create a solution in javascript and/or python?
[1]: http://playgif.com | javascript | jquery | gif | animated-gif | null | 01/18/2011 18:43:50 | not a real question | How does playgif.com work?
===
[playgif][1] adds functionality to animated gifs, including controls for pause, reverse, and speed adjustment. I would like to do this with animated gifs on my site. Any ideas how this is done and if it's possible to create a solution in javascript and/or python?
[1]: http://playgif.com | 1 |
8,203,347 | 11/20/2011 17:37:55 | 112,023 | 05/25/2009 09:33:50 | 782 | 13 | Advantages and Disadvantages of C# 4.0 'dynamic' keyword? | I have learned and checked the advantages of dynamics keyword in C# 4.
Can any body tell me the disadvantages of this. Means dynamic vs Var/Object/reflection ???
Which thing is batter more. Is dynamic more powerful at run time??
Thanks..... | c# | .net | c#-4.0 | dynamic | null | 11/20/2011 17:46:40 | not a real question | Advantages and Disadvantages of C# 4.0 'dynamic' keyword?
===
I have learned and checked the advantages of dynamics keyword in C# 4.
Can any body tell me the disadvantages of this. Means dynamic vs Var/Object/reflection ???
Which thing is batter more. Is dynamic more powerful at run time??
Thanks..... | 1 |
1,123,177 | 07/14/2009 02:31:20 | 51,958 | 01/06/2009 08:17:51 | 50 | 21 | how to click a text with underline for showing a web? | I want to click a text on the panel with a underline and the text color is blue, and then show a web , I know how to show a web , but how to define the text , in nib when I put a label on the window , I found the label didn't respond for the action , when I put a button with no border I found that I didn't edit the text attribute of the button , which module should I put on that and how to edit that text attribute?Thanks a lot.
The impact I want to show is : http://stackoverflow.com | cocoa | null | null | null | null | null | open | how to click a text with underline for showing a web?
===
I want to click a text on the panel with a underline and the text color is blue, and then show a web , I know how to show a web , but how to define the text , in nib when I put a label on the window , I found the label didn't respond for the action , when I put a button with no border I found that I didn't edit the text attribute of the button , which module should I put on that and how to edit that text attribute?Thanks a lot.
The impact I want to show is : http://stackoverflow.com | 0 |
7,957,261 | 10/31/2011 17:26:19 | 93,311 | 04/20/2009 17:14:16 | 3,667 | 165 | Setting up a Vanilla Box, how does DNS redirection work? | I'm looking into purchasing a box with EngineYard to host all my clients small websites.
The catch with this, is that I'm unsure if its possible to host multiple websites on a vanilla box, and still have their DNS' align properly.
The server would be hosting both Rails and PHP based projects.
Could someone point me in the direction of how to set up a box from scratch with the ability to host multiple applications?
Will also accept any recommendations as well :)
Thanks! | php | ruby-on-rails | shared-hosting | host | null | null | open | Setting up a Vanilla Box, how does DNS redirection work?
===
I'm looking into purchasing a box with EngineYard to host all my clients small websites.
The catch with this, is that I'm unsure if its possible to host multiple websites on a vanilla box, and still have their DNS' align properly.
The server would be hosting both Rails and PHP based projects.
Could someone point me in the direction of how to set up a box from scratch with the ability to host multiple applications?
Will also accept any recommendations as well :)
Thanks! | 0 |
5,452,029 | 03/27/2011 20:07:12 | 487,397 | 10/26/2010 09:10:22 | 9 | 3 | rails 3 - SQL pass variable to "order" | Im trying to pass variable to the order...
[code].order(['SUM((prices.price * ?) + profiles.shippingCost)', params[:prod_id]]).all
But it doesn't convert the variable to sql instead it gives me.(the variable in this case was "1").
GROUP BY price ORDER BY SUM((prices.price * ?) + profiles.shippingCost), 1):
Is this even possible to do? | sql | ruby-on-rails-3 | order | null | null | null | open | rails 3 - SQL pass variable to "order"
===
Im trying to pass variable to the order...
[code].order(['SUM((prices.price * ?) + profiles.shippingCost)', params[:prod_id]]).all
But it doesn't convert the variable to sql instead it gives me.(the variable in this case was "1").
GROUP BY price ORDER BY SUM((prices.price * ?) + profiles.shippingCost), 1):
Is this even possible to do? | 0 |
9,858,099 | 03/25/2012 05:22:00 | 1,092,042 | 12/11/2011 08:24:31 | 84 | 0 | Using jdbc in android | Of all the tutorials i have come across to connect to an external database from android, most of them use php program on the server and use a httppost to pass the arguments. Why dont people just connect directly to the database using jdbc . Or is there some other point that i am missing here. | android | jdbc | null | null | null | 06/20/2012 14:21:54 | not a real question | Using jdbc in android
===
Of all the tutorials i have come across to connect to an external database from android, most of them use php program on the server and use a httppost to pass the arguments. Why dont people just connect directly to the database using jdbc . Or is there some other point that i am missing here. | 1 |
9,326,305 | 02/17/2012 10:08:40 | 881,389 | 08/05/2011 21:56:40 | 29 | 0 | How to inform Free Pascal Compiler to set Locale ID for teh compiled application to some value | In Delphi there is an option **VersionInfo->Language->Locale ID** when viewing project properties. I was wandering how to set such property for a program being compiled under Free Pascal, any solution is welcome: *command line argument* or *preprocessor directive* such as **{$key value}**; equivalent to Delphi.
Thank you in advance.
| delphi | pascal | lang | null | null | null | open | How to inform Free Pascal Compiler to set Locale ID for teh compiled application to some value
===
In Delphi there is an option **VersionInfo->Language->Locale ID** when viewing project properties. I was wandering how to set such property for a program being compiled under Free Pascal, any solution is welcome: *command line argument* or *preprocessor directive* such as **{$key value}**; equivalent to Delphi.
Thank you in advance.
| 0 |
3,776,352 | 09/23/2010 07:55:59 | 6,610 | 09/15/2008 12:21:49 | 11,623 | 539 | Forward compatible hardware detection | Being a softie, I'm currently fighting some hardware techies on a hardware detection mechanism.
I feel like it should be possible to build a detection/discovery mechanism that is 'future proof', in a way that the detection software, built today, will be able to recognize a limited set of properties of all hardware versions developed in the future.
The argument against: the current (dsp) chip may become obsolete in the near future; hence, we cannot guarantee that future boards will be compatible with the current discovery protocol.
How is this done for e.g. USB, PnP, and are there other examples? | hardware-interface | forward-compatibility | null | null | null | null | open | Forward compatible hardware detection
===
Being a softie, I'm currently fighting some hardware techies on a hardware detection mechanism.
I feel like it should be possible to build a detection/discovery mechanism that is 'future proof', in a way that the detection software, built today, will be able to recognize a limited set of properties of all hardware versions developed in the future.
The argument against: the current (dsp) chip may become obsolete in the near future; hence, we cannot guarantee that future boards will be compatible with the current discovery protocol.
How is this done for e.g. USB, PnP, and are there other examples? | 0 |
8,648,196 | 12/27/2011 18:55:45 | 615,120 | 02/13/2011 14:38:11 | 1 | 0 | reverse() is not working | I am trying to pass the id through reverse. But it's not working. I'm getting this error
Reverse for 'reg.views.thanks' with arguments '(20,)' and keyword arguments '{}' not found.
Here is my views.py:
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.core.urlresolvers import reverse
from reg.models import registration, registrationform
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
def registration(request):
if request.method == 'POST':
form = registrationform(request.POST)
if form.is_valid():
data = form.save()
id = data.id
return HttpResponseRedirect(reverse('reg.views.thanks', args=(id,)))
else:
form = registrationform()
return render_to_response('registration.html', {'form' : form}, context_instance=RequestContext(request))
def thanks(request, id):
p = get_object_or_404(pk=id)
return render_to_response('thanks.html', {'reg' : p})
Here is my urls.py:
from django.conf.urls import patterns, include, url
url(r'^registration/$', 'reg.views.registration'),
url(r'^thanks/$', 'reg.views.thanks'),
url(r'^$','django.views.generic.simple.direct_to_template', {'template' : 'index.html'}),
)
Thanks.
| python | django | django-views | django-urls | null | null | open | reverse() is not working
===
I am trying to pass the id through reverse. But it's not working. I'm getting this error
Reverse for 'reg.views.thanks' with arguments '(20,)' and keyword arguments '{}' not found.
Here is my views.py:
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django.core.urlresolvers import reverse
from reg.models import registration, registrationform
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
def registration(request):
if request.method == 'POST':
form = registrationform(request.POST)
if form.is_valid():
data = form.save()
id = data.id
return HttpResponseRedirect(reverse('reg.views.thanks', args=(id,)))
else:
form = registrationform()
return render_to_response('registration.html', {'form' : form}, context_instance=RequestContext(request))
def thanks(request, id):
p = get_object_or_404(pk=id)
return render_to_response('thanks.html', {'reg' : p})
Here is my urls.py:
from django.conf.urls import patterns, include, url
url(r'^registration/$', 'reg.views.registration'),
url(r'^thanks/$', 'reg.views.thanks'),
url(r'^$','django.views.generic.simple.direct_to_template', {'template' : 'index.html'}),
)
Thanks.
| 0 |
1,258,933 | 08/11/2009 07:45:38 | 6,482 | 09/15/2008 10:56:17 | 1,687 | 107 | GWT conditional compile | I'm using the same source code for a GWT 1.5 and GWT 1.7 application.
I'm wondering is there a way to conditionally compile parts of the java code for one or the other version.
I know there is a way to do it for widgets and browsers in the module XML file.
| gwt | java | javascript | null | null | null | open | GWT conditional compile
===
I'm using the same source code for a GWT 1.5 and GWT 1.7 application.
I'm wondering is there a way to conditionally compile parts of the java code for one or the other version.
I know there is a way to do it for widgets and browsers in the module XML file.
| 0 |
10,720,730 | 05/23/2012 13:14:56 | 1,411,619 | 05/23/2012 03:39:19 | 1 | 0 | Does facebook exposes its APIs through webservices? | I wanted to make a facebook application in java using servlets and JSP.But as i found out facebook does not provide any SDK for java.And i do not wish to use the third party APIs like restfb etc.Does facebook exposes its APIs through webservices which i can use using java?
Also can GRAPH API be regarded as a webservice? | java | facebook | facebook-graph-api | null | null | 05/23/2012 15:22:44 | not a real question | Does facebook exposes its APIs through webservices?
===
I wanted to make a facebook application in java using servlets and JSP.But as i found out facebook does not provide any SDK for java.And i do not wish to use the third party APIs like restfb etc.Does facebook exposes its APIs through webservices which i can use using java?
Also can GRAPH API be regarded as a webservice? | 1 |
1,954,297 | 12/23/2009 17:47:41 | 142,636 | 07/22/2009 08:32:15 | 49 | 2 | how to use UIPicker for ratings | how can create ratings using UIPicker, eg. 0-star to 5-star, how this can be done, anyone can give sample code please
thanks | iphone | null | null | null | null | null | open | how to use UIPicker for ratings
===
how can create ratings using UIPicker, eg. 0-star to 5-star, how this can be done, anyone can give sample code please
thanks | 0 |
11,411,649 | 07/10/2012 10:45:27 | 1,340,370 | 04/18/2012 05:02:01 | 1 | 0 | Raphael.js error with ie8 | I am using rphael.js version 2.1.0 with the use of jquery ui multi select widget.if i select the options on multi select widget ,the graah should display with the selected options made from graphael pie chart. but i am getting error with **ie8**.
The graph displays for some options and not for some
other randomly. It is showing error at raphael.js at el.appendchild(skew).
can anyone help me with this.I am in dire need of this | internet-explorer-8 | raphael | null | null | null | null | open | Raphael.js error with ie8
===
I am using rphael.js version 2.1.0 with the use of jquery ui multi select widget.if i select the options on multi select widget ,the graah should display with the selected options made from graphael pie chart. but i am getting error with **ie8**.
The graph displays for some options and not for some
other randomly. It is showing error at raphael.js at el.appendchild(skew).
can anyone help me with this.I am in dire need of this | 0 |
3,692,714 | 09/11/2010 21:24:18 | 49,544 | 12/28/2008 15:19:46 | 1,927 | 111 | Recommended iOS books after beginner´s books | I have read and enjoyed the books:<br/>
[iPhone Programming: The Big Nerd Ranch Guide][1]<br/>
and
[Beginning iPhone 3 Development: Exploring the iPhone SDK][2]<br/>
Which book would you recommend as the third iOS book?
[1]: http://www.bignerdranch.com/book/iphone_programming_the_big_nerd_ranch_guide
[2]: http://apress.com/book/view/9781430224594 | iphone | books | ios | null | null | 09/20/2011 15:10:04 | not constructive | Recommended iOS books after beginner´s books
===
I have read and enjoyed the books:<br/>
[iPhone Programming: The Big Nerd Ranch Guide][1]<br/>
and
[Beginning iPhone 3 Development: Exploring the iPhone SDK][2]<br/>
Which book would you recommend as the third iOS book?
[1]: http://www.bignerdranch.com/book/iphone_programming_the_big_nerd_ranch_guide
[2]: http://apress.com/book/view/9781430224594 | 4 |
7,945,429 | 10/30/2011 14:21:45 | 552,127 | 12/23/2010 07:57:45 | 81 | 0 | Using search logs for processing on Hadoop | I am going to do a project on massive text processing with Hadoop. Like one thing I am thinking of is to use search logs data sets to identify search patterns in users, similarities between users etc. I am new to Hadoop and the entire mapreduce framework. I will appreciate any suggestions wrt the architecture of this project or other to-do's with these data sets.
Thanks | search | hadoop | null | null | null | 10/30/2011 14:25:18 | not a real question | Using search logs for processing on Hadoop
===
I am going to do a project on massive text processing with Hadoop. Like one thing I am thinking of is to use search logs data sets to identify search patterns in users, similarities between users etc. I am new to Hadoop and the entire mapreduce framework. I will appreciate any suggestions wrt the architecture of this project or other to-do's with these data sets.
Thanks | 1 |
8,944,057 | 01/20/2012 15:49:20 | 1,160,927 | 01/20/2012 15:36:58 | 1 | 0 | How to cluster a column with R | I have a dataframe
numbers = 1:4
letters = factor(c("a", "b", "c", "d"))
df <- data.frame(numbers, letters)
numbers letters
1 1 a
2 2 b
3 3 c
4 4 d
And I want to create a new column clustering the last column:
numbers letters
1 1 a c1
2 2 b c2
3 3 c c1
4 4 d c1
Is there a way to do that with R?
| r | null | null | null | null | null | open | How to cluster a column with R
===
I have a dataframe
numbers = 1:4
letters = factor(c("a", "b", "c", "d"))
df <- data.frame(numbers, letters)
numbers letters
1 1 a
2 2 b
3 3 c
4 4 d
And I want to create a new column clustering the last column:
numbers letters
1 1 a c1
2 2 b c2
3 3 c c1
4 4 d c1
Is there a way to do that with R?
| 0 |
9,741,537 | 03/16/2012 17:07:47 | 702,845 | 04/11/2011 19:55:29 | 97 | 1 | python floating point errors | I came across an issue using Python with floating point errors. I though it might be useful to mention it here.
I have an external sampling system that records data at 5000Hz. In order to get timestamps I take the initial time and then add (1.0/5000) to get the timestamp for successive samples. I noticed very quickly the current time (time.time()) drifted away from the calculated time when using a loop. just doing the simple calculation there was no noticeable drift - Some code:
start_time = time.time()
start_time_test = start_time
#get 512 samples - takes 512*1.0/5000 seconds
for i in arange(512):
start_time = start_time + (1.0/5000) #5khz
start_time_test = start_time_test + 512*(1.0/5000)
print time.time() - start_time_test #no drift
print time.time() - start_time # drifts
print start_time_test - start_time # constant increment
Now the difference between start_time_test and start_time is not insignificant - It's about 1.69e-5 per block of 512 which very quickly starts to add up. I'm just surprised at quickly the floating point errors come into play here. I'm going to investigate the use of the decimal pacakge here to restrict the errors.
Is this level of floating point error to be expected? - Please not that I could be doing something silly and it's not floating point errors.
| python | loops | floating-point | null | null | 03/20/2012 05:52:46 | not a real question | python floating point errors
===
I came across an issue using Python with floating point errors. I though it might be useful to mention it here.
I have an external sampling system that records data at 5000Hz. In order to get timestamps I take the initial time and then add (1.0/5000) to get the timestamp for successive samples. I noticed very quickly the current time (time.time()) drifted away from the calculated time when using a loop. just doing the simple calculation there was no noticeable drift - Some code:
start_time = time.time()
start_time_test = start_time
#get 512 samples - takes 512*1.0/5000 seconds
for i in arange(512):
start_time = start_time + (1.0/5000) #5khz
start_time_test = start_time_test + 512*(1.0/5000)
print time.time() - start_time_test #no drift
print time.time() - start_time # drifts
print start_time_test - start_time # constant increment
Now the difference between start_time_test and start_time is not insignificant - It's about 1.69e-5 per block of 512 which very quickly starts to add up. I'm just surprised at quickly the floating point errors come into play here. I'm going to investigate the use of the decimal pacakge here to restrict the errors.
Is this level of floating point error to be expected? - Please not that I could be doing something silly and it's not floating point errors.
| 1 |
3,569,860 | 08/25/2010 20:14:15 | 431,159 | 08/25/2010 20:14:14 | 1 | 0 | Two queries instead of one, when using LockOption.UPGRADE | I have two entities with one-directional OneToOne relationship. EAGER fetch type is specified.
When I load parent entity by id, one sql inner join query is executed. This is right behavior.
But when I specify LockOption.UPGRADE, the parent and child entities are loaded in two different queries instead of one. Why this happens? | hibernate | null | null | null | null | null | open | Two queries instead of one, when using LockOption.UPGRADE
===
I have two entities with one-directional OneToOne relationship. EAGER fetch type is specified.
When I load parent entity by id, one sql inner join query is executed. This is right behavior.
But when I specify LockOption.UPGRADE, the parent and child entities are loaded in two different queries instead of one. Why this happens? | 0 |
8,381,471 | 12/05/2011 05:48:45 | 495,561 | 11/03/2010 05:51:19 | 213 | 10 | viewmodel for gridview with column headers c# | I need a solution for this.
I need to create a view model for grid view. This viewmodel should be a strong typed one. ex.
List<Person> lstPersons=new List<Person>();
something like this. also, with this I should be able to have custom column header names. I can go with data annotation with enabling `AutoGenerateColumns="True"`
like,
class Person
{
[DisplayName("Person Name")]
public string name { get; set; }
}
something like this. But I have 2 issues with this.
1. I donno how to change this display name at run time.
2. Im using telerik RADGridView. with that when I'm using `AutoGenerateColumns="True"` and `ShowColumnFooters="True"`, the whole UI get stucked. I think this s an error with telerik controls. So I have to define all columns in XAML and add binding path for each as well.
Anyway, This is possible with DataTable I think. but I feel data tables are very oldie struct and heavy object.
How to create a Viewmodel to achieve this? Any suggestions ?
Feel free to ask any question. im not sure above description is clear to everyone. | c# | mvvm | datatable | dataannotations | observablecollection | null | open | viewmodel for gridview with column headers c#
===
I need a solution for this.
I need to create a view model for grid view. This viewmodel should be a strong typed one. ex.
List<Person> lstPersons=new List<Person>();
something like this. also, with this I should be able to have custom column header names. I can go with data annotation with enabling `AutoGenerateColumns="True"`
like,
class Person
{
[DisplayName("Person Name")]
public string name { get; set; }
}
something like this. But I have 2 issues with this.
1. I donno how to change this display name at run time.
2. Im using telerik RADGridView. with that when I'm using `AutoGenerateColumns="True"` and `ShowColumnFooters="True"`, the whole UI get stucked. I think this s an error with telerik controls. So I have to define all columns in XAML and add binding path for each as well.
Anyway, This is possible with DataTable I think. but I feel data tables are very oldie struct and heavy object.
How to create a Viewmodel to achieve this? Any suggestions ?
Feel free to ask any question. im not sure above description is clear to everyone. | 0 |
7,296,260 | 09/03/2011 22:32:08 | 927,087 | 09/03/2011 22:32:08 | 1 | 0 | Integrate PHP with RubyOnRails | Is it possible to integrate php with rails, even if I use a framework on PHP like CodeIgniter or CakePHP ?
I searched a lot, but I could not find any answer for my Q. | php | integrate | null | null | null | 06/18/2012 15:45:05 | not a real question | Integrate PHP with RubyOnRails
===
Is it possible to integrate php with rails, even if I use a framework on PHP like CodeIgniter or CakePHP ?
I searched a lot, but I could not find any answer for my Q. | 1 |
11,195,708 | 06/25/2012 19:07:36 | 1,053,821 | 11/18/2011 12:52:31 | 473 | 6 | file upload using php | i am developing register form using php where i need to upload the file its not uploading
$firstname=$_REQUEST['firstname'];
$lastname=$_REQUEST['lastname'];
$username=$_REQUEST['username'];
$password=$_REQUEST['password'];
$email=$_REQUEST['email'];
$Image=basename($_FILES['file']['name']);
$Image=str_replace(' ','|',$Image);
if($firstname && $lastname && $username && $email)
{
require 'dbconnect.php';
$query="select * from members where email='$email'";
$result=mysql_query($query);
$exists=mysql_num_rows($result);
if($exists>0)
{
$message=array("message"=>"email already existed");
echo json_encode($message);
}
else{
if($Image)
{
$Image=date("YmdHis").".jpg";
$target_path="userimages/".$Image;
move_uploaded_file($_FILES["file"]["tmp_name"],$target_path);
$query="INSERT INTO `members`
(`username`, `firstname`, `lastname`, `email`, `password`, `image`) VALUES
('$username', '$firstname', '$lastname', '$email', '$password', '$Image')";
}
else
{
$query="INSERT INTO `members` (`username`, `firstname`, `lastname`, `email`, `password`) VALUES
('$username', '$firstname', '$lastname', '$email', '$password')";
}
$result=mysql_query($query);
}}
in this i upload image but its not uploaded to server and also to database in this else condition is exicuted
please help me | php | mysql | null | null | null | 06/25/2012 19:43:02 | not a real question | file upload using php
===
i am developing register form using php where i need to upload the file its not uploading
$firstname=$_REQUEST['firstname'];
$lastname=$_REQUEST['lastname'];
$username=$_REQUEST['username'];
$password=$_REQUEST['password'];
$email=$_REQUEST['email'];
$Image=basename($_FILES['file']['name']);
$Image=str_replace(' ','|',$Image);
if($firstname && $lastname && $username && $email)
{
require 'dbconnect.php';
$query="select * from members where email='$email'";
$result=mysql_query($query);
$exists=mysql_num_rows($result);
if($exists>0)
{
$message=array("message"=>"email already existed");
echo json_encode($message);
}
else{
if($Image)
{
$Image=date("YmdHis").".jpg";
$target_path="userimages/".$Image;
move_uploaded_file($_FILES["file"]["tmp_name"],$target_path);
$query="INSERT INTO `members`
(`username`, `firstname`, `lastname`, `email`, `password`, `image`) VALUES
('$username', '$firstname', '$lastname', '$email', '$password', '$Image')";
}
else
{
$query="INSERT INTO `members` (`username`, `firstname`, `lastname`, `email`, `password`) VALUES
('$username', '$firstname', '$lastname', '$email', '$password')";
}
$result=mysql_query($query);
}}
in this i upload image but its not uploaded to server and also to database in this else condition is exicuted
please help me | 1 |
3,711,016 | 09/14/2010 16:44:52 | 316,574 | 04/14/2010 14:06:33 | 39 | 2 | SQL Query: SUM on three columns with criteria | I have a table with columns like these :
idx | amount | usercol1 | usercol2 | usercol3 | percentage1 | percentage2 | percentage3
Data is typically like this :
0 | 1500 | 1 | null | null | 100 | null | null
1 | 3000 | 2 | 3 | null | 50 | 50 | null
I would like to make a SUM() of every user's amount.
Example :
- user1= 1500*100/100 (amount*usercol1/100)
- user2= 3000*50/100 (amount*usercol1/100)
- user3= 3000*50/100 (amount*usercol2/100)
I tried UNION to no avail (did not sum the SUMs).
Is there a way to do this ? The problem being that it should GROUP BY the username (which I get with a LEFT OUTER JOIN usernames ON exampletable.usercol1=usernames.idx).
I know this is non standard and would be better with relations from another table. But I am not allowed to change the table structure.
Many many many thanks ! :=)
Hereby, an example that gives a wrong result (seems to give only results from the query in the middle)
(
SELECT SUM(projects.amount * (projects.percentage1/100)) as totalproj,
entities.idx as idx,
COUNT(projects.idx) as numproj,
entities.name
FROM projects
INNER JOIN entities ON projects.usercol1=entities.idx
WHERE projects.usercol1=entities.idx
GROUP BY name ORDER BY totalproj DESC
)
UNION ALL
(
SELECT SUM(projects.amount * (projects.percentage2/100)) as totalproj,
entities.idx as idx,
COUNT(projects.idx) as numproj,
entities.name
FROM projects
INNER JOIN entities ON projects.usercol2=entities.idx
WHERE projects.usercol2=entities.idx
GROUP BY name ORDER BY totalproj DESC
)
UNION ALL
(
SELECT SUM(projects.amount * (projects.percentage3/100)) as totalproj,
entities.idx as idx,
COUNT(projects.idx) as numproj,
entities.name
FROM projects
INNER JOIN entities ON projects.usercol3=entities.idx
WHERE projects.usercol3=entities.idx
GROUP BY name ORDER BY totalproj DESC
)
ORDER BY totalproj DESC
LIMIT 10 | mysql | sum | null | null | null | null | open | SQL Query: SUM on three columns with criteria
===
I have a table with columns like these :
idx | amount | usercol1 | usercol2 | usercol3 | percentage1 | percentage2 | percentage3
Data is typically like this :
0 | 1500 | 1 | null | null | 100 | null | null
1 | 3000 | 2 | 3 | null | 50 | 50 | null
I would like to make a SUM() of every user's amount.
Example :
- user1= 1500*100/100 (amount*usercol1/100)
- user2= 3000*50/100 (amount*usercol1/100)
- user3= 3000*50/100 (amount*usercol2/100)
I tried UNION to no avail (did not sum the SUMs).
Is there a way to do this ? The problem being that it should GROUP BY the username (which I get with a LEFT OUTER JOIN usernames ON exampletable.usercol1=usernames.idx).
I know this is non standard and would be better with relations from another table. But I am not allowed to change the table structure.
Many many many thanks ! :=)
Hereby, an example that gives a wrong result (seems to give only results from the query in the middle)
(
SELECT SUM(projects.amount * (projects.percentage1/100)) as totalproj,
entities.idx as idx,
COUNT(projects.idx) as numproj,
entities.name
FROM projects
INNER JOIN entities ON projects.usercol1=entities.idx
WHERE projects.usercol1=entities.idx
GROUP BY name ORDER BY totalproj DESC
)
UNION ALL
(
SELECT SUM(projects.amount * (projects.percentage2/100)) as totalproj,
entities.idx as idx,
COUNT(projects.idx) as numproj,
entities.name
FROM projects
INNER JOIN entities ON projects.usercol2=entities.idx
WHERE projects.usercol2=entities.idx
GROUP BY name ORDER BY totalproj DESC
)
UNION ALL
(
SELECT SUM(projects.amount * (projects.percentage3/100)) as totalproj,
entities.idx as idx,
COUNT(projects.idx) as numproj,
entities.name
FROM projects
INNER JOIN entities ON projects.usercol3=entities.idx
WHERE projects.usercol3=entities.idx
GROUP BY name ORDER BY totalproj DESC
)
ORDER BY totalproj DESC
LIMIT 10 | 0 |
6,678,515 | 07/13/2011 12:01:44 | 839,016 | 07/11/2011 13:51:45 | 38 | 0 | Play framework: Functional test always fails. | I always get this error: 'A play.mvc.results.Redirect has been caught, null'
What does this mean and how can i solve the problem?
| redirect | playframework | functional-testing | null | null | 07/14/2011 21:04:05 | not a real question | Play framework: Functional test always fails.
===
I always get this error: 'A play.mvc.results.Redirect has been caught, null'
What does this mean and how can i solve the problem?
| 1 |
6,961,706 | 08/05/2011 19:37:00 | 757,069 | 05/17/2011 09:19:55 | 1 | 0 | cookie support in blackberry os 4 and above | I've developed a web application for mobile. As I'm new to mobile web development I'm little worried about the support for cookies in smart phones. Application is targeted to be viewed in iPhone, Android supported mobiles, blackberry OS 4 or above versions. I'm not aware of all features which are support on our desktop PC browser and mobile browser.
My application is ready I've tested on my desktop but not on any smart phone. I don't know JAVA and used PHP to develop the application. Monday I've to give demo of the application to client.
Can any one will tell me whether worries are acceptable.. Can I give demo without checking/confirming the app on blackberry device(as client want to see the application on blackberry OS 4 and above). How should I test app on different devices. with buying any device...
Please help me... | php | blackberry | cookies | operating-system | null | null | open | cookie support in blackberry os 4 and above
===
I've developed a web application for mobile. As I'm new to mobile web development I'm little worried about the support for cookies in smart phones. Application is targeted to be viewed in iPhone, Android supported mobiles, blackberry OS 4 or above versions. I'm not aware of all features which are support on our desktop PC browser and mobile browser.
My application is ready I've tested on my desktop but not on any smart phone. I don't know JAVA and used PHP to develop the application. Monday I've to give demo of the application to client.
Can any one will tell me whether worries are acceptable.. Can I give demo without checking/confirming the app on blackberry device(as client want to see the application on blackberry OS 4 and above). How should I test app on different devices. with buying any device...
Please help me... | 0 |
11,570,521 | 07/19/2012 22:55:46 | 186,820 | 10/08/2009 23:20:10 | 259 | 1 | Android: How to query a list of bucket name | I want to retrieve only the name of the bucket (Albums). E.g. Camera, Download etc but not a list of Camera, Download etc from all the the photos so how do I retrieve one row each for each bucket name? | android | query | gallery | bucket | null | null | open | Android: How to query a list of bucket name
===
I want to retrieve only the name of the bucket (Albums). E.g. Camera, Download etc but not a list of Camera, Download etc from all the the photos so how do I retrieve one row each for each bucket name? | 0 |
9,803,539 | 03/21/2012 11:17:31 | 597,388 | 01/31/2011 19:44:20 | 302 | 1 | How to reference css and .js files with absolute urls | i'm trying to reference a js file and stylesheet using an absolute url. Doesn't seem to work. The reason i need to use an absolute url is because the css file is not editable if i use ~. This is what i have, my stylesheet is not applied and seems like its not found...
`<script src="D:/MyProjects/myProject/Src/Web/Scripts/less-1.3.0-min.js" type="text/javascript"></script>`
<link rel="stylesheet/less" type="text/css" href="D:/MyProjects/myProject/Src/Web/Content/CSS/mystylesheet.less" /> | javascript | asp.net-mvc | razor | less | null | 03/23/2012 15:34:15 | not a real question | How to reference css and .js files with absolute urls
===
i'm trying to reference a js file and stylesheet using an absolute url. Doesn't seem to work. The reason i need to use an absolute url is because the css file is not editable if i use ~. This is what i have, my stylesheet is not applied and seems like its not found...
`<script src="D:/MyProjects/myProject/Src/Web/Scripts/less-1.3.0-min.js" type="text/javascript"></script>`
<link rel="stylesheet/less" type="text/css" href="D:/MyProjects/myProject/Src/Web/Content/CSS/mystylesheet.less" /> | 1 |
7,928,875 | 10/28/2011 11:55:28 | 985,440 | 10/08/2011 14:35:21 | 6 | 0 | Do while loop not working as they are supposed to in java | I have little problem with do while loop, when I run the program it is working, at least partially, what I mean is first you need to make a choice for convertion from C to F or from F to C
and after you enter the values the program stops what I want to do is to keep asking for values until you enter 3.I tried to do it with do while loop but it is not working so if someone have any ideas I would be grateful,I am using Eclipse. Here is the code:
import java.util.Scanner;
public class DegreesInConversion2 {
public static void main(String[] args) {
Scanner input = new Scanner (System.in);
System.out.println("Conversion table: ");
int choice = input.nextInt();
do
{
System.out.println();
System.out.println("1 for convertion from Celsious to Fahrenhait: ");
System.out.println("2 for convertion froom Fahrenheit to Celsious: ");
System.out.println("3 for Exit: ");
System.out.println();
System.out.println("Make a choice between 1 - 3 ");
choice = input.nextInt();
System.out.println();
switch (choice)
{
case 1:
System.out.println("Enter temperature in Celsious: ");
double cel = input.nextDouble();
if (cel < -273.15)
{
System.out.println("Invalid values, please enter temperature greater than -273.15 in C:");
}
else
{
System.out.println("You enetered " + cel + "C " + "which is " + (((cel * 9) / 5) + 32) + "F" );
}
break;
case 2:
System.out.println("Enter temperature in Farhneit: ");
double far = input.nextDouble();
if (far < -459.67)
{
System.out.println("Invalid values, please enter temperature greater than -459.67 in F:");
}
else
{
System.out.println("You enetered " + far + "F " + "which is " + (((far - 32) * 5) / 9) + "C" );
}
break;
case 3:
System.out.println("Goodbyu have a nice day: ");
break;
default:
System.out.println("Invalid entry: Please enter a number between 1-3:");
}
}while (choice != 3);
}
} | java | null | null | null | null | null | open | Do while loop not working as they are supposed to in java
===
I have little problem with do while loop, when I run the program it is working, at least partially, what I mean is first you need to make a choice for convertion from C to F or from F to C
and after you enter the values the program stops what I want to do is to keep asking for values until you enter 3.I tried to do it with do while loop but it is not working so if someone have any ideas I would be grateful,I am using Eclipse. Here is the code:
import java.util.Scanner;
public class DegreesInConversion2 {
public static void main(String[] args) {
Scanner input = new Scanner (System.in);
System.out.println("Conversion table: ");
int choice = input.nextInt();
do
{
System.out.println();
System.out.println("1 for convertion from Celsious to Fahrenhait: ");
System.out.println("2 for convertion froom Fahrenheit to Celsious: ");
System.out.println("3 for Exit: ");
System.out.println();
System.out.println("Make a choice between 1 - 3 ");
choice = input.nextInt();
System.out.println();
switch (choice)
{
case 1:
System.out.println("Enter temperature in Celsious: ");
double cel = input.nextDouble();
if (cel < -273.15)
{
System.out.println("Invalid values, please enter temperature greater than -273.15 in C:");
}
else
{
System.out.println("You enetered " + cel + "C " + "which is " + (((cel * 9) / 5) + 32) + "F" );
}
break;
case 2:
System.out.println("Enter temperature in Farhneit: ");
double far = input.nextDouble();
if (far < -459.67)
{
System.out.println("Invalid values, please enter temperature greater than -459.67 in F:");
}
else
{
System.out.println("You enetered " + far + "F " + "which is " + (((far - 32) * 5) / 9) + "C" );
}
break;
case 3:
System.out.println("Goodbyu have a nice day: ");
break;
default:
System.out.println("Invalid entry: Please enter a number between 1-3:");
}
}while (choice != 3);
}
} | 0 |
8,208,838 | 11/21/2011 08:03:29 | 838,216 | 07/11/2011 04:24:48 | 21 | 0 | Encourage Admob clicks violates the TOS? | I have a little game published in Android Market. I'm considering implementing a mechanism for award the clicks over the ads with in-game points, trying to detect them using the Adlistener class provided by Admob.
Doing that would violate the terms of service Admob or any other rule of Android Market?
I have read the TOS and don't see this point explicitly stated. The point where these things are treated is this:
> User shall not, and shall not authorize or encourage any third party to generate fraudulent impressions of or fraudulent clicks on any advertisement, including but not limited to, through repeated manual clicks, the use of robots or other automated query tools and/or computer generated search requests, and/or the fraudulent use of other search engine optimization services and/or software
So the question is, does encourage the clicks convert them into fraudulent clicks?
Thanks | java | android | admob | null | null | 11/21/2011 09:43:06 | off topic | Encourage Admob clicks violates the TOS?
===
I have a little game published in Android Market. I'm considering implementing a mechanism for award the clicks over the ads with in-game points, trying to detect them using the Adlistener class provided by Admob.
Doing that would violate the terms of service Admob or any other rule of Android Market?
I have read the TOS and don't see this point explicitly stated. The point where these things are treated is this:
> User shall not, and shall not authorize or encourage any third party to generate fraudulent impressions of or fraudulent clicks on any advertisement, including but not limited to, through repeated manual clicks, the use of robots or other automated query tools and/or computer generated search requests, and/or the fraudulent use of other search engine optimization services and/or software
So the question is, does encourage the clicks convert them into fraudulent clicks?
Thanks | 2 |
11,178,290 | 06/24/2012 14:30:19 | 1,345,099 | 04/19/2012 20:59:28 | 214 | 16 | Ruby on Rails roadmaps | Does anyone have informations about Ruby on Rails 3 roadmap?
And Ruby on Rails 4 roadmap?
Life Cycle duration for a major version is about 2 years:
- **1.0[1] December 13, 2005**
- **2.0[3] December 7, 2007**
- **3.0[7] August 29, 2010**
- 3.1[8] August 31, 2011
- 3.2[9] January 20, 2012
- *3.3 ??*
- *4.0 ??*
It is my opinion that Ruby on Rails could be a true enterprise framework if roadmaps and development are scheduled and known. For a private company these facts are part of business.
And last but not least thanks to all RoR and Ruby core developers for the amazing work.
| ruby-on-rails | ruby | software-engineering | null | null | 06/24/2012 17:19:14 | off topic | Ruby on Rails roadmaps
===
Does anyone have informations about Ruby on Rails 3 roadmap?
And Ruby on Rails 4 roadmap?
Life Cycle duration for a major version is about 2 years:
- **1.0[1] December 13, 2005**
- **2.0[3] December 7, 2007**
- **3.0[7] August 29, 2010**
- 3.1[8] August 31, 2011
- 3.2[9] January 20, 2012
- *3.3 ??*
- *4.0 ??*
It is my opinion that Ruby on Rails could be a true enterprise framework if roadmaps and development are scheduled and known. For a private company these facts are part of business.
And last but not least thanks to all RoR and Ruby core developers for the amazing work.
| 2 |
8,176,922 | 11/18/2011 02:03:04 | 266,500 | 02/04/2010 19:21:54 | 16 | 0 | How to allow interaction between Java application and user front Web interface | I need to create a user facing web interface (perhaps with HTML5 and Javascript) that allows a user to draw lines using a mouse. The interaction would involve mouse drag, clicks, etc. I need to send these inputs to a Java application on a remote machine and get back some result and update the web page the user's drawing on. So this would require a two way communication.
Since this is a proof of concept prototype, I need a solution that's easy and simple, and hopefully fast since the user would like to see the update quickly. What technology do you recommend to allow the communication between the web interface and java application? I was thinking about writing a simple server in Java and talk to the remote application using JMS... not sure this is the right direction.
Thank you for your insights. | java | web | null | null | null | null | open | How to allow interaction between Java application and user front Web interface
===
I need to create a user facing web interface (perhaps with HTML5 and Javascript) that allows a user to draw lines using a mouse. The interaction would involve mouse drag, clicks, etc. I need to send these inputs to a Java application on a remote machine and get back some result and update the web page the user's drawing on. So this would require a two way communication.
Since this is a proof of concept prototype, I need a solution that's easy and simple, and hopefully fast since the user would like to see the update quickly. What technology do you recommend to allow the communication between the web interface and java application? I was thinking about writing a simple server in Java and talk to the remote application using JMS... not sure this is the right direction.
Thank you for your insights. | 0 |
7,702,007 | 10/09/2011 07:17:08 | 590,221 | 01/26/2011 06:58:32 | 11 | 6 | LinearLayout not drawing but receives events | I have this layout in my xml code:
<LinearLayout
android:id="@+id/NewMessagelayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center"
android:focusable="true"
android:focusableInTouchMode="true">
<EditText
android:id="@+id/EditText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLength="140" />
<Button
android:id="@+id/ReplyBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
Above (not on top) it there is a listview.
What happens is that when I start this activity I don't see this Linearlayout but when I press it's location the keyboard pops up and I can enter text.
I don't understand why the layout isn't drawing.
Thanks. | android | android-layout | android-linearlayout | null | null | null | open | LinearLayout not drawing but receives events
===
I have this layout in my xml code:
<LinearLayout
android:id="@+id/NewMessagelayout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center"
android:focusable="true"
android:focusableInTouchMode="true">
<EditText
android:id="@+id/EditText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:maxLength="140" />
<Button
android:id="@+id/ReplyBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
Above (not on top) it there is a listview.
What happens is that when I start this activity I don't see this Linearlayout but when I press it's location the keyboard pops up and I can enter text.
I don't understand why the layout isn't drawing.
Thanks. | 0 |
8,990,036 | 01/24/2012 16:07:13 | 995,089 | 10/14/2011 08:57:47 | 151 | 19 | Exception with Glassfish - MySQL | I am developing a JSF and EJB based application. The application runs fine, the first few times when I try to run the application from the IDE. After making some changes, say, I can run the application from the IDE(Netbeans 7.1) for some 4 times. The 5th time I run the appliaction I generally get the following exception,
WARNING: RAR5035:Unexpected exception while destroying resource from pool mysql_mysql_rootPool. Exception message: WEB9031: WebappClassLoader unable to load resource [com.mysql.jdbc.profiler.ProfilerEventHandlerFactory], because it has not yet been started, or was already stopped
WARNING: RAR5058: Error while Resizing pool mysql_mysql_rootPool. Exception : null
After this, I am no longer able to use the application and I have to restart the AS. I believe this has something to do with a wrong configuration of the JDBC Connection Pool in Glassfish. Could you please give me some solutions to avoid this? If there are any pointers to sample configurations of the connection pool, please share it with me.
-Thanks | mysql | hibernate | jpa-2.0 | glassfish-3 | null | null | open | Exception with Glassfish - MySQL
===
I am developing a JSF and EJB based application. The application runs fine, the first few times when I try to run the application from the IDE. After making some changes, say, I can run the application from the IDE(Netbeans 7.1) for some 4 times. The 5th time I run the appliaction I generally get the following exception,
WARNING: RAR5035:Unexpected exception while destroying resource from pool mysql_mysql_rootPool. Exception message: WEB9031: WebappClassLoader unable to load resource [com.mysql.jdbc.profiler.ProfilerEventHandlerFactory], because it has not yet been started, or was already stopped
WARNING: RAR5058: Error while Resizing pool mysql_mysql_rootPool. Exception : null
After this, I am no longer able to use the application and I have to restart the AS. I believe this has something to do with a wrong configuration of the JDBC Connection Pool in Glassfish. Could you please give me some solutions to avoid this? If there are any pointers to sample configurations of the connection pool, please share it with me.
-Thanks | 0 |
10,264,897 | 04/22/2012 03:07:21 | 1,161,080 | 01/20/2012 17:06:05 | 8 | 0 | Confused about setting up SQL | I need to run some basic SQL code for a class assignment, but I'm having trouble setting up an environment to work in. I have xampp downloaded on my Ubuntu machine, but what else do I need to download to make it work? How do I create a SQL document and actually run it? | sql | null | null | null | null | 04/22/2012 18:04:44 | not a real question | Confused about setting up SQL
===
I need to run some basic SQL code for a class assignment, but I'm having trouble setting up an environment to work in. I have xampp downloaded on my Ubuntu machine, but what else do I need to download to make it work? How do I create a SQL document and actually run it? | 1 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.