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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1,183,842 | 07/26/2009 05:55:40 | 145,190 | 07/26/2009 05:53:32 | 1 | 0 | Referrer URL ( entire URL including parameters ) | Are there any HTTP Headers I could use to grab the entire referrer URL using a webserver/server-side scripting? Including query string, et cetera? | referrer | url | apache2 | server-side | php | null | open | Referrer URL ( entire URL including parameters )
===
Are there any HTTP Headers I could use to grab the entire referrer URL using a webserver/server-side scripting? Including query string, et cetera? | 0 |
5,837,434 | 04/29/2011 21:10:08 | 731,783 | 04/29/2011 21:10:08 | 1 | 0 | Flash version across browsers | This may seem like an obvious question but I can't find an answer..
Is the flash version installed on, say IE, on a single computer the same version on other browsers installed on that same computer ? | flash | null | null | null | null | null | open | Flash version across browsers
===
This may seem like an obvious question but I can't find an answer..
Is the flash version installed on, say IE, on a single computer the same version on other browsers installed on that same computer ? | 0 |
8,330,080 | 11/30/2011 17:14:42 | 1,071,846 | 11/29/2011 17:32:46 | 3 | 0 | Copying the contents from a test.sql file to a test.db file in sqlite3 | I've googled this for a while and just can't seem to find the answer. I have a file test.sql containing the following information :
CREATE TABLE person (
id INTEGER PRIMARY KEY,
first_name TEXT,
last_name TEXT,
age INTEGER
);
CREATE TABLE person_pet (
person_id INTEGER,
pet_id INTEGER
);
CREATE TABLE pet (
id INTEGER PRIMARY KEY,
name TEXT,
breed TEXT,
age INTEGER,
dead INTEGER
);
I want to copy it over to a file named test.db. I'm using Terminal on a Mac and I type in the following:
$ sqlite3 test.db < test.sql
When I run it, I get 4 beeps and the following code:
^!!?tableperson_petperson_petCREATE TABLE person_pet (
person_id INTEGER,
pet_id INTEGER
)p?GtablepetpetCREATE TABLE pet (
id INTEGER PRIMARY KEY,
name TEXT,
breed TEXT,
age INTEGER,
dead INTEGER
)u?EtablepersonpersonCREATE TABLE person (
id INTEGER PRIMARY KEY,
first_name TEXT,
last_name TEXT,
age INTEGER
)
Any help would be most welcome! | sqlite3 | null | null | null | null | null | open | Copying the contents from a test.sql file to a test.db file in sqlite3
===
I've googled this for a while and just can't seem to find the answer. I have a file test.sql containing the following information :
CREATE TABLE person (
id INTEGER PRIMARY KEY,
first_name TEXT,
last_name TEXT,
age INTEGER
);
CREATE TABLE person_pet (
person_id INTEGER,
pet_id INTEGER
);
CREATE TABLE pet (
id INTEGER PRIMARY KEY,
name TEXT,
breed TEXT,
age INTEGER,
dead INTEGER
);
I want to copy it over to a file named test.db. I'm using Terminal on a Mac and I type in the following:
$ sqlite3 test.db < test.sql
When I run it, I get 4 beeps and the following code:
^!!?tableperson_petperson_petCREATE TABLE person_pet (
person_id INTEGER,
pet_id INTEGER
)p?GtablepetpetCREATE TABLE pet (
id INTEGER PRIMARY KEY,
name TEXT,
breed TEXT,
age INTEGER,
dead INTEGER
)u?EtablepersonpersonCREATE TABLE person (
id INTEGER PRIMARY KEY,
first_name TEXT,
last_name TEXT,
age INTEGER
)
Any help would be most welcome! | 0 |
8,778,771 | 01/08/2012 15:33:34 | 1,031,775 | 11/06/2011 02:33:01 | 1 | 1 | Instagram basic implementation | Can some one give me a link of an example application using the instagram API using RUBY ON RAILS which can be used as a reference? | ruby-on-rails | ruby | instagram | null | null | 01/09/2012 14:53:35 | not constructive | Instagram basic implementation
===
Can some one give me a link of an example application using the instagram API using RUBY ON RAILS which can be used as a reference? | 4 |
8,700,175 | 01/02/2012 11:17:49 | 1,122,479 | 12/30/2011 06:39:29 | 26 | 2 | Bootstrap CSS stylesheet | I recently know about bootstrap css and wonder, that stylesheet is also available like php classes for quick starting work..
however, i want to know that which bootstrap css is best and how to use it in projects..i.e. how to make changes in it... | css | stylesheet | bootstrap | null | null | 03/16/2012 19:08:40 | not a real question | Bootstrap CSS stylesheet
===
I recently know about bootstrap css and wonder, that stylesheet is also available like php classes for quick starting work..
however, i want to know that which bootstrap css is best and how to use it in projects..i.e. how to make changes in it... | 1 |
4,029,975 | 10/27/2010 04:31:17 | 444,049 | 09/10/2010 05:56:17 | 3 | 0 | Excel listing named range in a worksheet and get the value | How to obtain a list of named range exist in a specific worksheet and grab the value? I am trying to do Sub Total and Grand Total of accommodation cost based on the date. I will assign an unique name for each Sub Total based on the Date. Then, I have a button that need to be clicked when it finishes to calculate the Grand Total based on the Named Range that I've assigned uniquely to each Sub Total.
Below is the code I wrote to do the Grand Total:
Sub btnTotal()
Dim Total, LastRowNo As Long
LastRowNo = ActiveSheet.UsedRange.Row + ActiveSheet.UsedRange.Rows.Count
Total = 0
For Each N In ActiveWorkbook.Names
Total = Total + IntFlight.Range(N.Name).Value
Next N
IntFlight.Range("$P" & LastRowNo).Select
Selection.NumberFormat = "$* #,##0.00;$* (#,##0.00);$* ""-""??;@"
With Selection
.Font.Bold = True
End With
ActiveCell.FormulaR1C1 = Total
End Sub
Note: the IntFlight from "Total = Total + IntFlight.Range(N.Name).Value" is the name of my worksheet.
The above code is working OK couple minutes ago, but now it is giving me an Error Message: Method 'Range' of object '_Worksheet' failed.
The only problem with above code, it will looking all named range exist in a workbook. I just need to find named range exist in a worksheet and then grab the value to be sum-ed.
Any ideas how to do this? Been spending 2 days to find the answer.
Thanks heaps in advance. | excel | vba | macros | range | named | null | open | Excel listing named range in a worksheet and get the value
===
How to obtain a list of named range exist in a specific worksheet and grab the value? I am trying to do Sub Total and Grand Total of accommodation cost based on the date. I will assign an unique name for each Sub Total based on the Date. Then, I have a button that need to be clicked when it finishes to calculate the Grand Total based on the Named Range that I've assigned uniquely to each Sub Total.
Below is the code I wrote to do the Grand Total:
Sub btnTotal()
Dim Total, LastRowNo As Long
LastRowNo = ActiveSheet.UsedRange.Row + ActiveSheet.UsedRange.Rows.Count
Total = 0
For Each N In ActiveWorkbook.Names
Total = Total + IntFlight.Range(N.Name).Value
Next N
IntFlight.Range("$P" & LastRowNo).Select
Selection.NumberFormat = "$* #,##0.00;$* (#,##0.00);$* ""-""??;@"
With Selection
.Font.Bold = True
End With
ActiveCell.FormulaR1C1 = Total
End Sub
Note: the IntFlight from "Total = Total + IntFlight.Range(N.Name).Value" is the name of my worksheet.
The above code is working OK couple minutes ago, but now it is giving me an Error Message: Method 'Range' of object '_Worksheet' failed.
The only problem with above code, it will looking all named range exist in a workbook. I just need to find named range exist in a worksheet and then grab the value to be sum-ed.
Any ideas how to do this? Been spending 2 days to find the answer.
Thanks heaps in advance. | 0 |
9,019,298 | 01/26/2012 14:08:37 | 1,165,136 | 01/23/2012 14:31:05 | 1 | 0 | live Webcam streaming to adobe media server from a website | I am trying to make a website which will have this option to stream live from the logged in person's account. I mean that if a person wants to broadcast from his webcam, he ll just click on a button on the web page and streaming to the adobe media server will start. Is there a way to do this? | adobe | media | live | webcam | null | null | open | live Webcam streaming to adobe media server from a website
===
I am trying to make a website which will have this option to stream live from the logged in person's account. I mean that if a person wants to broadcast from his webcam, he ll just click on a button on the web page and streaming to the adobe media server will start. Is there a way to do this? | 0 |
10,767,328 | 05/26/2012 15:06:08 | 435,175 | 08/30/2010 16:49:21 | 261 | 12 | Saving a long list of hasMany Through associasions | This might be considered too non-specific a question, but I'm sure others have come up against this kind of conundrum, so it might just warrant being asked!
I have two models: Users and Surveys. My goal is to edit/save records from the **Index view**. In the Index view, each User row will have two select lists and some checkboxes. The select lists are populated with the names of all the available Surveys.
The purpose is to allow an admin to assign two Surveys to each user; to edit and save the records, right from the Index view. Currently, associations take place via a hasMany Through association: the intermediary model is called SurveyAssignments (I can't do HABTM because I'm storing meta info).
What I'm struggling with is this: I can't figure out how to save all those associations from the view. What's making it tricky is the fact that each user will have a different association "state": some users will have association records, some will not. Some will need associations created, others updated or removed. New users will be added to the system, but will still appear in the list with currently existing users, who already have associations.
There's also an issue with constraint: each user will only ever have a maximum of two SurveyAssignment records associated with them.
Again, it's the logic that I can't wrap my head around: how can I save multiple records from one view, accounting for each User's unique association states, all without getting overly bloated or complex? Are there any Cake methods I'm missing that could simplify the situation? | cakephp | associations | null | null | null | null | open | Saving a long list of hasMany Through associasions
===
This might be considered too non-specific a question, but I'm sure others have come up against this kind of conundrum, so it might just warrant being asked!
I have two models: Users and Surveys. My goal is to edit/save records from the **Index view**. In the Index view, each User row will have two select lists and some checkboxes. The select lists are populated with the names of all the available Surveys.
The purpose is to allow an admin to assign two Surveys to each user; to edit and save the records, right from the Index view. Currently, associations take place via a hasMany Through association: the intermediary model is called SurveyAssignments (I can't do HABTM because I'm storing meta info).
What I'm struggling with is this: I can't figure out how to save all those associations from the view. What's making it tricky is the fact that each user will have a different association "state": some users will have association records, some will not. Some will need associations created, others updated or removed. New users will be added to the system, but will still appear in the list with currently existing users, who already have associations.
There's also an issue with constraint: each user will only ever have a maximum of two SurveyAssignment records associated with them.
Again, it's the logic that I can't wrap my head around: how can I save multiple records from one view, accounting for each User's unique association states, all without getting overly bloated or complex? Are there any Cake methods I'm missing that could simplify the situation? | 0 |
5,693,435 | 04/17/2011 12:12:21 | 677,607 | 03/14/2011 22:12:55 | 38 | 1 | Iteration of List in C# how? | how do i iterate a List in C#?
Thanks | c# | list | iterator | iteration | null | 04/23/2011 21:15:20 | not a real question | Iteration of List in C# how?
===
how do i iterate a List in C#?
Thanks | 1 |
2,456,270 | 03/16/2010 16:39:35 | 264,747 | 02/02/2010 21:23:45 | 1 | 0 | Logs overwritten in CruiseCControl.NET when there is multiple MSBuild Tasks. | I have two MSBuild tasks in my CC.NET config. In the end of the execution, i can see two blocks of warnings/errors in the log and published email. But the problem is that the contents of both the blocks are the same and that is from the second MSBuild task!! In another way, the second MSBuild task overwrites the first log, and then creates another one for itself effectively creating two exactly identical block!!!
Do anybody have any thoughts on this? I am happy to provide more information if you require about the environment and configuration.
Thanks,
James Poulose | cruisecontrol.net | msbuild | logging | null | null | null | open | Logs overwritten in CruiseCControl.NET when there is multiple MSBuild Tasks.
===
I have two MSBuild tasks in my CC.NET config. In the end of the execution, i can see two blocks of warnings/errors in the log and published email. But the problem is that the contents of both the blocks are the same and that is from the second MSBuild task!! In another way, the second MSBuild task overwrites the first log, and then creates another one for itself effectively creating two exactly identical block!!!
Do anybody have any thoughts on this? I am happy to provide more information if you require about the environment and configuration.
Thanks,
James Poulose | 0 |
10,462,368 | 05/05/2012 13:34:49 | 1,376,835 | 05/05/2012 13:22:32 | 1 | 0 | Is there an overview of all the commits I made to google code projects? | I remember having an "Updates" or "Changes" section on my profile page were I could easily look up all the commits I've made to various projects but I somehow cannot find that anymore. Was it removed on purpose or am I just plain blind? | google | commit | profile | overview | null | 05/07/2012 11:51:36 | off topic | Is there an overview of all the commits I made to google code projects?
===
I remember having an "Updates" or "Changes" section on my profile page were I could easily look up all the commits I've made to various projects but I somehow cannot find that anymore. Was it removed on purpose or am I just plain blind? | 2 |
9,142,159 | 02/04/2012 15:58:53 | 567,200 | 01/07/2011 16:50:11 | 56 | 1 | Lock screen app | I'm trying to create an Activity which would behave like a lock screen. I've seen apps on the market which do this, so I'm sure it is possible. ToddlerLock is a great example.
I already tried to and unfortunately without much luck.
I've set the category of my activity to HOME in my manifest file. This makes the app start when the home button is pressed... that is not really what I want but it's close. I know this has something to do with it because this is what ToddlerLock does. After installing it asks you to set it as the default Home app. Not sure what it does next but it works. Maybe it saves the previous Home app and launches that when the home button is pressed?
I'm running out of ideas really... please help me with this... | android | null | null | null | null | null | open | Lock screen app
===
I'm trying to create an Activity which would behave like a lock screen. I've seen apps on the market which do this, so I'm sure it is possible. ToddlerLock is a great example.
I already tried to and unfortunately without much luck.
I've set the category of my activity to HOME in my manifest file. This makes the app start when the home button is pressed... that is not really what I want but it's close. I know this has something to do with it because this is what ToddlerLock does. After installing it asks you to set it as the default Home app. Not sure what it does next but it works. Maybe it saves the previous Home app and launches that when the home button is pressed?
I'm running out of ideas really... please help me with this... | 0 |
11,487,347 | 07/14/2012 20:58:07 | 668,970 | 03/21/2011 06:21:45 | 1,637 | 127 | do there any api for extracting audio from video files | Please suggest any api for extracting audio i,e(background music/music) from video files.
| java | audio | video | null | null | 07/15/2012 06:21:34 | not a real question | do there any api for extracting audio from video files
===
Please suggest any api for extracting audio i,e(background music/music) from video files.
| 1 |
9,694,249 | 03/14/2012 00:24:56 | 1,146,775 | 01/13/2012 01:44:52 | 196 | 3 | How to disable the "Delete" link while deleting an object in razor view | i have the following table which contains an ajax.actionlink to delete an object:-
<tr id = @answer.AnswersID>
<td>
@Html.DisplayFor(modelItem => answer.Description)
</td>
<td>
@Html.DisplayFor(modelItem => answer.Answer_Description.description)
</td>
<td>
@{ string i = "Are uou sure you want to delete " + @answer.Description.ToString() + " ?";}
@Ajax.ActionLink("Delete", "Delete", "Answer",
new { id = answer.AnswersID },
new AjaxOptions
{
Confirm = i,
HttpMethod = "Post",
OnBegin = string.Format(
"disablelink({0})",
Json.Encode(answer.AnswersID)),
OnSuccess = string.Format(
"deleteconfirmation3({0})",
Json.Encode(answer.AnswersID))
})
</td>
</tr>}
and the following `OnBegin` & `OnSuccess` scripts:-
function disablelink(rid) {
$('#' + rid).attr("disabled",true);}
function deleteconfirmation3(rid) {
$('#' + rid).remove();
jAlert(rid + ' Was Deleted Succsfully succsfully', 'Deletion Confirmation');}
What i am trying to do is to prevent the user from clicking on the delete button twice , but the `('#' + rid).attr("disabled",true);` will not prevent the user from clicking on the delete link while the system is processing the first deletion request and the "Delete" link will still be enabled.
**So how i un activate the whole table row while processing the deletion request?**
**Second question :-** how i can pass two parameters to my java script function something similat to:-
OnSuccess = string.Format(
"deleteconfirmation3({0}.{0})",
Json.Encode(answer.AnswersID,answer.Description))
as the Json.Encode only allow passing one parameter ?
BR
| jquery | ajax | asp.net-mvc-3 | null | null | null | open | How to disable the "Delete" link while deleting an object in razor view
===
i have the following table which contains an ajax.actionlink to delete an object:-
<tr id = @answer.AnswersID>
<td>
@Html.DisplayFor(modelItem => answer.Description)
</td>
<td>
@Html.DisplayFor(modelItem => answer.Answer_Description.description)
</td>
<td>
@{ string i = "Are uou sure you want to delete " + @answer.Description.ToString() + " ?";}
@Ajax.ActionLink("Delete", "Delete", "Answer",
new { id = answer.AnswersID },
new AjaxOptions
{
Confirm = i,
HttpMethod = "Post",
OnBegin = string.Format(
"disablelink({0})",
Json.Encode(answer.AnswersID)),
OnSuccess = string.Format(
"deleteconfirmation3({0})",
Json.Encode(answer.AnswersID))
})
</td>
</tr>}
and the following `OnBegin` & `OnSuccess` scripts:-
function disablelink(rid) {
$('#' + rid).attr("disabled",true);}
function deleteconfirmation3(rid) {
$('#' + rid).remove();
jAlert(rid + ' Was Deleted Succsfully succsfully', 'Deletion Confirmation');}
What i am trying to do is to prevent the user from clicking on the delete button twice , but the `('#' + rid).attr("disabled",true);` will not prevent the user from clicking on the delete link while the system is processing the first deletion request and the "Delete" link will still be enabled.
**So how i un activate the whole table row while processing the deletion request?**
**Second question :-** how i can pass two parameters to my java script function something similat to:-
OnSuccess = string.Format(
"deleteconfirmation3({0}.{0})",
Json.Encode(answer.AnswersID,answer.Description))
as the Json.Encode only allow passing one parameter ?
BR
| 0 |
10,591,795 | 05/14/2012 22:17:11 | 910,767 | 08/24/2011 22:21:43 | 1 | 0 | Game Center, is it possible to add friends from within my game? | I have a Turn Based Game Center iPhone game. I know you can add friends to your game center account throug the official game center App. But is it also possible to add friends without leaving my game? | add | center | friends | null | null | 05/18/2012 17:07:38 | not a real question | Game Center, is it possible to add friends from within my game?
===
I have a Turn Based Game Center iPhone game. I know you can add friends to your game center account throug the official game center App. But is it also possible to add friends without leaving my game? | 1 |
2,664,538 | 04/19/2010 00:12:27 | 125,470 | 06/18/2009 23:44:52 | 506 | 40 | Problem using Retroguard to obfuscate swt application | I was trying to obfuscate SWT code using Retroguard, but after obfuscation, I can't start the jar it has created. Please advise. Thanks.
C:\Documents and Settings\zzz\My Documents>java -jar retroguard.jar swt-orig.j
ar
C:\Documents and Settings\zzz\My Documents>java -jar out.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.eclipse.swt.inter
nal.win32.OS.GetVersionExW(Lorg/eclipse/swt/internal/win32/ar;)Z
at org.eclipse.swt.internal.win32.OS.GetVersionExW(Native Method)
at org.eclipse.swt.internal.win32.OS.<clinit>(Unknown Source)
at i.z.<clinit>(Unknown Source)
at Main.main(Unknown Source) | swt | obfuscation | null | null | null | null | open | Problem using Retroguard to obfuscate swt application
===
I was trying to obfuscate SWT code using Retroguard, but after obfuscation, I can't start the jar it has created. Please advise. Thanks.
C:\Documents and Settings\zzz\My Documents>java -jar retroguard.jar swt-orig.j
ar
C:\Documents and Settings\zzz\My Documents>java -jar out.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.eclipse.swt.inter
nal.win32.OS.GetVersionExW(Lorg/eclipse/swt/internal/win32/ar;)Z
at org.eclipse.swt.internal.win32.OS.GetVersionExW(Native Method)
at org.eclipse.swt.internal.win32.OS.<clinit>(Unknown Source)
at i.z.<clinit>(Unknown Source)
at Main.main(Unknown Source) | 0 |
9,389,578 | 02/22/2012 05:33:22 | 367,562 | 06/15/2010 18:05:57 | 382 | 11 | crystal report generated PDF file printing issue | I'm having a issue with printing a pdf file which is generated using crystal report.it's printing a &amp; sign which i haven't included in the text.i can not see this when i view the report on crystal report viewer but once i print it these signs appear.i can not figure it out why is this happening.please see the Document Title Section in attach file
![enter image description here][1]
[1]: http://i.stack.imgur.com/X2ALH.jpg | asp.net | pdf | printing | crystal-reports | null | null | open | crystal report generated PDF file printing issue
===
I'm having a issue with printing a pdf file which is generated using crystal report.it's printing a &amp; sign which i haven't included in the text.i can not see this when i view the report on crystal report viewer but once i print it these signs appear.i can not figure it out why is this happening.please see the Document Title Section in attach file
![enter image description here][1]
[1]: http://i.stack.imgur.com/X2ALH.jpg | 0 |
7,429,249 | 09/15/2011 10:15:29 | 946,547 | 09/15/2011 10:15:29 | 1 | 0 | Can i configure a RAID 1 on the Dell Poweredge 860 with the onboard SATA Controller | is there a way to set up a RAID 1 with two SATA HDD on a DELL Poweredge 860 that has no specific RAID Controller. So i want to use the on board SATA controller to set up my RAID 1.
Has anybody a glue?
Many thanks,
your David | raid | dell | null | null | null | null | open | Can i configure a RAID 1 on the Dell Poweredge 860 with the onboard SATA Controller
===
is there a way to set up a RAID 1 with two SATA HDD on a DELL Poweredge 860 that has no specific RAID Controller. So i want to use the on board SATA controller to set up my RAID 1.
Has anybody a glue?
Many thanks,
your David | 0 |
11,491,738 | 07/15/2012 12:07:07 | 669,214 | 11/10/2010 10:57:42 | 3 | 0 | ContactsContract.Contacts does not return ASC order by ContactsContract.Contacts.DISPLAY_NAME | I've written code to access Contacts order byContactsContract.Contacts.DISPLAY_NAME ASC , but it does not return in order . My code is below
contactCursor = requestActivity.managedQuery(
ContactsContract.Contacts.CONTENT_URI, new String[] {
ContactsContract.Contacts._ID,
ContactsContract.Contacts.HAS_PHONE_NUMBER,
ContactsContract.Contacts.DISPLAY_NAME },
ContactsContract.Contacts.HAS_PHONE_NUMBER + "=?",
new String[] { "1" },
ContactsContract.Contacts.DISPLAY_NAME
+ " COLLATE LOCALIZED ASC LIMIT " + start
+ ", " + upto);
I'm unable to understand the reason tried in different way including below
contactCursor = requestActivity.managedQuery(
ContactsContract.Contacts.CONTENT_URI, new String[] {
ContactsContract.Contacts._ID,
ContactsContract.Contacts.HAS_PHONE_NUMBER,
ContactsContract.Contacts.DISPLAY_NAME },
ContactsContract.Contacts.HAS_PHONE_NUMBER + "=?",
new String[] { "1" },
ContactsContract.Contacts.DISPLAY_NAME
+ " ASC LIMIT " + start
+ ", " + upto);
Why It does not work ? any idea ? is it because of LIMIT or I'm doing something wrong ? please help it's urgent . | android | null | null | null | null | 07/17/2012 22:41:28 | too localized | ContactsContract.Contacts does not return ASC order by ContactsContract.Contacts.DISPLAY_NAME
===
I've written code to access Contacts order byContactsContract.Contacts.DISPLAY_NAME ASC , but it does not return in order . My code is below
contactCursor = requestActivity.managedQuery(
ContactsContract.Contacts.CONTENT_URI, new String[] {
ContactsContract.Contacts._ID,
ContactsContract.Contacts.HAS_PHONE_NUMBER,
ContactsContract.Contacts.DISPLAY_NAME },
ContactsContract.Contacts.HAS_PHONE_NUMBER + "=?",
new String[] { "1" },
ContactsContract.Contacts.DISPLAY_NAME
+ " COLLATE LOCALIZED ASC LIMIT " + start
+ ", " + upto);
I'm unable to understand the reason tried in different way including below
contactCursor = requestActivity.managedQuery(
ContactsContract.Contacts.CONTENT_URI, new String[] {
ContactsContract.Contacts._ID,
ContactsContract.Contacts.HAS_PHONE_NUMBER,
ContactsContract.Contacts.DISPLAY_NAME },
ContactsContract.Contacts.HAS_PHONE_NUMBER + "=?",
new String[] { "1" },
ContactsContract.Contacts.DISPLAY_NAME
+ " ASC LIMIT " + start
+ ", " + upto);
Why It does not work ? any idea ? is it because of LIMIT or I'm doing something wrong ? please help it's urgent . | 3 |
10,200,944 | 04/18/2012 00:06:48 | 1,335,153 | 04/15/2012 22:21:22 | 6 | 0 | Put elements in a line | I'm trying to put a H2 and a Div in a line and does not work
where I have the error?
<div style="display:inline"><h2>LISTA DE SEDES</h2> |<div class="Create"> @Html.ActionLink("Create", "Create")</div></div> | css | asp.net-mvc | css2 | null | null | 04/18/2012 11:53:49 | not a real question | Put elements in a line
===
I'm trying to put a H2 and a Div in a line and does not work
where I have the error?
<div style="display:inline"><h2>LISTA DE SEDES</h2> |<div class="Create"> @Html.ActionLink("Create", "Create")</div></div> | 1 |
11,396,123 | 07/09/2012 13:34:33 | 368,999 | 06/17/2010 06:30:54 | 355 | 5 | Session management with load balancer in JEE & spring | We are developing a JEE application with Spring. The application will be deployed across multiple web servers with hardware load balancer. Here are my doubts. Please clarify.
1) Whether load balancer will route all requests in same session to a single webserver?
2) If not is there anyway to route the requests of same session to particulat webserver?
Thanks. | spring | java-ee | java-ee-6 | load-balancing | null | null | open | Session management with load balancer in JEE & spring
===
We are developing a JEE application with Spring. The application will be deployed across multiple web servers with hardware load balancer. Here are my doubts. Please clarify.
1) Whether load balancer will route all requests in same session to a single webserver?
2) If not is there anyway to route the requests of same session to particulat webserver?
Thanks. | 0 |
4,446,592 | 12/15/2010 04:08:37 | 478,700 | 10/17/2010 18:31:29 | 8 | 0 | Are there any OpenGl for android E-books | Any helpful ebook we be good...thank you | android | opengl | null | null | null | 09/19/2011 06:17:10 | not constructive | Are there any OpenGl for android E-books
===
Any helpful ebook we be good...thank you | 4 |
6,789,798 | 07/22/2011 12:09:48 | 857,872 | 07/22/2011 12:03:50 | 1 | 0 | string indexer works localy but not when site is hosted | I have following problem with java script.
I have *jQuery* object. Locally getting i-th symbol of its value i use following code $(this).val()[i];
When i deployed this code in server this line started throwing exception saying that $(this).val()[i] is undefined and instead of it i used $(this).val().charAt(i) function; charAt() function works fine both in server and local.
I can't understand how this kind of issue could happen as the same script is being executed in same browser.
Thanks.
| javascript | jquery | null | null | null | null | open | string indexer works localy but not when site is hosted
===
I have following problem with java script.
I have *jQuery* object. Locally getting i-th symbol of its value i use following code $(this).val()[i];
When i deployed this code in server this line started throwing exception saying that $(this).val()[i] is undefined and instead of it i used $(this).val().charAt(i) function; charAt() function works fine both in server and local.
I can't understand how this kind of issue could happen as the same script is being executed in same browser.
Thanks.
| 0 |
5,907,281 | 05/06/2011 05:47:23 | 741,153 | 05/06/2011 05:47:23 | 1 | 0 | programming question on asp.net and javascript using radio button and textbox and file upload | I have two radio button,one text box and one file upload.I want when first radio button is checked then text box is required and if i checked second radio button then file upload is checked in asp.net.I set two required field on both text box and file upload.
Is it possible using java script if yes then what is the code.
Please help me.
Any help is important.
Thanks.
| c# | javascript | asp.net | null | null | 05/10/2011 01:09:04 | not a real question | programming question on asp.net and javascript using radio button and textbox and file upload
===
I have two radio button,one text box and one file upload.I want when first radio button is checked then text box is required and if i checked second radio button then file upload is checked in asp.net.I set two required field on both text box and file upload.
Is it possible using java script if yes then what is the code.
Please help me.
Any help is important.
Thanks.
| 1 |
1,985,668 | 12/31/2009 14:40:05 | 49,416 | 12/27/2008 21:10:34 | 59 | 1 | DateTime Parse dilema in C# | Been trying to solve this one for hours...
string date = "2009-09-23T13:00:00"
DateTime t = new DateTime();
t = DateTime.ParseExact(date, "HH:mm", null);
Results in this exception:
System.FormatException was unhandled
Message="String was not recognized as a valid DateTime."
| c# | datetime | null | null | null | null | open | DateTime Parse dilema in C#
===
Been trying to solve this one for hours...
string date = "2009-09-23T13:00:00"
DateTime t = new DateTime();
t = DateTime.ParseExact(date, "HH:mm", null);
Results in this exception:
System.FormatException was unhandled
Message="String was not recognized as a valid DateTime."
| 0 |
7,238,699 | 08/30/2011 04:26:20 | 116,925 | 06/03/2009 21:43:11 | 146 | 3 | Rails 3: How to identify after_commit action? (create/update/destroy) | I have an observer and I register an `after_commit` callback.
How can I tell weather it was fired after create or update?
I can tell an item was destroyed by asking `item.destroyed?` but `new_record?` doesn't work since the item was saved.
I was going to solve it by adding `after_create`/`after_update` and do something like `@action = :create` inside and check the `@action` at `after_commit`, but it seems that the observer instance is a singleton and I might just override a value before it gets to the `after_commit`. So I solved it in an uglier way, storing the action in a map based on the item.id on after_create/update and checking its value on after_commit. Really ugly.
Is there any other way? | ruby-on-rails | ruby-on-rails-3 | transactions | observer-pattern | null | null | open | Rails 3: How to identify after_commit action? (create/update/destroy)
===
I have an observer and I register an `after_commit` callback.
How can I tell weather it was fired after create or update?
I can tell an item was destroyed by asking `item.destroyed?` but `new_record?` doesn't work since the item was saved.
I was going to solve it by adding `after_create`/`after_update` and do something like `@action = :create` inside and check the `@action` at `after_commit`, but it seems that the observer instance is a singleton and I might just override a value before it gets to the `after_commit`. So I solved it in an uglier way, storing the action in a map based on the item.id on after_create/update and checking its value on after_commit. Really ugly.
Is there any other way? | 0 |
11,670,404 | 07/26/2012 13:30:41 | 844,614 | 07/14/2011 13:05:06 | 23 | 1 | mod_wsgi hangs on RuntimeWarning: divide by zero | I have some python code that may result in a division by 0, but it runs correctly in a python (3.2) interpreter. However, if I try to run it using mod_wsgi, it simply hangs without an error and the request is not served.
Warning in interpreter (output is correct): `pathwayAnalysis.py:30: RuntimeWarning: divide by zero encountered in double_scalars`
Does anybody know what the correct way to run this using mod_wsgi would be?
The code is below. Both difference and size are numpy float arrays of length 2. Either float in `difference` may be 0 (but not both). Adding `difference += 0.0001` before this makes it run correctly, but is not a nice solution since the output is not accurate:
if abs(difference[0] / difference[1]) > (size[0] / size[1]):
ratio = abs(size[0] / difference[0])
else: ratio = abs(size[1] / difference[1])
for i in range(len(base)):
result.append(base[i] + difference[i] * ratio/2)
return array(result)
Doing the following does not work:
try:
cond = abs(difference[0] / difference[1]) > (size[0] / size[1])
except RuntimeWarning:
cond = True
# hangs before this point
if cond:
'''as above''' | python | apache | warnings | mod-wsgi | null | null | open | mod_wsgi hangs on RuntimeWarning: divide by zero
===
I have some python code that may result in a division by 0, but it runs correctly in a python (3.2) interpreter. However, if I try to run it using mod_wsgi, it simply hangs without an error and the request is not served.
Warning in interpreter (output is correct): `pathwayAnalysis.py:30: RuntimeWarning: divide by zero encountered in double_scalars`
Does anybody know what the correct way to run this using mod_wsgi would be?
The code is below. Both difference and size are numpy float arrays of length 2. Either float in `difference` may be 0 (but not both). Adding `difference += 0.0001` before this makes it run correctly, but is not a nice solution since the output is not accurate:
if abs(difference[0] / difference[1]) > (size[0] / size[1]):
ratio = abs(size[0] / difference[0])
else: ratio = abs(size[1] / difference[1])
for i in range(len(base)):
result.append(base[i] + difference[i] * ratio/2)
return array(result)
Doing the following does not work:
try:
cond = abs(difference[0] / difference[1]) > (size[0] / size[1])
except RuntimeWarning:
cond = True
# hangs before this point
if cond:
'''as above''' | 0 |
7,974,976 | 11/02/2011 01:52:41 | 636,021 | 02/27/2011 00:08:36 | 1 | 0 | PHP parsing and MySQL Query Error | I seem to be having trouble with my php code. I have constructed the query using phpMyAdmin where it works without any problems. However, once I insert the sql query into this php code it does not seem to work at all.
<?php
mysql_connect("127.0.0.1","root","xxpasswordxx");
mysql_select_db("transport");
$q=sql_query("SELECT * FROM `tube` WHERE `code` = 'B'");
while($e=mysql_fetch_assoc($q))
$output[]=$row;
print(json_encode($output));
mysql_close();
I keep getting the following error message when I try and execute the php script using my web browser.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.
Any help regarding the coding would be helpful. | php | mysql | phpmyadmin | null | null | 03/29/2012 08:33:33 | too localized | PHP parsing and MySQL Query Error
===
I seem to be having trouble with my php code. I have constructed the query using phpMyAdmin where it works without any problems. However, once I insert the sql query into this php code it does not seem to work at all.
<?php
mysql_connect("127.0.0.1","root","xxpasswordxx");
mysql_select_db("transport");
$q=sql_query("SELECT * FROM `tube` WHERE `code` = 'B'");
while($e=mysql_fetch_assoc($q))
$output[]=$row;
print(json_encode($output));
mysql_close();
I keep getting the following error message when I try and execute the php script using my web browser.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.
Any help regarding the coding would be helpful. | 3 |
8,717,010 | 01/03/2012 18:35:59 | 1,053,944 | 11/18/2011 14:02:04 | 24 | 0 | Write upgradeable Software in C#, and its upgrades | **How can I write a software so that it can be updateable?** By uptadeable I mean that the
software I create can be updated whenever it's necessary.
**How do i write those updates?** I understand that depending on the way you decide to make the updatebale software, probably there will be different ways of writing the updates. If you tell me at least one way to do it, then maybe I can think of other ways.
PS: Sorry for any english mistakes and for bothering so much with my questions, but I've only been writing software for 1 month, so as you can see I'm not used to this kind of thinking. I'm learning though. | c# | update | null | null | null | 01/03/2012 18:41:07 | not a real question | Write upgradeable Software in C#, and its upgrades
===
**How can I write a software so that it can be updateable?** By uptadeable I mean that the
software I create can be updated whenever it's necessary.
**How do i write those updates?** I understand that depending on the way you decide to make the updatebale software, probably there will be different ways of writing the updates. If you tell me at least one way to do it, then maybe I can think of other ways.
PS: Sorry for any english mistakes and for bothering so much with my questions, but I've only been writing software for 1 month, so as you can see I'm not used to this kind of thinking. I'm learning though. | 1 |
4,977,478 | 02/12/2011 10:08:54 | 180,663 | 09/28/2009 19:11:43 | 1,384 | 6 | How do Riak and MongoDB compare? | In terms of ease of development, support on platforms, open source activeness, performance, features and issues | database | mongodb | nosql | riak | null | 02/12/2011 14:22:34 | not constructive | How do Riak and MongoDB compare?
===
In terms of ease of development, support on platforms, open source activeness, performance, features and issues | 4 |
491,578 | 01/29/2009 13:29:02 | 16,616 | 09/17/2008 19:05:38 | 40 | 2 | How do I convert an audio file to text? | How could I take MP3 and convert the speech to text?
I've got some recorded notes from a conference and from meetings (there is a single voice on the recording, which is my voice). I thought it would be easier and intellectually interesting to convert to text using speech to text tools rather than simply transcribe by hand. I know there are technologies out there, especially for VoIP applications using Asterisk and Podcasts, but what are they and how can I use them? | audio | speech-to-text | null | null | null | null | open | How do I convert an audio file to text?
===
How could I take MP3 and convert the speech to text?
I've got some recorded notes from a conference and from meetings (there is a single voice on the recording, which is my voice). I thought it would be easier and intellectually interesting to convert to text using speech to text tools rather than simply transcribe by hand. I know there are technologies out there, especially for VoIP applications using Asterisk and Podcasts, but what are they and how can I use them? | 0 |
10,094,650 | 04/10/2012 18:50:26 | 1,278,496 | 03/19/2012 11:59:46 | 40 | 0 | How to apply a whitelist to an input that has a drop down menu | How can I use sanitisation on drop down menu's?
I know how to sanitise using normal user input something like this:
$variable_name = preg_replace( "/[^a-zA-Z0-9_]/", "", $_POST['key'] );
But how can I produce something like this for a drop down - say a list of fruit? | php | sanitization | whitelist | null | null | null | open | How to apply a whitelist to an input that has a drop down menu
===
How can I use sanitisation on drop down menu's?
I know how to sanitise using normal user input something like this:
$variable_name = preg_replace( "/[^a-zA-Z0-9_]/", "", $_POST['key'] );
But how can I produce something like this for a drop down - say a list of fruit? | 0 |
9,050,835 | 01/29/2012 04:06:30 | 1,176,004 | 01/29/2012 03:18:09 | 1 | 0 | Some java errors which I have no idea how to solve | http://imageshack.us/photo/my-images/19/20120129112435.jpg/
Hi all!
Above link contains the error of the codes below.(I need help solving the errors)
( start_game() is me wanting to "call" the main again)
Thanks!
import java.io.*;
import java.lang.*;
import java.util.*;
class P12
{
public static String getWord(int num)
{
String[] word = new String[7];
word[0] = "world";
word[1] = "sunset";
word[2] = "colours";
word[3] = "hello";
word[4] = "leave";
word[5] = "death";
word[6] = "follow";
return word[num];
}
public void printState(int state)
{
if (state == 0)
{
System.out.println(" ");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 1)
{
System.out.println(" ");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 2)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 3)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println(" [] :");
System.out.println(" [] :");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 4)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println(" [] :");
System.out.println(" [] :");
System.out.println(" [] o");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 5)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println(" [] :");
System.out.println(" [] :");
System.out.println(" [] o");
System.out.println(" [] / A \\");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 6)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println(" [] :");
System.out.println(" [] :");
System.out.println(" [] o");
System.out.println(" [] / A \\");
System.out.println(" [] v");
System.out.println(" [] / \\");
System.out.println(" []");
System.out.println(" []");
System.out.println("[===========]");
System.out.println(" ");
}
}
public static String get_word()
{
Random randomGenerator = new Random();
String c = getWord(randomGenerator.nextInt(7));
return c;
}
public static String validate_input()
{
System.out.println("Enter your guess:");
Scanner user_input = new Scanner(System.in);
String a = user_input.next();
while (a.length() != 1)
{
System.out.println("Please key in only 1 letter:");
System.out.println("");
a = user_input.next();
}
return a;
}
public static List show_puzzle(String e)
{
int d=e.length();
ArrayList list2 = new ArrayList();
for (int i=0;i<d;i++)
{
list2.add('_');
}
System.out.println(list2);
return list2;
}
public static List incorrect_guess(String a,boolean b,ArrayList list1,int man)
{
if (b == false)
{
list1.add(a);
man++;
}
System.out.println("Wrong guess: " + list1);
list1.add(man);
return list1;
}
public static List update_puzzle(boolean s,String a,boolean b,String e,ArrayList list3)
{
ArrayList list4 = new ArrayList();
for (int i=0;i<e.length();i++)
{
char c = e.charAt(i);
char lower = Character.toLowerCase(c);
String s1 = Character.toString(lower);
list4.add(s1);
}
ArrayList list5 = new ArrayList();
if (b==true)
{
for (int i=0;i<list4.size();i++)
{
if (list4.get(i)== a)
{
list3[i]=a;
}
}
}
boolean found = false;
for (int i=0;i<list3.size();i++)
{
if (list3.get(i).equals("_"))
{
s= false;
}
else
{
s=true;
}
}
System.out.println(list3);
list3.add(s);
return list3;
}
public static void main(String args[])
{
String e=get_word();
ArrayList list2 = show_puzzle(e);
boolean s = false;
int man=0;
String state = "playing";
String a = null;
boolean b =false;
ArrayList list1 = new ArrayList();
ArrayList list3 = new ArrayList();
while ("playing".equals(state))
{
if (s==true)
{
System.out.println("");
System.out.println("You won.");
break;
}
if (man==6)
{
System.out.println("Game Over");
state="GameOver";
break;
}
a=validate_input();
b=false;
for (int i=0;i<e.length();i++)
{
char c = e.charAt(i);
char lower = Character.toLowerCase(c);
String s1 = Character.toString(lower);
if (s1 == a)
{
b=true;
}
}
list3=update_puzzle(s,a,b,e,list3);
s=(Boolean) list3.get(list3.size() - 1);
list3.remove(list3.size() - 1);
list1=incorrect_guess(a,b,list1,man);
man=list1.get(list1.size() - 1);
list1.remove(list1.size() - 1);
printState(man);
}
System.out.println("Enter Y to play again: ");
Scanner user_input2 = new Scanner(System.in);
String y = user_input.next();
if(y.equals("Y"))
{
start_game();
}
}
} | java | null | null | null | null | 01/29/2012 05:06:44 | too localized | Some java errors which I have no idea how to solve
===
http://imageshack.us/photo/my-images/19/20120129112435.jpg/
Hi all!
Above link contains the error of the codes below.(I need help solving the errors)
( start_game() is me wanting to "call" the main again)
Thanks!
import java.io.*;
import java.lang.*;
import java.util.*;
class P12
{
public static String getWord(int num)
{
String[] word = new String[7];
word[0] = "world";
word[1] = "sunset";
word[2] = "colours";
word[3] = "hello";
word[4] = "leave";
word[5] = "death";
word[6] = "follow";
return word[num];
}
public void printState(int state)
{
if (state == 0)
{
System.out.println(" ");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 1)
{
System.out.println(" ");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 2)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 3)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println(" [] :");
System.out.println(" [] :");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 4)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println(" [] :");
System.out.println(" [] :");
System.out.println(" [] o");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 5)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println(" [] :");
System.out.println(" [] :");
System.out.println(" [] o");
System.out.println(" [] / A \\");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println(" []");
System.out.println("[===========]");
System.out.println(" ");
}
else if (state == 6)
{
System.out.println(" ");
System.out.println("[=====================]");
System.out.println(" [] :");
System.out.println(" [] :");
System.out.println(" [] o");
System.out.println(" [] / A \\");
System.out.println(" [] v");
System.out.println(" [] / \\");
System.out.println(" []");
System.out.println(" []");
System.out.println("[===========]");
System.out.println(" ");
}
}
public static String get_word()
{
Random randomGenerator = new Random();
String c = getWord(randomGenerator.nextInt(7));
return c;
}
public static String validate_input()
{
System.out.println("Enter your guess:");
Scanner user_input = new Scanner(System.in);
String a = user_input.next();
while (a.length() != 1)
{
System.out.println("Please key in only 1 letter:");
System.out.println("");
a = user_input.next();
}
return a;
}
public static List show_puzzle(String e)
{
int d=e.length();
ArrayList list2 = new ArrayList();
for (int i=0;i<d;i++)
{
list2.add('_');
}
System.out.println(list2);
return list2;
}
public static List incorrect_guess(String a,boolean b,ArrayList list1,int man)
{
if (b == false)
{
list1.add(a);
man++;
}
System.out.println("Wrong guess: " + list1);
list1.add(man);
return list1;
}
public static List update_puzzle(boolean s,String a,boolean b,String e,ArrayList list3)
{
ArrayList list4 = new ArrayList();
for (int i=0;i<e.length();i++)
{
char c = e.charAt(i);
char lower = Character.toLowerCase(c);
String s1 = Character.toString(lower);
list4.add(s1);
}
ArrayList list5 = new ArrayList();
if (b==true)
{
for (int i=0;i<list4.size();i++)
{
if (list4.get(i)== a)
{
list3[i]=a;
}
}
}
boolean found = false;
for (int i=0;i<list3.size();i++)
{
if (list3.get(i).equals("_"))
{
s= false;
}
else
{
s=true;
}
}
System.out.println(list3);
list3.add(s);
return list3;
}
public static void main(String args[])
{
String e=get_word();
ArrayList list2 = show_puzzle(e);
boolean s = false;
int man=0;
String state = "playing";
String a = null;
boolean b =false;
ArrayList list1 = new ArrayList();
ArrayList list3 = new ArrayList();
while ("playing".equals(state))
{
if (s==true)
{
System.out.println("");
System.out.println("You won.");
break;
}
if (man==6)
{
System.out.println("Game Over");
state="GameOver";
break;
}
a=validate_input();
b=false;
for (int i=0;i<e.length();i++)
{
char c = e.charAt(i);
char lower = Character.toLowerCase(c);
String s1 = Character.toString(lower);
if (s1 == a)
{
b=true;
}
}
list3=update_puzzle(s,a,b,e,list3);
s=(Boolean) list3.get(list3.size() - 1);
list3.remove(list3.size() - 1);
list1=incorrect_guess(a,b,list1,man);
man=list1.get(list1.size() - 1);
list1.remove(list1.size() - 1);
printState(man);
}
System.out.println("Enter Y to play again: ");
Scanner user_input2 = new Scanner(System.in);
String y = user_input.next();
if(y.equals("Y"))
{
start_game();
}
}
} | 3 |
8,096,649 | 11/11/2011 16:01:19 | 402,081 | 07/26/2010 09:05:39 | 2,813 | 96 | Do you know something similar to XmlDiffPatch for text files? | I recently discovered a .NET [XmlDiffPatch][1] library written by Microsoft. It allows calculate differences of two XML files. It finds even moved code inside the file.
Do you know something similar for text files?
[1]: http://msdn.microsoft.com/en-us/library/aa302294.aspx | .net | microsoft | diff | patch | null | null | open | Do you know something similar to XmlDiffPatch for text files?
===
I recently discovered a .NET [XmlDiffPatch][1] library written by Microsoft. It allows calculate differences of two XML files. It finds even moved code inside the file.
Do you know something similar for text files?
[1]: http://msdn.microsoft.com/en-us/library/aa302294.aspx | 0 |
7,822,503 | 10/19/2011 14:02:19 | 299,818 | 03/23/2010 11:05:28 | 31 | 0 | symfony migrate database not possible (relation: 1 to many -> many to many) | I am having an issue in migrating a database in which there are two tables "book" and "bookCategory" ***** with relation: "1 to many" (i.e 1 book belongs to 1 bookCategory, 1 bookCategory has many books) to a new relation "many to many" (i.e 1 book belongs to many categories, 1 bookCategory has many books) but during doctrine:migrate I receive an RDMBS error: General error: 1025 (please see below)
***Note**: My application consists of many tables but in order to narrow down the problem I kept only these two.
I am using symfony 1.4.8, PHP 5.3.5, MySQL: 5.1.54 on ubuntu (Ubuntu 11.04 - the Natty Narwhal)
In detail:
My old schema looks like this:
BookCategory:
actAs:
Timestampable: ~
I18n:
fields: [name]
columns:
name: { type: string(255), notnull: true, unique: false }
parent_category_id: { type: integer, notnull: false, unique: false }
relations:
ParentCategory: { class: BookCategory, onDelete: CASCADE, local: parent_category_id, foreign: id, foreignAlias: BookCategories }
Book:
actAs:
Timestampable: ~
I18n:
fields: [name]
columns:
name: { type: string(255), notnull: true }
isbn: { type: string(13), notnull: true }
category_id: { type: integer, notnull: false }
relations:
Category: { class: BookCategory, onDelete: CASCADE, local: category_id, foreign: id, foreignAlias: Books }
I modify the schema to:
BookCategory:
actAs:
Timestampable: ~
I18n:
fields: [name]
columns:
name: { type: string(255), notnull: true, unique: false }
parent_category_id: { type: integer, notnull: false, unique: false }
relations:
ParentCategory: { class: BookCategory, onDelete: CASCADE, local: parent_category_id, foreign: id, foreignAlias: BookCategories }
Book:
actAs:
Timestampable: ~
I18n:
fields: [name]
columns:
name: { type: string(255), notnull: true }
isbn: { type: string(13), notnull: true }
relations:
Categories:
foreignAlias: CategoryBooks
class: BookCategory
refClass: BookCategoryRel
local: book_id
foreign: category_id
BookCategoryRel:
columns:
category_id: {type: integer, primary: true}
book_id: { type: integer, primary: true }
relations:
BookCategory:
local: category_id
foreign: id
foreignAlias: CategoryBooks
onUpdate: CASCADE
onDelete: CASCADE
Book:
local: book_id
foreign: id
foreignAlias: BookCategories
onUpdate: CASCADE
onDelete: CASCADE
and then run:
symfony doctrine:generate-migrations-diff
>> doctrine generating migration diff
>> file+ /tmp/doctrine_schema_70997.yml
>> doctrine Generated migration classes successfully from difference
symfony doctrine:migrate
>> doctrine Migrating from version 0 to 2
The following errors ocurred:
SQLSTATE[HY000]: General error: 1025 Error on rename of './test_project/#sql-2e4_150' to './test_project/book' (errno: 150). Failing Query: "ALTER TABLE book DROP category_id"
Any help is highly appreciated!
Panagiotis | symfony | doctrine | migration | null | null | null | open | symfony migrate database not possible (relation: 1 to many -> many to many)
===
I am having an issue in migrating a database in which there are two tables "book" and "bookCategory" ***** with relation: "1 to many" (i.e 1 book belongs to 1 bookCategory, 1 bookCategory has many books) to a new relation "many to many" (i.e 1 book belongs to many categories, 1 bookCategory has many books) but during doctrine:migrate I receive an RDMBS error: General error: 1025 (please see below)
***Note**: My application consists of many tables but in order to narrow down the problem I kept only these two.
I am using symfony 1.4.8, PHP 5.3.5, MySQL: 5.1.54 on ubuntu (Ubuntu 11.04 - the Natty Narwhal)
In detail:
My old schema looks like this:
BookCategory:
actAs:
Timestampable: ~
I18n:
fields: [name]
columns:
name: { type: string(255), notnull: true, unique: false }
parent_category_id: { type: integer, notnull: false, unique: false }
relations:
ParentCategory: { class: BookCategory, onDelete: CASCADE, local: parent_category_id, foreign: id, foreignAlias: BookCategories }
Book:
actAs:
Timestampable: ~
I18n:
fields: [name]
columns:
name: { type: string(255), notnull: true }
isbn: { type: string(13), notnull: true }
category_id: { type: integer, notnull: false }
relations:
Category: { class: BookCategory, onDelete: CASCADE, local: category_id, foreign: id, foreignAlias: Books }
I modify the schema to:
BookCategory:
actAs:
Timestampable: ~
I18n:
fields: [name]
columns:
name: { type: string(255), notnull: true, unique: false }
parent_category_id: { type: integer, notnull: false, unique: false }
relations:
ParentCategory: { class: BookCategory, onDelete: CASCADE, local: parent_category_id, foreign: id, foreignAlias: BookCategories }
Book:
actAs:
Timestampable: ~
I18n:
fields: [name]
columns:
name: { type: string(255), notnull: true }
isbn: { type: string(13), notnull: true }
relations:
Categories:
foreignAlias: CategoryBooks
class: BookCategory
refClass: BookCategoryRel
local: book_id
foreign: category_id
BookCategoryRel:
columns:
category_id: {type: integer, primary: true}
book_id: { type: integer, primary: true }
relations:
BookCategory:
local: category_id
foreign: id
foreignAlias: CategoryBooks
onUpdate: CASCADE
onDelete: CASCADE
Book:
local: book_id
foreign: id
foreignAlias: BookCategories
onUpdate: CASCADE
onDelete: CASCADE
and then run:
symfony doctrine:generate-migrations-diff
>> doctrine generating migration diff
>> file+ /tmp/doctrine_schema_70997.yml
>> doctrine Generated migration classes successfully from difference
symfony doctrine:migrate
>> doctrine Migrating from version 0 to 2
The following errors ocurred:
SQLSTATE[HY000]: General error: 1025 Error on rename of './test_project/#sql-2e4_150' to './test_project/book' (errno: 150). Failing Query: "ALTER TABLE book DROP category_id"
Any help is highly appreciated!
Panagiotis | 0 |
9,742,254 | 03/16/2012 17:59:53 | 1,116,931 | 12/27/2011 01:35:00 | 1 | 0 | Given facebook username, password, and application's ID can a web application acquire user id and access token? | I'm developing a web application using PHP. This PHP will contain a function which accepts facebook username, password, and application's ID, and return (or write) user's ID and access token (preferably as JSON format)
The problematic thing is that, as much as I know, facebook API for authentication requires the user to manually click some kind of 'OK' buttons through facebook's pop-up interface. I don't want this behavior as this web application will be used by application in another platform (non-PHP, well in this case it will be Unity3D). | php | facebook | facebook-graph-api | unity3d | facebook-access-token | 03/17/2012 21:36:06 | not a real question | Given facebook username, password, and application's ID can a web application acquire user id and access token?
===
I'm developing a web application using PHP. This PHP will contain a function which accepts facebook username, password, and application's ID, and return (or write) user's ID and access token (preferably as JSON format)
The problematic thing is that, as much as I know, facebook API for authentication requires the user to manually click some kind of 'OK' buttons through facebook's pop-up interface. I don't want this behavior as this web application will be used by application in another platform (non-PHP, well in this case it will be Unity3D). | 1 |
6,467,443 | 06/24/2011 11:56:50 | 243,456 | 01/04/2010 20:34:11 | 259 | 2 | Open Source Shop/Store Framework | I'm looking for an open source 'shop front' framework for the web - i.e. products, categories, themes, shopping carts, order histories, payment hooks etc.
I see things like oscommerce.com, but would really appreciate if anyone can share open/free solutions that have worked for them. Technology stack is less important than feature set so you live with PHP/Java/C# or whatever (within reason :))
Thanks | c# | java | php | web-applications | null | 04/17/2012 15:36:29 | not constructive | Open Source Shop/Store Framework
===
I'm looking for an open source 'shop front' framework for the web - i.e. products, categories, themes, shopping carts, order histories, payment hooks etc.
I see things like oscommerce.com, but would really appreciate if anyone can share open/free solutions that have worked for them. Technology stack is less important than feature set so you live with PHP/Java/C# or whatever (within reason :))
Thanks | 4 |
7,069,981 | 08/15/2011 19:53:12 | 695,101 | 04/06/2011 15:07:00 | 387 | 2 | How to create a chat function (like facebook or gmail) in asp.net? | I have searched through stackoverflow on the key words of "facebook chat in asp.net", just come out of some profounded suggestions. But I have some detail questions need to be cleared. 1.Do people use database to store each message? Do they have to be saved in database?
2.Do people use session to send/receive message?
3.Is jQuery useful here?
Please give me a direction on how to develop chat function in asp.net | c# | asp.net | chat | null | null | 08/15/2011 20:40:04 | not a real question | How to create a chat function (like facebook or gmail) in asp.net?
===
I have searched through stackoverflow on the key words of "facebook chat in asp.net", just come out of some profounded suggestions. But I have some detail questions need to be cleared. 1.Do people use database to store each message? Do they have to be saved in database?
2.Do people use session to send/receive message?
3.Is jQuery useful here?
Please give me a direction on how to develop chat function in asp.net | 1 |
4,349,467 | 12/03/2010 20:11:03 | 529,831 | 12/03/2010 20:11:03 | 1 | 0 | How to recognize this string encrpytion ? | server=837858331746934658232248630236935288281180421
database=3386071348869302078373769320683350673360583083
username=3275115374797048
password=830105037835230605335414837835034204884870173
program using config.ini, it written by delphi. how can i decrypt this code, sorry for my bad english :( | encryption | delphi-7 | null | null | null | 12/03/2010 21:03:42 | not a real question | How to recognize this string encrpytion ?
===
server=837858331746934658232248630236935288281180421
database=3386071348869302078373769320683350673360583083
username=3275115374797048
password=830105037835230605335414837835034204884870173
program using config.ini, it written by delphi. how can i decrypt this code, sorry for my bad english :( | 1 |
9,501,114 | 02/29/2012 14:42:09 | 609,626 | 02/09/2011 11:12:36 | 65 | 1 | What are Android Certificates? | Can someone please show me the light on this thing?
What are Android Certificates?
In Settings > Location and security there is an option to install additional certificates. For what purpose?
Are they related only to secure web connections? Or what are they?
| android | security | certificate | null | null | 02/29/2012 16:35:43 | off topic | What are Android Certificates?
===
Can someone please show me the light on this thing?
What are Android Certificates?
In Settings > Location and security there is an option to install additional certificates. For what purpose?
Are they related only to secure web connections? Or what are they?
| 2 |
11,102,058 | 06/19/2012 13:33:15 | 59,015 | 01/26/2009 14:15:37 | 4,230 | 122 | Does Swagger UI currently support models? | The Swagger Spec has provision for [describing a model][1].
However, the existing Swagger-UI project doesn't seem to consume it or display the model.
Looking at the [Petstore Demo][2], I see that a [model is served][3], but can't see it displayed.
Am I missing something? Or is it just not supported yet?
[1]: http://swagger.wordnik.com/spec#appendix-b
[2]: http://petstore.swagger.wordnik.com/
[3]: http://petstore.swagger.wordnik.com/api/pet.json | swagger | null | null | null | null | null | open | Does Swagger UI currently support models?
===
The Swagger Spec has provision for [describing a model][1].
However, the existing Swagger-UI project doesn't seem to consume it or display the model.
Looking at the [Petstore Demo][2], I see that a [model is served][3], but can't see it displayed.
Am I missing something? Or is it just not supported yet?
[1]: http://swagger.wordnik.com/spec#appendix-b
[2]: http://petstore.swagger.wordnik.com/
[3]: http://petstore.swagger.wordnik.com/api/pet.json | 0 |
2,292,142 | 02/18/2010 20:57:46 | 57,191 | 01/20/2009 17:57:18 | 2,133 | 156 | Is there a way to prevent MVN Test from rebuilding the database? | I've recently been asked to, effectively, sell my department on unit testing. I can't tell you how excited this makes me, but I do have one concern. We're using JUnit with Spring and Maven, and this means that each time <code>mvn test</code> is called, it rebuilds the database. Obviously, we can't integrate that with our production server -- it would kill valuable data.
How do I prevent the rebuilding without telling maven to skip testing?
The best I could figure was to assign the script to operate in a test database (line breaks added for readability):
mvn test
-Ddbunit.schema=<database>test
-Djdbc.url=jdbc:mysql://localhost/<database>test?
createDatabaseIfNotExist=true&
useUnicode=true&characterEncoding=utf-8
I can't help but think there must be a better way. | mvn | test | junit | null | null | null | open | Is there a way to prevent MVN Test from rebuilding the database?
===
I've recently been asked to, effectively, sell my department on unit testing. I can't tell you how excited this makes me, but I do have one concern. We're using JUnit with Spring and Maven, and this means that each time <code>mvn test</code> is called, it rebuilds the database. Obviously, we can't integrate that with our production server -- it would kill valuable data.
How do I prevent the rebuilding without telling maven to skip testing?
The best I could figure was to assign the script to operate in a test database (line breaks added for readability):
mvn test
-Ddbunit.schema=<database>test
-Djdbc.url=jdbc:mysql://localhost/<database>test?
createDatabaseIfNotExist=true&
useUnicode=true&characterEncoding=utf-8
I can't help but think there must be a better way. | 0 |
1,698,750 | 11/09/2009 01:59:31 | 33,633 | 11/03/2008 12:55:08 | 72 | 6 | Best GUI for managing MySQL 5.1? | What is the best GUI for managing MySQL 5.1 installation? Would like something as close to SQL Server's management tools as possible as that's where my experience is. The management client would need to run under Windows (XP, Vista (32 and 64-bit flavors), and 7 (32 and 64-bit flavors).
| mysql-management | mysql | null | null | null | 05/22/2012 10:09:49 | not constructive | Best GUI for managing MySQL 5.1?
===
What is the best GUI for managing MySQL 5.1 installation? Would like something as close to SQL Server's management tools as possible as that's where my experience is. The management client would need to run under Windows (XP, Vista (32 and 64-bit flavors), and 7 (32 and 64-bit flavors).
| 4 |
10,282,196 | 04/23/2012 14:09:06 | 1,351,478 | 04/23/2012 13:50:36 | 1 | 0 | from object in Tuple[of Sets()]: - is giving me the whole Tuple back instead of just one Set | I'm starting to write an AI for a uni portfolio in Python.
The AI is for a game called Planet Wars, which is a clone of GalCon (Galactic Confusion).
It's in it's basic stage thus far. My goal is to write an AI which loosely follows Sun Tzu's the Art of War, as I interpret it for the game.
I'm kludging through, learning as I go, but for the life of me I can't figure out why line 92 gives me the whole of self._currentTactics instead of just one tactic at a time...
I'd love it if the lovely people around here could help me out.
Just the AI File:
http://pastebin.com/XXYiRzh7
The whole game's code(requires pygame):
https://www.dropbox.com/sh/mma5qwd2iv0i81d/mpemB7zlhT
| python | artificial-intelligence | python-2.7 | pygame | null | 04/25/2012 11:29:13 | not a real question | from object in Tuple[of Sets()]: - is giving me the whole Tuple back instead of just one Set
===
I'm starting to write an AI for a uni portfolio in Python.
The AI is for a game called Planet Wars, which is a clone of GalCon (Galactic Confusion).
It's in it's basic stage thus far. My goal is to write an AI which loosely follows Sun Tzu's the Art of War, as I interpret it for the game.
I'm kludging through, learning as I go, but for the life of me I can't figure out why line 92 gives me the whole of self._currentTactics instead of just one tactic at a time...
I'd love it if the lovely people around here could help me out.
Just the AI File:
http://pastebin.com/XXYiRzh7
The whole game's code(requires pygame):
https://www.dropbox.com/sh/mma5qwd2iv0i81d/mpemB7zlhT
| 1 |
9,059,038 | 01/30/2012 03:35:32 | 76,682 | 03/11/2009 14:42:35 | 2,092 | 51 | jQuery Code Hinting in Dreamweaver with noconflict | Currently evaluating Dreamweaver CS 5.5. I like much of it - but wondering about the jQuery code hinting.
I like that feature quite a bit, but problem is, we use the noConflict() feature, like this:
var $j = jQuery.noConflict();
I am wondering if there is a way (built-in, code work-around, hack, or perhaps a plugin of some kind) that will enable the code-hinting to pick up $j() as opposed to $().
Thanks. | jquery | dreamweaver | noconflict | code-hinting | null | null | open | jQuery Code Hinting in Dreamweaver with noconflict
===
Currently evaluating Dreamweaver CS 5.5. I like much of it - but wondering about the jQuery code hinting.
I like that feature quite a bit, but problem is, we use the noConflict() feature, like this:
var $j = jQuery.noConflict();
I am wondering if there is a way (built-in, code work-around, hack, or perhaps a plugin of some kind) that will enable the code-hinting to pick up $j() as opposed to $().
Thanks. | 0 |
7,449,462 | 09/16/2011 19:30:36 | 383,148 | 07/04/2010 15:53:46 | 1,833 | 58 | Open Source Content Management Platforms | I am trying to decide on an Open Source CMS to focus on.
I would appreciate any input regarding such software.
Points that are important to me are:
1. Security
2. Ease of use
3. Easy to extend or add new functionality
4. Excellent documentation and community
5. Corporate sponsors worth knowing about?
There's probably others that did not come to mind while writing this.
If I had time to go through most of the more popular ones, I'd be able to decide for myself, but I don't. I'm counting on your collective experience for the "answer".
Thank you. | content-management | content-management-system | null | null | null | 02/02/2012 14:47:17 | not constructive | Open Source Content Management Platforms
===
I am trying to decide on an Open Source CMS to focus on.
I would appreciate any input regarding such software.
Points that are important to me are:
1. Security
2. Ease of use
3. Easy to extend or add new functionality
4. Excellent documentation and community
5. Corporate sponsors worth knowing about?
There's probably others that did not come to mind while writing this.
If I had time to go through most of the more popular ones, I'd be able to decide for myself, but I don't. I'm counting on your collective experience for the "answer".
Thank you. | 4 |
6,607,768 | 07/07/2011 08:26:06 | 833,132 | 07/07/2011 08:26:06 | 1 | 0 | Aptana studio 3 cannot contact download.ecplise.org | I want to install a new plugin but i can't because aptana cannot reach the repository at download.ecplise.org (timeout)
Maybe it's a mirror that is down, there is a way to reset repository cache ?
There is an other way to get the missing plugin ?
| eclipse | aptana | null | null | null | 07/07/2011 14:38:45 | off topic | Aptana studio 3 cannot contact download.ecplise.org
===
I want to install a new plugin but i can't because aptana cannot reach the repository at download.ecplise.org (timeout)
Maybe it's a mirror that is down, there is a way to reset repository cache ?
There is an other way to get the missing plugin ?
| 2 |
10,905,270 | 06/05/2012 21:31:11 | 760,227 | 05/19/2011 01:54:58 | 17 | 1 | Get HtmlAgilityPack Node using exact HTML search or Converting HTMLElement to HTMLNode | I have created a HTMLElement picker (DOM) by using the default .net WebBrowser.
The user can pick (select) a HTMLElement by clicking on it.
I want to get the HtmlAgilityPack.HTMLNode corresponding to the HTMLElement.
The easiest way (in my mind) is to use doc.DocumentNode.SelectSingleNode(EXACTHTMLTEXT) but it does not really work (because the function only accepts xpath code).
How can I do this?
A sample HTMLElement select by a user looks like this (The OuterHtml Code):
<a onmousedown="return wow" class="l" href="http://site.com"><em>Great!!!</em> <b>come and see more</b></a>
Of course, any element can be selected, that's why I need a way to get the HTMLNode.
Really hope someone can help.
Thank you,
Vlad | c# | webbrowser | html-agility-pack | htmlelement | null | null | open | Get HtmlAgilityPack Node using exact HTML search or Converting HTMLElement to HTMLNode
===
I have created a HTMLElement picker (DOM) by using the default .net WebBrowser.
The user can pick (select) a HTMLElement by clicking on it.
I want to get the HtmlAgilityPack.HTMLNode corresponding to the HTMLElement.
The easiest way (in my mind) is to use doc.DocumentNode.SelectSingleNode(EXACTHTMLTEXT) but it does not really work (because the function only accepts xpath code).
How can I do this?
A sample HTMLElement select by a user looks like this (The OuterHtml Code):
<a onmousedown="return wow" class="l" href="http://site.com"><em>Great!!!</em> <b>come and see more</b></a>
Of course, any element can be selected, that's why I need a way to get the HTMLNode.
Really hope someone can help.
Thank you,
Vlad | 0 |
10,224,402 | 04/19/2012 08:34:03 | 1,340,343 | 04/18/2012 04:44:03 | 8 | 0 | How to Create and Remove HTML elements with Javascript dynamically | How to Create and Remove HTML elements with Java script dynamically..? | javascript | null | null | null | null | 04/19/2012 12:13:34 | not a real question | How to Create and Remove HTML elements with Javascript dynamically
===
How to Create and Remove HTML elements with Java script dynamically..? | 1 |
9,790,244 | 03/20/2012 15:53:44 | 428,757 | 08/23/2010 19:36:03 | 582 | 21 | How do I convert this Informix nested join to a tsql nested join? | I'm having a real hard time with this conversion. Those nested OUTER joins are a first to me.
Original Informix query:
from ttdpur401105 tdpur401
, ttdpur400105 tdpur400
, outer tarpur002105 arpur002
, outer (ttdpur402105 tdpur402, outer (ttisfc001105 tisfc001 , outer ttcibd001105 tcibd001a ))
, outer ttcibd001105 tcibd001
WHERE tdpur401.t_otbp = ' WD005'
and ((tdpur401.t_oltp=1 AND tdpur401.t_qibo <>0) OR(tdpur401.t_oltp=4 AND tdpur401.t_qibo = 0 AND tdpur401.t_qidl<>tdpur401.t_qoor))
and tdpur401.t_fire <> 1
and tdpur401.t_orno = tdpur400.t_orno
and (tdpur400.t_hdst<>25 AND tdpur400.t_hdst<>30 AND tdpur400.t_hdst<>40)
and arpur002.t_orno = tdpur401.t_orno
and arpur002.t_pono = tdpur401.t_pono
and tdpur402.t_orno = tdpur401.t_orno
and tdpur402.t_pono = tdpur402.t_pono
and tisfc001.t_pdno = tdpur402.t_pdno
and tcibd001.t_item = tdpur401.t_item
and tcibd001a.t_item = tisfc001.t_mitm
and (tdpur401.t_orno[1,3]='111' or tdpur401.t_orno[1,4]='1126' )
Attempt at T-SQL query:
from ttdpur401105 as tdpur401
inner join ttdpur400105 as tdpur400 on tdpur401.t_orno = tdpur400.t_orno
left outer join tarpur002105 as arpur002 on arpur002.t_orno = tdpur401.t_orno and arpur002.t_pono = tdpur401.t_pono
left outer join (ttdpur402105 as tdpur402
left outer join (ttisfc001105 as tisfc001
left outer join ttcibd001105 as tcibd001a on tcibd001a.t_item = tisfc001.t_mitm
and tisfc001.t_pdno = tdpur402.t_pdno) on tdpur402.t_orno = tdpur401.t_orno)
left outer join ttcibd001105 as tcibd001 on tcibd001.t_item = tdpur401.t_item
WHERE tdpur401.t_otbp = ' WD005'
and ((tdpur401.t_oltp=1 AND tdpur401.t_qibo <>0) OR(tdpur401.t_oltp=4 AND tdpur401.t_qibo = 0 AND tdpur401.t_qidl<>tdpur401.t_qoor))
and tdpur401.t_fire <> 1
and (tdpur400.t_hdst<>25 AND tdpur400.t_hdst<>30 AND tdpur400.t_hdst<>40)
and tdpur402.t_pono = tdpur402.t_pono
and substring(tdpur401.t_orno,1,3)='111' or substring(tdpur401.t_orno, 1,4)='1126' | sql-server-2005 | tsql | join | informix | outer-join | null | open | How do I convert this Informix nested join to a tsql nested join?
===
I'm having a real hard time with this conversion. Those nested OUTER joins are a first to me.
Original Informix query:
from ttdpur401105 tdpur401
, ttdpur400105 tdpur400
, outer tarpur002105 arpur002
, outer (ttdpur402105 tdpur402, outer (ttisfc001105 tisfc001 , outer ttcibd001105 tcibd001a ))
, outer ttcibd001105 tcibd001
WHERE tdpur401.t_otbp = ' WD005'
and ((tdpur401.t_oltp=1 AND tdpur401.t_qibo <>0) OR(tdpur401.t_oltp=4 AND tdpur401.t_qibo = 0 AND tdpur401.t_qidl<>tdpur401.t_qoor))
and tdpur401.t_fire <> 1
and tdpur401.t_orno = tdpur400.t_orno
and (tdpur400.t_hdst<>25 AND tdpur400.t_hdst<>30 AND tdpur400.t_hdst<>40)
and arpur002.t_orno = tdpur401.t_orno
and arpur002.t_pono = tdpur401.t_pono
and tdpur402.t_orno = tdpur401.t_orno
and tdpur402.t_pono = tdpur402.t_pono
and tisfc001.t_pdno = tdpur402.t_pdno
and tcibd001.t_item = tdpur401.t_item
and tcibd001a.t_item = tisfc001.t_mitm
and (tdpur401.t_orno[1,3]='111' or tdpur401.t_orno[1,4]='1126' )
Attempt at T-SQL query:
from ttdpur401105 as tdpur401
inner join ttdpur400105 as tdpur400 on tdpur401.t_orno = tdpur400.t_orno
left outer join tarpur002105 as arpur002 on arpur002.t_orno = tdpur401.t_orno and arpur002.t_pono = tdpur401.t_pono
left outer join (ttdpur402105 as tdpur402
left outer join (ttisfc001105 as tisfc001
left outer join ttcibd001105 as tcibd001a on tcibd001a.t_item = tisfc001.t_mitm
and tisfc001.t_pdno = tdpur402.t_pdno) on tdpur402.t_orno = tdpur401.t_orno)
left outer join ttcibd001105 as tcibd001 on tcibd001.t_item = tdpur401.t_item
WHERE tdpur401.t_otbp = ' WD005'
and ((tdpur401.t_oltp=1 AND tdpur401.t_qibo <>0) OR(tdpur401.t_oltp=4 AND tdpur401.t_qibo = 0 AND tdpur401.t_qidl<>tdpur401.t_qoor))
and tdpur401.t_fire <> 1
and (tdpur400.t_hdst<>25 AND tdpur400.t_hdst<>30 AND tdpur400.t_hdst<>40)
and tdpur402.t_pono = tdpur402.t_pono
and substring(tdpur401.t_orno,1,3)='111' or substring(tdpur401.t_orno, 1,4)='1126' | 0 |
6,586,646 | 07/05/2011 17:39:21 | 348,183 | 05/23/2010 08:29:18 | 1,049 | 18 | Effecient Random Texture Sampling in OpenGL ES 2.0 | Is there any efficient way to fetch texture data in a random way? That is, I'd like to use a texture as a look-up table and I need random access to its elements. Therefore I'd be sampling it in a random fashion. Is it a completely lost cause? Thanks! | opengl | graphics | glsl | textures | shader | 07/06/2011 10:46:34 | not a real question | Effecient Random Texture Sampling in OpenGL ES 2.0
===
Is there any efficient way to fetch texture data in a random way? That is, I'd like to use a texture as a look-up table and I need random access to its elements. Therefore I'd be sampling it in a random fashion. Is it a completely lost cause? Thanks! | 1 |
1,397,369 | 09/09/2009 03:15:56 | 313,931 | 09/09/2009 02:59:17 | 1 | 0 | Django how to save a custom formset | I've written the following custom formset, but for the life of me I don't know how to save the form. I've searched the Django docs and done extensive searches, but no one solution works. Lots of rabbit holes, but no meat ;-) Can someone point me in the right direction?
// views.py partial //
@login_required
def add_stats(request, group_slug, team_id, game_id, template_name = 'games/stats_add_form.html'):
if request.POST:
formset = AddStatsFormSet(group_slug=group_slug, team_id=team_id, game_id=game_id, data=request.POST)
if formset.is_valid():
formset.save()
return HttpResponseRedirect(reverse('games_game_list'))
else:
formset = TeamStatFormSet(group_slug=group_slug, team_id=team_id, game_id=game_id)
return render_to_response(template_name, {'formset': formset,})
// modles.py partial //
class PlayerStat(models.Model):
game = models.ForeignKey(Game, verbose_name=_(u'sport event'),)
player = models.ForeignKey(Player, verbose_name=_(u'player'),)
stat = models.ForeignKey(Stat, verbose_name=_(u'statistic'),)
total = models.CharField(_(u'total'), max_length=25, blank=True, null=True)
class Meta:
verbose_name = _('player stat')
verbose_name_plural = _('player stats')
db_table = 'dfusion_playerstats'
def __unicode__(self):
return u'%s' % self.player
// forms.py
class TeamStatForm(forms.Form):
total = forms.IntegerField()
class BaseTeamStatsFormSet(BaseFormSet):
def __init__(self, *args, **kwargs):
self.group_slug = kwargs['group_slug']
self.team_id = kwargs['team_id']
self.game_id = kwargs['game_id']
self.extra = len(Stat.objects.filter(group__slug=self.group_slug))
del kwargs['group_slug']
del kwargs['game_id']
del kwargs['team_id']
super(BaseTeamStatsFormSet, self).__init__(*args, **kwargs)
def add_fields(self, form, index):
super(BaseTeamStatsFormSet, self).add_fields(form, index)
form.fields["stat"] = forms.ModelChoiceField(queryset = Stat.objects.filter(group__slug=self.group_slug))
form.fields["game"] = forms.ModelChoiceField(queryset = Game.objects.all())
form.fields["team"] = forms.ModelChoiceField(queryset = Team.objects.all())
form.fields["game"].initial = self.game_id
form.fields["team"].initial = self.team_id
TeamStatFormSet = formset_factory(TeamStatForm, BaseTeamStatsFormSet)
| django | forms | formset | dynamic | null | null | open | Django how to save a custom formset
===
I've written the following custom formset, but for the life of me I don't know how to save the form. I've searched the Django docs and done extensive searches, but no one solution works. Lots of rabbit holes, but no meat ;-) Can someone point me in the right direction?
// views.py partial //
@login_required
def add_stats(request, group_slug, team_id, game_id, template_name = 'games/stats_add_form.html'):
if request.POST:
formset = AddStatsFormSet(group_slug=group_slug, team_id=team_id, game_id=game_id, data=request.POST)
if formset.is_valid():
formset.save()
return HttpResponseRedirect(reverse('games_game_list'))
else:
formset = TeamStatFormSet(group_slug=group_slug, team_id=team_id, game_id=game_id)
return render_to_response(template_name, {'formset': formset,})
// modles.py partial //
class PlayerStat(models.Model):
game = models.ForeignKey(Game, verbose_name=_(u'sport event'),)
player = models.ForeignKey(Player, verbose_name=_(u'player'),)
stat = models.ForeignKey(Stat, verbose_name=_(u'statistic'),)
total = models.CharField(_(u'total'), max_length=25, blank=True, null=True)
class Meta:
verbose_name = _('player stat')
verbose_name_plural = _('player stats')
db_table = 'dfusion_playerstats'
def __unicode__(self):
return u'%s' % self.player
// forms.py
class TeamStatForm(forms.Form):
total = forms.IntegerField()
class BaseTeamStatsFormSet(BaseFormSet):
def __init__(self, *args, **kwargs):
self.group_slug = kwargs['group_slug']
self.team_id = kwargs['team_id']
self.game_id = kwargs['game_id']
self.extra = len(Stat.objects.filter(group__slug=self.group_slug))
del kwargs['group_slug']
del kwargs['game_id']
del kwargs['team_id']
super(BaseTeamStatsFormSet, self).__init__(*args, **kwargs)
def add_fields(self, form, index):
super(BaseTeamStatsFormSet, self).add_fields(form, index)
form.fields["stat"] = forms.ModelChoiceField(queryset = Stat.objects.filter(group__slug=self.group_slug))
form.fields["game"] = forms.ModelChoiceField(queryset = Game.objects.all())
form.fields["team"] = forms.ModelChoiceField(queryset = Team.objects.all())
form.fields["game"].initial = self.game_id
form.fields["team"].initial = self.team_id
TeamStatFormSet = formset_factory(TeamStatForm, BaseTeamStatsFormSet)
| 0 |
5,624,361 | 04/11/2011 16:21:31 | 449,056 | 09/16/2010 02:33:27 | 46 | 3 | Optimizing wcf service in IIS | I am hosting a ASP.NET web site containing a wcf web service in IIS 7. The web service is exposed using a .svc file that resides inside the web site's virtual directory.
There's section is this document about optimizing the web service performance by removing unnecessary http modules:
http://msdn.microsoft.com/en-us/library/ee377061(v=bts.10).aspx
My question is how can I do that in the web config without affecting the web site? My ASP.NET web site contains authentication stuff and definitely requires some of those modules (eg, FormsAuthentication). Is there a way to enable those modules only for the web site but disable them when the clients access the web service?
Thanks | wcf | null | null | null | null | null | open | Optimizing wcf service in IIS
===
I am hosting a ASP.NET web site containing a wcf web service in IIS 7. The web service is exposed using a .svc file that resides inside the web site's virtual directory.
There's section is this document about optimizing the web service performance by removing unnecessary http modules:
http://msdn.microsoft.com/en-us/library/ee377061(v=bts.10).aspx
My question is how can I do that in the web config without affecting the web site? My ASP.NET web site contains authentication stuff and definitely requires some of those modules (eg, FormsAuthentication). Is there a way to enable those modules only for the web site but disable them when the clients access the web service?
Thanks | 0 |
10,659,967 | 05/18/2012 21:27:11 | 612,143 | 02/10/2011 21:25:05 | 298 | 1 | is it possible to send mail via SMTP with error_log()? | I am using the following error handling function, which emails the error to `$admin_email` if the site is live (`$live==TRUE`). My host now requires SMTP authentication. Am I correct in assuming I must remove the call to error_log() and send mail using either the PEAR mail package or PHPMailer?
// Create the error handler.
function my_error_handler ($e_number, $e_message, $e_file, $e_line, $e_vars) {
global $live, $admin_email;
// Build the error message.
$message = "An error occurred in script '$e_file' on line $e_line: \n<br />$e_message\n<br />";
// Add the date and time.
$message .= "Date/Time: " . date('n-j-Y H:i:s') . "\n<br />";
// Append $e_vars to the $message.
$message .= "<pre>" . print_r ($e_vars, 1) . "</pre>\n<br />";
if ($live) { // Don't show the specific error.
echo('<p>sending email</p>');
error_log ($message, 1, $admin_email); // Send email.
// Only print an error message if the error isn't a notice.
if ($e_number != E_NOTICE) {
echo '<div id="Error">A system error occurred. An administrator has been notified. We apologize for the inconvenience.</div><br />';
}
} else { // Development (print the error).
echo '<div id="Error">' . $message . '</div><br />';
}
return FALSE;
} // End of my_error_handler() definition. | php | null | null | null | null | null | open | is it possible to send mail via SMTP with error_log()?
===
I am using the following error handling function, which emails the error to `$admin_email` if the site is live (`$live==TRUE`). My host now requires SMTP authentication. Am I correct in assuming I must remove the call to error_log() and send mail using either the PEAR mail package or PHPMailer?
// Create the error handler.
function my_error_handler ($e_number, $e_message, $e_file, $e_line, $e_vars) {
global $live, $admin_email;
// Build the error message.
$message = "An error occurred in script '$e_file' on line $e_line: \n<br />$e_message\n<br />";
// Add the date and time.
$message .= "Date/Time: " . date('n-j-Y H:i:s') . "\n<br />";
// Append $e_vars to the $message.
$message .= "<pre>" . print_r ($e_vars, 1) . "</pre>\n<br />";
if ($live) { // Don't show the specific error.
echo('<p>sending email</p>');
error_log ($message, 1, $admin_email); // Send email.
// Only print an error message if the error isn't a notice.
if ($e_number != E_NOTICE) {
echo '<div id="Error">A system error occurred. An administrator has been notified. We apologize for the inconvenience.</div><br />';
}
} else { // Development (print the error).
echo '<div id="Error">' . $message . '</div><br />';
}
return FALSE;
} // End of my_error_handler() definition. | 0 |
4,600,006 | 01/05/2011 01:09:14 | 62,642 | 02/04/2009 21:52:05 | 2,413 | 119 | TreeView Virtualization | we're triyng to come up with a good way to virtualize the treeview, the data is not really a problem because it's very light (around 16 bytes per item), the problem is that we could potentially have tens of thousands, and although the actual data would only take 1.6 mb of memory, the treeview items do use a lot more memory. We've tried virtualization with 3 different trees now, WPF, Infragistics and Telerik. All of them have big issues that makes them unusable for our application:
WPF TreeView: The scroll bar shows some weird behavior, jumps around a lot, changes size inconsistently, scrolling by dragging it with the mouse doesn't work properly (jumps back and forth)
Telerik: Items dissapear, scroll bar is erratic too, items randomly expand collapse, styles don't work
Infragistics: Items are not virtualized at all, every item remains in memory making virtualization useless.
We've been struggling with this a couple of months now, and we haven't been able to find a good solution. Has any of you successfully implemented virtualization in a TreeView with more than 9000 items? If so, what was your strategy? Did you use third party controls? Did it work 100%?
Any suggestion extremely appreciated.
Thanks. | wpf | treeview | virtualization | null | null | null | open | TreeView Virtualization
===
we're triyng to come up with a good way to virtualize the treeview, the data is not really a problem because it's very light (around 16 bytes per item), the problem is that we could potentially have tens of thousands, and although the actual data would only take 1.6 mb of memory, the treeview items do use a lot more memory. We've tried virtualization with 3 different trees now, WPF, Infragistics and Telerik. All of them have big issues that makes them unusable for our application:
WPF TreeView: The scroll bar shows some weird behavior, jumps around a lot, changes size inconsistently, scrolling by dragging it with the mouse doesn't work properly (jumps back and forth)
Telerik: Items dissapear, scroll bar is erratic too, items randomly expand collapse, styles don't work
Infragistics: Items are not virtualized at all, every item remains in memory making virtualization useless.
We've been struggling with this a couple of months now, and we haven't been able to find a good solution. Has any of you successfully implemented virtualization in a TreeView with more than 9000 items? If so, what was your strategy? Did you use third party controls? Did it work 100%?
Any suggestion extremely appreciated.
Thanks. | 0 |
6,084,395 | 05/21/2011 20:53:49 | 463,785 | 10/01/2010 10:58:31 | 749 | 68 | set the language of iis | is there any way to make IIS language as English? my OS is currently in Turkish so the IIS is.
My OS is windows vista home premium so AFAIK, I cannot change the language of it. | windows | iis | iis7 | windows-vista | null | 05/26/2011 13:57:15 | off topic | set the language of iis
===
is there any way to make IIS language as English? my OS is currently in Turkish so the IIS is.
My OS is windows vista home premium so AFAIK, I cannot change the language of it. | 2 |
563,199 | 02/18/2009 22:47:43 | 46,387 | 12/15/2008 15:09:30 | 1,870 | 70 | Is it possible to determine if a named window is open in JavaScript? | I'm working on an inter-site single-sign-on project and have had a pretty little problem dropped in my lap. When a user logs out of the "parent" site, a particular page needs to be loaded in the popup window containing the "child" site. However, I can't store a reference to the return value of `window.open(…)`, because the user must be allowed to navigate wherever they like on each site before logging out.
This would be easy if I could assume that the child site is always open, as another `window.open(…)` to the same named window would change its URL. However, the popup **cannot** be caused to appear if it isn't already open (not all users have access to the child site).
I think this gives me two conflicting scenarios. When the user visits the child site:
1. User logs in to parent site.
2. User clicks link for child site
3. Child site appears in a window named "child_popup".
4. User browses far and wide in the parent site, forgetting that the child window exists.
5. User logs out of parent site.
6. Child popup is redirected to the child site's logout page.
And when the user does not or cannot visit the child site:
1. User logs in to parent site.
2. User browses far and wide in the parent site.
3. User logs out of the parent site.
4. No popup should appear!
So my limitations are:
* I cannot store a reference to the window in JS, as the user may navigate to any number of pages between visiting the child site and logging out.
* I have **zero** control over the contents of the child site (my employer runs the parent site).
* The parent site cannot be converted to frames to provide a "global" JS scope. :-)
I was not able to find any relevant resources on Google or SO. Is there a way to accomplish this? | javascript | null | null | null | null | null | open | Is it possible to determine if a named window is open in JavaScript?
===
I'm working on an inter-site single-sign-on project and have had a pretty little problem dropped in my lap. When a user logs out of the "parent" site, a particular page needs to be loaded in the popup window containing the "child" site. However, I can't store a reference to the return value of `window.open(…)`, because the user must be allowed to navigate wherever they like on each site before logging out.
This would be easy if I could assume that the child site is always open, as another `window.open(…)` to the same named window would change its URL. However, the popup **cannot** be caused to appear if it isn't already open (not all users have access to the child site).
I think this gives me two conflicting scenarios. When the user visits the child site:
1. User logs in to parent site.
2. User clicks link for child site
3. Child site appears in a window named "child_popup".
4. User browses far and wide in the parent site, forgetting that the child window exists.
5. User logs out of parent site.
6. Child popup is redirected to the child site's logout page.
And when the user does not or cannot visit the child site:
1. User logs in to parent site.
2. User browses far and wide in the parent site.
3. User logs out of the parent site.
4. No popup should appear!
So my limitations are:
* I cannot store a reference to the window in JS, as the user may navigate to any number of pages between visiting the child site and logging out.
* I have **zero** control over the contents of the child site (my employer runs the parent site).
* The parent site cannot be converted to frames to provide a "global" JS scope. :-)
I was not able to find any relevant resources on Google or SO. Is there a way to accomplish this? | 0 |
8,468,513 | 12/11/2011 23:58:39 | 1,092,833 | 12/11/2011 23:32:45 | 1 | 0 | Are wrappers possible? |
Can I get an app that only can do one thing : dial a specific number?
If it is affirmative, can one make an app that creates and edits plurality of described applications?
When you run it the first time , it will ask for list of names with phone numbers, and then creates a bunch of icons: Mike, Steve etc. Each icon dials one person
Where can I hire a programmer, who is capable of doing this? | android | null | null | null | null | 12/12/2011 00:35:46 | off topic | Are wrappers possible?
===
Can I get an app that only can do one thing : dial a specific number?
If it is affirmative, can one make an app that creates and edits plurality of described applications?
When you run it the first time , it will ask for list of names with phone numbers, and then creates a bunch of icons: Mike, Steve etc. Each icon dials one person
Where can I hire a programmer, who is capable of doing this? | 2 |
11,719,619 | 07/30/2012 10:26:54 | 1,528,507 | 07/16/2012 09:55:18 | 1 | 0 | Looking for a way to use Pywinauto on Win x64 | I am using pywinauto for gui automation for quite a long time already. Now I have to move to x64 OS. There seems to be no official version for 64 bit OS. There are clones which claim they support 64, but in practice they don't.
On installation there are several assertions about wrong win structures size. If commented out, the lib manages to install, but some API doesn't work. E.g. win32functions.GetMenuItemInfo() returns Error 87: wrong parameter. This API depends on struct MENUITEMINFOW (which size initially didn't pass the assertion).
Does anybody know how to handle this situation?
Is there a pure pywinauto version to work without additional patches?
And finally, if no answer, is there a powerful Python lib you may suggest for gui automation? With a support of 64 bit?
Thanks in advance. | python | gui | x64 | pywinauto | null | null | open | Looking for a way to use Pywinauto on Win x64
===
I am using pywinauto for gui automation for quite a long time already. Now I have to move to x64 OS. There seems to be no official version for 64 bit OS. There are clones which claim they support 64, but in practice they don't.
On installation there are several assertions about wrong win structures size. If commented out, the lib manages to install, but some API doesn't work. E.g. win32functions.GetMenuItemInfo() returns Error 87: wrong parameter. This API depends on struct MENUITEMINFOW (which size initially didn't pass the assertion).
Does anybody know how to handle this situation?
Is there a pure pywinauto version to work without additional patches?
And finally, if no answer, is there a powerful Python lib you may suggest for gui automation? With a support of 64 bit?
Thanks in advance. | 0 |
8,256,278 | 11/24/2011 11:25:35 | 1,063,826 | 11/24/2011 11:20:43 | 1 | 0 | White blink when I browse around the website using Safari | I got weird problem with my website. When I browse around the website using safari, it keep blinking white screen when the page load. Anyone got a reason why this happening ? I tried with Firefox and Chrome and it is working fine.
the site address: http://www.tokobesikawi.com/clients/ckentv2/categories/collections
Thanks for your help. | safari | null | null | null | null | 11/25/2011 13:54:35 | off topic | White blink when I browse around the website using Safari
===
I got weird problem with my website. When I browse around the website using safari, it keep blinking white screen when the page load. Anyone got a reason why this happening ? I tried with Firefox and Chrome and it is working fine.
the site address: http://www.tokobesikawi.com/clients/ckentv2/categories/collections
Thanks for your help. | 2 |
11,607,466 | 07/23/2012 06:32:09 | 1,407,305 | 05/21/2012 07:35:59 | 1 | 0 | addToolbar function at client side in joomla? | can i use JToolbarHelper class & addToolbar function at client side in joomla 2.5????
what is other method for use admin toolbar feature at client side in joomla? | php | joomla | joomla2.5 | null | null | 07/23/2012 20:22:13 | not a real question | addToolbar function at client side in joomla?
===
can i use JToolbarHelper class & addToolbar function at client side in joomla 2.5????
what is other method for use admin toolbar feature at client side in joomla? | 1 |
7,487,714 | 09/20/2011 15:28:01 | 955,106 | 09/20/2011 15:28:01 | 1 | 0 | MVC LINQ Order by => Method System.String ToShortDateString()' has no supported Translation | I am querying object using LINQ to SQL. One of my objects has a datetime column. When I add myobject.OrderBy(model=>model.DateTimeColumn) I get that System.String toshortdatestring() has no translation error. Not sure why its even trying to convert this to a shortdate string. Any ideas?
Code Snippet:
//Review is the top object. It pulls in a list of policies. The policy has a processing date
// I am setting a paged object equal to the below object.
ViewData["listOfPolicies"] = new PaginatedList<Policy>((IQueryable<Policy>)selectedReview.Policies.OrderBy(m=>m.NBSourceProcessDate), page ?? 0, pageSize);
| linq | mvc | null | null | null | null | open | MVC LINQ Order by => Method System.String ToShortDateString()' has no supported Translation
===
I am querying object using LINQ to SQL. One of my objects has a datetime column. When I add myobject.OrderBy(model=>model.DateTimeColumn) I get that System.String toshortdatestring() has no translation error. Not sure why its even trying to convert this to a shortdate string. Any ideas?
Code Snippet:
//Review is the top object. It pulls in a list of policies. The policy has a processing date
// I am setting a paged object equal to the below object.
ViewData["listOfPolicies"] = new PaginatedList<Policy>((IQueryable<Policy>)selectedReview.Policies.OrderBy(m=>m.NBSourceProcessDate), page ?? 0, pageSize);
| 0 |
6,910,692 | 08/02/2011 10:34:19 | 874,094 | 08/02/2011 07:33:15 | 27 | 0 | How can I change my extension method in C# | I started to use this extension that I found on the web:
public static class NewLabelExtensions
{
public static MvcHtmlString LabelFor<TModel, TValue>(this HtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, object htmlAttributes)
{
return LabelFor(html, expression, new RouteValueDictionary(htmlAttributes));
}
public static MvcHtmlString LabelFor<TModel, TValue>(this HtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, IDictionary<string, object> htmlAttributes)
{
var metadata = ModelMetadata.FromLambdaExpression(expression, html.ViewData);
var htmlFieldName = ExpressionHelper.GetExpressionText(expression);
var labelText = metadata.DisplayName ?? metadata.PropertyName ?? htmlFieldName.Split('.').Last();
if (String.IsNullOrEmpty(labelText))
{
return MvcHtmlString.Empty;
}
var tag = new TagBuilder("label");
tag.MergeAttributes(htmlAttributes);
tag.Attributes.Add("for", html.ViewContext.ViewData.TemplateInfo.GetFullHtmlFieldId(htmlFieldName));
tag.SetInnerText(labelText);
return MvcHtmlString.Create(tag.ToString(TagRenderMode.Normal));
}
}
I use it like this:
@Html.LabelFor(m => m.Login.RememberMe, new { @class = "adm" })
The result is like this:
<label class="adm" for="Login_RememberMe">Remember me?</label>
However I would like to style this label. I don't really understand the code that I am using. Can anyone suggest a change to the code above that would make the LabelFor method generate?
<label class="adm" id="Login_RememberMe" for="Login_RememberMe">Remember me?</label>
Thanks
| c# | null | null | null | null | null | open | How can I change my extension method in C#
===
I started to use this extension that I found on the web:
public static class NewLabelExtensions
{
public static MvcHtmlString LabelFor<TModel, TValue>(this HtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, object htmlAttributes)
{
return LabelFor(html, expression, new RouteValueDictionary(htmlAttributes));
}
public static MvcHtmlString LabelFor<TModel, TValue>(this HtmlHelper<TModel> html, Expression<Func<TModel, TValue>> expression, IDictionary<string, object> htmlAttributes)
{
var metadata = ModelMetadata.FromLambdaExpression(expression, html.ViewData);
var htmlFieldName = ExpressionHelper.GetExpressionText(expression);
var labelText = metadata.DisplayName ?? metadata.PropertyName ?? htmlFieldName.Split('.').Last();
if (String.IsNullOrEmpty(labelText))
{
return MvcHtmlString.Empty;
}
var tag = new TagBuilder("label");
tag.MergeAttributes(htmlAttributes);
tag.Attributes.Add("for", html.ViewContext.ViewData.TemplateInfo.GetFullHtmlFieldId(htmlFieldName));
tag.SetInnerText(labelText);
return MvcHtmlString.Create(tag.ToString(TagRenderMode.Normal));
}
}
I use it like this:
@Html.LabelFor(m => m.Login.RememberMe, new { @class = "adm" })
The result is like this:
<label class="adm" for="Login_RememberMe">Remember me?</label>
However I would like to style this label. I don't really understand the code that I am using. Can anyone suggest a change to the code above that would make the LabelFor method generate?
<label class="adm" id="Login_RememberMe" for="Login_RememberMe">Remember me?</label>
Thanks
| 0 |
4,296,126 | 11/28/2010 09:12:31 | 45,963 | 12/13/2008 12:23:04 | 1,900 | 41 | Is there a difference between glClearColor(0.0,0.0,0.0,0.0) and glClear(COLOR_BUFFER_BIT)? |
Both clear the color matrix, right? Do they do it the same way? | opengl | null | null | null | null | null | open | Is there a difference between glClearColor(0.0,0.0,0.0,0.0) and glClear(COLOR_BUFFER_BIT)?
===
Both clear the color matrix, right? Do they do it the same way? | 0 |
11,383,340 | 07/08/2012 12:59:03 | 1,498,336 | 07/03/2012 09:30:33 | 6 | 0 | c++ codes to copy all files in a directory to a different location | I would like to change the codes below to copy all files in a directory to a different directory location.
#include <fstream>
using namespace std;
int main()
{
ifstream f1("c:\\movie.avi", fstream::binary);
ofstream f2("c:\\backup\\movie.avi", fstream::trunc|fstream::binary);
f2 << f1.rdbuf();
} | c++ | null | null | null | null | 07/08/2012 13:03:42 | not a real question | c++ codes to copy all files in a directory to a different location
===
I would like to change the codes below to copy all files in a directory to a different directory location.
#include <fstream>
using namespace std;
int main()
{
ifstream f1("c:\\movie.avi", fstream::binary);
ofstream f2("c:\\backup\\movie.avi", fstream::trunc|fstream::binary);
f2 << f1.rdbuf();
} | 1 |
6,556,474 | 07/02/2011 10:33:10 | 257,705 | 01/24/2010 06:28:02 | 933 | 43 | Insert data into db using ajax, not ajax form | This is slightly different, how do I insert data into the db using ajax on page load. I do not want to use ajaxforms.
| php | javascript | ajax | null | null | 07/02/2011 15:26:51 | not a real question | Insert data into db using ajax, not ajax form
===
This is slightly different, how do I insert data into the db using ajax on page load. I do not want to use ajaxforms.
| 1 |
8,992,086 | 01/24/2012 18:32:19 | 929,608 | 09/05/2011 21:43:42 | 26 | 0 | How to echo out counterCache in CakePHP? | I know this is a pretty simple question but I just couldn't figure out how to display the counterCache I've set up from the model. Say you have this:
class Ticket extends AppModel {
var $belongsTo = array(
'TicketStatus' => array('counterCache' => true)
);
}
and the field ticket_status_count on the table, can you write a simple code for controller and view please?
Thanks,
Lyman | cakephp-1.3 | null | null | null | null | 01/24/2012 19:06:21 | not a real question | How to echo out counterCache in CakePHP?
===
I know this is a pretty simple question but I just couldn't figure out how to display the counterCache I've set up from the model. Say you have this:
class Ticket extends AppModel {
var $belongsTo = array(
'TicketStatus' => array('counterCache' => true)
);
}
and the field ticket_status_count on the table, can you write a simple code for controller and view please?
Thanks,
Lyman | 1 |
3,516,330 | 08/18/2010 20:21:34 | 424,504 | 08/18/2010 20:21:34 | 1 | 0 | How do I tell OS X to ignore the input from one of two connected USB mice? | I have two USB mice connected to my Mac, one of which I'm using as a scanner. I need access to the Generic X and Y data but I don't want that data to move the cursor. How, under either carbon or cocoa environments, do I tell the system to ignore the mouse as a pointing device? | osx | mouse | usb | hid | null | null | open | How do I tell OS X to ignore the input from one of two connected USB mice?
===
I have two USB mice connected to my Mac, one of which I'm using as a scanner. I need access to the Generic X and Y data but I don't want that data to move the cursor. How, under either carbon or cocoa environments, do I tell the system to ignore the mouse as a pointing device? | 0 |
5,086,965 | 02/23/2011 04:23:15 | 629,525 | 02/23/2011 04:23:15 | 1 | 0 | Password security | Consider a password system where each password is an 8 character word and the characters can be any of the ASCII characters. What is the number of possible passwords? If a password is chosen uniformly at random from this space, what would its entropy be? If an attacker can check one password every nanosecond, how long would a brute force attack take? | security | null | null | null | null | 02/23/2011 05:15:21 | not a real question | Password security
===
Consider a password system where each password is an 8 character word and the characters can be any of the ASCII characters. What is the number of possible passwords? If a password is chosen uniformly at random from this space, what would its entropy be? If an attacker can check one password every nanosecond, how long would a brute force attack take? | 1 |
1,628,308 | 10/27/2009 01:36:26 | 187,844 | 10/11/2009 00:52:39 | 1 | 1 | how to pass variables in query string and loging to a page.server side scriot is using php | Could anyone tell the logic/code for the following scenario.
Suppose we are given the username and password (obtained through some method).now we should append the username and password to the querystring(using GET method), send the values to the server (get the user validated), and then he is sent/redirected to a php webpage(this page has user specific data).
All this should be done using php(ajax maybe included if necessary).I donot want to use a separate login page.
Any help is greatly appreciated.
| php | login | null | null | null | null | open | how to pass variables in query string and loging to a page.server side scriot is using php
===
Could anyone tell the logic/code for the following scenario.
Suppose we are given the username and password (obtained through some method).now we should append the username and password to the querystring(using GET method), send the values to the server (get the user validated), and then he is sent/redirected to a php webpage(this page has user specific data).
All this should be done using php(ajax maybe included if necessary).I donot want to use a separate login page.
Any help is greatly appreciated.
| 0 |
7,768,430 | 10/14/2011 13:36:00 | 223,863 | 12/03/2009 13:52:10 | 1,753 | 38 | How do I get all the results not in a set? | Im joining two tables and I want to then join a third but I want to get the result of the records that dont join. Dont really know what to use to do this. Can I search for nulls that appear outside the join or something? | sql-server | tsql | null | null | null | 10/15/2011 07:49:45 | not a real question | How do I get all the results not in a set?
===
Im joining two tables and I want to then join a third but I want to get the result of the records that dont join. Dont really know what to use to do this. Can I search for nulls that appear outside the join or something? | 1 |
10,515,170 | 05/09/2012 11:29:51 | 1,131,623 | 01/05/2012 08:07:53 | 63 | 0 | Ecore decorator | I have a generated Ecore model - works perfectly fine.
what I now do is, create an instance of the model programmatically and load it:
EARepository repository = EaadapterFactory.eINSTANCE.createEARepository();
repository.setFile(f);
repository.load();
Now I can call the methods like
repository.getName();
works fine!
My Problem: I want to customize the behavior of `getName()` now!. I would like to set a decorator here, like the genmodel does. E.g. the `getName()` method should return "no value set" if it has no value set.
Is it possible to customize the `getName()`'s behavior method here, like setting a decorator ?!
Reason: I want to keep the original behavior of the model. But in one of my use cases, the model should behave a little bit different.
thanks
| decorator | eclipse-emf | null | null | null | null | open | Ecore decorator
===
I have a generated Ecore model - works perfectly fine.
what I now do is, create an instance of the model programmatically and load it:
EARepository repository = EaadapterFactory.eINSTANCE.createEARepository();
repository.setFile(f);
repository.load();
Now I can call the methods like
repository.getName();
works fine!
My Problem: I want to customize the behavior of `getName()` now!. I would like to set a decorator here, like the genmodel does. E.g. the `getName()` method should return "no value set" if it has no value set.
Is it possible to customize the `getName()`'s behavior method here, like setting a decorator ?!
Reason: I want to keep the original behavior of the model. But in one of my use cases, the model should behave a little bit different.
thanks
| 0 |
3,899,413 | 10/10/2010 07:26:43 | 471,396 | 10/10/2010 07:26:43 | 1 | 0 | how to print the below in c++ | 1
121
12321
1234321 | managed-c++ | null | null | null | null | 10/10/2010 07:33:56 | not a real question | how to print the below in c++
===
1
121
12321
1234321 | 1 |
8,468,585 | 12/12/2011 00:12:51 | 972,616 | 09/30/2011 07:19:42 | 1 | 0 | Making my first semantic web application | I want to develop a simple website that lets a user enter their details and then I want to store them in RDF as their FOAF profile so that I can query against it using SPARQL.
An example of the way I want to store these details is given below
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<foaf:Person rdf:about="http://www.example.org/People/Peter">
<foaf:name>Peter</foaf:name>
<foaf:gender>Male</foaf:gender>
<foaf:title>Mr</foaf:title>
</foaf:Person>
</rdf:RDF>
I'm new to Semantic Web so my question is how can I create a website that does that? | xml | rdf | sparql | ontology | null | 12/12/2011 05:31:27 | not a real question | Making my first semantic web application
===
I want to develop a simple website that lets a user enter their details and then I want to store them in RDF as their FOAF profile so that I can query against it using SPARQL.
An example of the way I want to store these details is given below
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<foaf:Person rdf:about="http://www.example.org/People/Peter">
<foaf:name>Peter</foaf:name>
<foaf:gender>Male</foaf:gender>
<foaf:title>Mr</foaf:title>
</foaf:Person>
</rdf:RDF>
I'm new to Semantic Web so my question is how can I create a website that does that? | 1 |
3,096,307 | 06/22/2010 19:06:32 | 373,532 | 06/22/2010 19:06:32 | 1 | 0 | Postgresql case and testing boolean fields | First: I'm running postgresql 8.2 and testing my queries on pgAdmin.
I have a table with some fields, say:
mytable(
id integer,
mycheck boolean,
someText varchar(200));
Now, I want a query similary to this:
select id,
case when mycheck then (select name from tableA)
else (select name from tableB) end as mySpecialName,
someText;
I tried to run and get this:
ERROR: CASE types character varying and boolean cannot be matched
SQL state: 42804
And even trying to fool postgresql with
case (mycheck::integer) when 0 then
didn't work.
So, my question is: since sql doesn't have if, only case, how I'm suppose to do an if with a boolean field? | postgresql | boolean | case | null | null | null | open | Postgresql case and testing boolean fields
===
First: I'm running postgresql 8.2 and testing my queries on pgAdmin.
I have a table with some fields, say:
mytable(
id integer,
mycheck boolean,
someText varchar(200));
Now, I want a query similary to this:
select id,
case when mycheck then (select name from tableA)
else (select name from tableB) end as mySpecialName,
someText;
I tried to run and get this:
ERROR: CASE types character varying and boolean cannot be matched
SQL state: 42804
And even trying to fool postgresql with
case (mycheck::integer) when 0 then
didn't work.
So, my question is: since sql doesn't have if, only case, how I'm suppose to do an if with a boolean field? | 0 |
3,323,159 | 07/23/2010 23:48:22 | 378,874 | 06/29/2010 10:03:34 | 296 | 15 | Jquery, getting style: background (not background-color), border, etc, can't figure out how to do this | It seems that firefox automatically combines things, such as it takes individual css values, such as for "border-color", "border-width" and dumps them all into "border".. this makes things a pain for jquery as the .css selector can only select the individual ones, like "border-color", not just "border" or "background".. I need to get the full value of "border" or "background" so that I can parse it to get the values I need.. I have read other posts and have tried the following but its not giving back the value:
test = $("#mydiv").attr("border");
Any advice is appreciated | jquery | css | element | null | null | null | open | Jquery, getting style: background (not background-color), border, etc, can't figure out how to do this
===
It seems that firefox automatically combines things, such as it takes individual css values, such as for "border-color", "border-width" and dumps them all into "border".. this makes things a pain for jquery as the .css selector can only select the individual ones, like "border-color", not just "border" or "background".. I need to get the full value of "border" or "background" so that I can parse it to get the values I need.. I have read other posts and have tried the following but its not giving back the value:
test = $("#mydiv").attr("border");
Any advice is appreciated | 0 |
4,180,404 | 11/14/2010 23:43:14 | 507,678 | 11/14/2010 23:11:03 | 1 | 0 | commercial redistribute issues for free and open source softwares licenses |
guys, could you please explain what are restrictions for commercial redistribution for these licenses (Apache , BSD , GNU GPL , GNU LGPL , MIT , MPL).
best regards. | open-source | licensing | free-software | commercial-application | null | null | open | commercial redistribute issues for free and open source softwares licenses
===
guys, could you please explain what are restrictions for commercial redistribution for these licenses (Apache , BSD , GNU GPL , GNU LGPL , MIT , MPL).
best regards. | 0 |
2,118,813 | 01/22/2010 16:41:52 | 53,185 | 01/09/2009 01:39:36 | 697 | 33 | Tax calculation, Included & excluded, worldwide market... | I finishing the engine of my iPhone App, and need a flexible setup for tax handling.
This is for LatinAmerica, USA & Europe markets.
The App is a POS system. I support right now 2 taxes, and store the taxes in a table with Code, Name, Percent, FixedValue and if is included or excluded of the price.
In this enough? Exist some sample or rules that let me see how code this? Exist a engine or sourcecode of tax in Obj-C or Python that is solid for a POS?
Is possible that a single product have 2 taxes: One included and other excluded at same time? | iphone | accounting | domain-driven-design | null | null | 05/03/2012 13:18:27 | off topic | Tax calculation, Included & excluded, worldwide market...
===
I finishing the engine of my iPhone App, and need a flexible setup for tax handling.
This is for LatinAmerica, USA & Europe markets.
The App is a POS system. I support right now 2 taxes, and store the taxes in a table with Code, Name, Percent, FixedValue and if is included or excluded of the price.
In this enough? Exist some sample or rules that let me see how code this? Exist a engine or sourcecode of tax in Obj-C or Python that is solid for a POS?
Is possible that a single product have 2 taxes: One included and other excluded at same time? | 2 |
7,572,533 | 09/27/2011 16:30:21 | 922,302 | 08/31/2011 19:22:09 | 5 | 0 | Need Help. My plugins which was once capable of writing to database is unable to do it anymore. Wordpress | I have a plugin (leaguemanager) which creates a set of database tables and access and modifies them on a regular basis. But all of a sudden it couldn't.
I have absolutely no idea why it can't because a bunch of changes which i or other three people could have done occurred since the last try to use the plugin and do a change.
The problem initially was that i couldn't update the tables. But then out of trying different things i deleted the plugin and its tables and now when i try to re-install the plugin, it mentions plenty of errors and the tables aren't being created.
Please help me out. | php | mysql | wordpress | null | null | 09/28/2011 02:16:55 | not a real question | Need Help. My plugins which was once capable of writing to database is unable to do it anymore. Wordpress
===
I have a plugin (leaguemanager) which creates a set of database tables and access and modifies them on a regular basis. But all of a sudden it couldn't.
I have absolutely no idea why it can't because a bunch of changes which i or other three people could have done occurred since the last try to use the plugin and do a change.
The problem initially was that i couldn't update the tables. But then out of trying different things i deleted the plugin and its tables and now when i try to re-install the plugin, it mentions plenty of errors and the tables aren't being created.
Please help me out. | 1 |
7,398,385 | 09/13/2011 07:38:41 | 942,029 | 09/13/2011 07:38:41 | 1 | 0 | Unable to Debug because getting an error message --'There is no source code available for the current location' | Whenever I click on the ‘No’ in the message box window then the flow enter to the btnMsgBtn_click method.
If we continue to debug the code then after the end of the method it will encounter the error message.
After clicking on the OK button of the error message if we press F10 or F11 it will encounter the same error. So after this point we are unable to debug further.
Can you please assist so that I am able to Debug the code and get over the error message? | visual-studio-2008 | debugging | error-message | null | null | null | open | Unable to Debug because getting an error message --'There is no source code available for the current location'
===
Whenever I click on the ‘No’ in the message box window then the flow enter to the btnMsgBtn_click method.
If we continue to debug the code then after the end of the method it will encounter the error message.
After clicking on the OK button of the error message if we press F10 or F11 it will encounter the same error. So after this point we are unable to debug further.
Can you please assist so that I am able to Debug the code and get over the error message? | 0 |
6,220,631 | 06/02/2011 21:32:22 | 700,349 | 04/09/2011 21:38:48 | 102 | 1 | Creating a Biped for a Mesh | Here's the story,
I have an editable mesh which was previously the physique of a biped. Problem now is, I don't have that older project file anymore, all I have is the mesh. Is there a way to make 3ds Max create a biped for this mesh or do I just have to create a new and attach it manually? | model | 3d | mesh | 3dsmax | null | 06/02/2011 22:21:15 | off topic | Creating a Biped for a Mesh
===
Here's the story,
I have an editable mesh which was previously the physique of a biped. Problem now is, I don't have that older project file anymore, all I have is the mesh. Is there a way to make 3ds Max create a biped for this mesh or do I just have to create a new and attach it manually? | 2 |
6,400,801 | 06/19/2011 05:42:13 | 805,091 | 06/19/2011 05:42:13 | 1 | 0 | C++ graphics floating point error:Domain Abnormal termination of program | #include <iostream.h>
#include<graphics.h>
#include<conio.h>
#include<dos.h>
#define MAX 100
#include<math.h>
char arr[MAX];
int rev=1;
class bintree;
class Q;
class node
{
char data;
node *right,*left,*next;
friend class bintree;
friend class Q;
public:
node()
{right=left=next=NULL;}
};
class bintree
{
node *root,*temp,*curr;
public:
void create();
void create(node *);
void levelwise();
void draw(double);
bintree()
{
root=new node;
root->left=root->right=NULL;
}
};
class Q
{
node * data[MAX];
int f,r;
public:
void init()
{ f=r=-1;}
int empty()
{if(r==f)
return (1);
else
return 0;
}
void insert(node *temp)
{
data[++r]=temp;
}
node *delet()
{
return(data[++f]);
}
};
void bintree :: create()
{
create(root);
}
void bintree :: create(node *root)
{
int ans,flag,addn,i=1;
for(int k=0;k<MAX;k++)
arr[k]='0';
cout<<"\nNo strings allowed Only CHARACTER DATA....\nEnter Character(only) : ";
cin>>root->data;
temp=root;
arr[0]=root->data;
cout<<"\nAdd Node ? (0:n 1:y) : ";
cin>>ans;
while(ans==1)
{
i=1;
curr=new node;
cout<<"\nEnter Character(only) : ";
cin>>curr->data;
curr->left=curr->right=NULL;
flag=0;
rev++;
while(flag!=1)
{
cout<<"\n1:Left Or 2:Right of "<<temp->data<<" :";
cin>>addn;
if(addn==1)
{
if(temp->left==NULL)
{
temp->left=curr;
flag=1;
arr[2*i]=curr->data;
}
else {
i=2*i;
temp=temp->left;}
}
else
{
if(temp->right==NULL)
{
temp->right=curr;
flag=1;
arr[2*i+1]=curr->data;
}
else
{ temp=temp->right;
i=2*i+1; }
}
}
temp=root;
cout<<"\nAnother Node ? (0:n 1:y) : ";
cin>>ans;
}
}
void bintree :: levelwise()
{
node *temp;
char s;
int i=1,level=0;
temp=root;
Q q1,q2;
q1.init();
q1.insert(temp);
arr[i]=temp->data;
while(!q1.empty())
{
q2.init();
while(!q1.empty())
{
temp=q1.delet();
if(temp->left!=NULL)
q2.insert(temp->left);
if(temp->right!=NULL)
q2.insert(temp->right);
}
q1=q2;
level++;
}
cout<<"Press any key .....then press Alt+F5 if screen goes blank... ";
getche();
cleardevice();
draw(level);
}
void bintree :: draw(double levels)
{
double start_x=250,start_y=100,temp1,temp2;
double x,y,parent_x,parent_y;
x=start_x;y=start_y;
parent_x=x;parent_y=y;
node *temp=root;
double pc[110][10];
int m=1,loop=0;
char str[2]={'\0','\0'};
str[0]=temp->data;
circle(x,y,10);
outtextxy(x-3,y-3,str);
double i=1;
double level_stop;
double step,level=1;
step=levels*15.0;
pc[m][0]=250,pc[m++][1]=100;
while(1)
{ level_stop=pow(2,i-1);
do
{
if(arr[2*i]!='0')
{
str[0]=arr[2*i];
step=15.0*levels;
parent_x=pc[i][0];
parent_y=pc[i][1];
for(double j=1;j<level;j++)
step=2*(step/3);
x=parent_x-(step*5/6);
y=parent_y+50;
pc[2*i][0]=x;
pc[2*i][1]=y;
circle(x,y,10);
delay(100);
outtextxy(x-3,y-3,str);
line(x+6,y-8,parent_x-6,parent_y+8);
rev--;
}
if(arr[2*i+1]!='0')
{
str[0]=arr[2*i+1];
step=15.0*levels;
parent_x=pc[i][0];
parent_y=pc[i][1];
for(double j=1;j<level;j++)
{
//parent_x=parent_x+step;
//parent_y=parent_y+30;
step=2*(step/3);
}
x=parent_x+step;
y=parent_y+50;
pc[2*i+1][0]=x;
pc[2*i+1][1]=y;
circle(x,y,10);
delay(100);
outtextxy(x-3,y-3,str);
line(x-6,y-8,parent_x+6,parent_y+8);
rev--;
}
i++;
loop++;
if(i==1)
break;
}while(i<=level_stop);
if(rev==0 || loop==25)
goto exit;
level++;
}
exit: getch();
}
int main()
{
int gd=DETECT,gm,flag=0;
void draw_ghanta();
initgraph(&gd,&gm,"");
bintree b;
int choice,ans;
do
{
cout<<"\nBinary Tree !!!";
cout<<"\n1.Create \n2.Graphical tree printing";
cout<<"\nEnter Ur Choice : ";
cin>>choice;
switch(choice)
{
case 1: if(flag==1)
cout<<"\nTechnical difficulties....Plz..Re-run the program..." ;
else
b.create();
flag=1;
break;
case 2: if(flag==1)
b.levelwise();
else
cout<<"\n\n\t\tNULL tree";
break;
default:cout<<"\nInvalid Choice!";
}
cout<<"\nDo u Want To Continue ? (0:n 1:y) : ";
cin>>ans;
}while(ans==1);
return(0);
} | c++ | graphics | null | null | null | 06/19/2011 06:41:20 | not a real question | C++ graphics floating point error:Domain Abnormal termination of program
===
#include <iostream.h>
#include<graphics.h>
#include<conio.h>
#include<dos.h>
#define MAX 100
#include<math.h>
char arr[MAX];
int rev=1;
class bintree;
class Q;
class node
{
char data;
node *right,*left,*next;
friend class bintree;
friend class Q;
public:
node()
{right=left=next=NULL;}
};
class bintree
{
node *root,*temp,*curr;
public:
void create();
void create(node *);
void levelwise();
void draw(double);
bintree()
{
root=new node;
root->left=root->right=NULL;
}
};
class Q
{
node * data[MAX];
int f,r;
public:
void init()
{ f=r=-1;}
int empty()
{if(r==f)
return (1);
else
return 0;
}
void insert(node *temp)
{
data[++r]=temp;
}
node *delet()
{
return(data[++f]);
}
};
void bintree :: create()
{
create(root);
}
void bintree :: create(node *root)
{
int ans,flag,addn,i=1;
for(int k=0;k<MAX;k++)
arr[k]='0';
cout<<"\nNo strings allowed Only CHARACTER DATA....\nEnter Character(only) : ";
cin>>root->data;
temp=root;
arr[0]=root->data;
cout<<"\nAdd Node ? (0:n 1:y) : ";
cin>>ans;
while(ans==1)
{
i=1;
curr=new node;
cout<<"\nEnter Character(only) : ";
cin>>curr->data;
curr->left=curr->right=NULL;
flag=0;
rev++;
while(flag!=1)
{
cout<<"\n1:Left Or 2:Right of "<<temp->data<<" :";
cin>>addn;
if(addn==1)
{
if(temp->left==NULL)
{
temp->left=curr;
flag=1;
arr[2*i]=curr->data;
}
else {
i=2*i;
temp=temp->left;}
}
else
{
if(temp->right==NULL)
{
temp->right=curr;
flag=1;
arr[2*i+1]=curr->data;
}
else
{ temp=temp->right;
i=2*i+1; }
}
}
temp=root;
cout<<"\nAnother Node ? (0:n 1:y) : ";
cin>>ans;
}
}
void bintree :: levelwise()
{
node *temp;
char s;
int i=1,level=0;
temp=root;
Q q1,q2;
q1.init();
q1.insert(temp);
arr[i]=temp->data;
while(!q1.empty())
{
q2.init();
while(!q1.empty())
{
temp=q1.delet();
if(temp->left!=NULL)
q2.insert(temp->left);
if(temp->right!=NULL)
q2.insert(temp->right);
}
q1=q2;
level++;
}
cout<<"Press any key .....then press Alt+F5 if screen goes blank... ";
getche();
cleardevice();
draw(level);
}
void bintree :: draw(double levels)
{
double start_x=250,start_y=100,temp1,temp2;
double x,y,parent_x,parent_y;
x=start_x;y=start_y;
parent_x=x;parent_y=y;
node *temp=root;
double pc[110][10];
int m=1,loop=0;
char str[2]={'\0','\0'};
str[0]=temp->data;
circle(x,y,10);
outtextxy(x-3,y-3,str);
double i=1;
double level_stop;
double step,level=1;
step=levels*15.0;
pc[m][0]=250,pc[m++][1]=100;
while(1)
{ level_stop=pow(2,i-1);
do
{
if(arr[2*i]!='0')
{
str[0]=arr[2*i];
step=15.0*levels;
parent_x=pc[i][0];
parent_y=pc[i][1];
for(double j=1;j<level;j++)
step=2*(step/3);
x=parent_x-(step*5/6);
y=parent_y+50;
pc[2*i][0]=x;
pc[2*i][1]=y;
circle(x,y,10);
delay(100);
outtextxy(x-3,y-3,str);
line(x+6,y-8,parent_x-6,parent_y+8);
rev--;
}
if(arr[2*i+1]!='0')
{
str[0]=arr[2*i+1];
step=15.0*levels;
parent_x=pc[i][0];
parent_y=pc[i][1];
for(double j=1;j<level;j++)
{
//parent_x=parent_x+step;
//parent_y=parent_y+30;
step=2*(step/3);
}
x=parent_x+step;
y=parent_y+50;
pc[2*i+1][0]=x;
pc[2*i+1][1]=y;
circle(x,y,10);
delay(100);
outtextxy(x-3,y-3,str);
line(x-6,y-8,parent_x+6,parent_y+8);
rev--;
}
i++;
loop++;
if(i==1)
break;
}while(i<=level_stop);
if(rev==0 || loop==25)
goto exit;
level++;
}
exit: getch();
}
int main()
{
int gd=DETECT,gm,flag=0;
void draw_ghanta();
initgraph(&gd,&gm,"");
bintree b;
int choice,ans;
do
{
cout<<"\nBinary Tree !!!";
cout<<"\n1.Create \n2.Graphical tree printing";
cout<<"\nEnter Ur Choice : ";
cin>>choice;
switch(choice)
{
case 1: if(flag==1)
cout<<"\nTechnical difficulties....Plz..Re-run the program..." ;
else
b.create();
flag=1;
break;
case 2: if(flag==1)
b.levelwise();
else
cout<<"\n\n\t\tNULL tree";
break;
default:cout<<"\nInvalid Choice!";
}
cout<<"\nDo u Want To Continue ? (0:n 1:y) : ";
cin>>ans;
}while(ans==1);
return(0);
} | 1 |
10,680,069 | 05/21/2012 05:50:40 | 388,657 | 07/11/2010 00:36:57 | 223 | 9 | Remove 'popular music' module from Facebook artist page | On the new Facebook Timelines for bands, they will show popular music by that artist. Except sometimes they get it wrong, and it seems impossible to remove!
Here is an example: The artist is called Sticky Fingers, but Facebook displays music by The Rolling Stoness: https://www.facebook.com/stickyfingersmusic
Does anyone know how to remove? Can someone from Facebook look into it? As you can imagine, it's a terrible experience for the artist.
![enter image description here][1]
[1]: http://i.stack.imgur.com/XGDIT.png | facebook | music | spotify | facebook-timeline | null | null | open | Remove 'popular music' module from Facebook artist page
===
On the new Facebook Timelines for bands, they will show popular music by that artist. Except sometimes they get it wrong, and it seems impossible to remove!
Here is an example: The artist is called Sticky Fingers, but Facebook displays music by The Rolling Stoness: https://www.facebook.com/stickyfingersmusic
Does anyone know how to remove? Can someone from Facebook look into it? As you can imagine, it's a terrible experience for the artist.
![enter image description here][1]
[1]: http://i.stack.imgur.com/XGDIT.png | 0 |
4,437,888 | 12/14/2010 09:56:35 | 224,362 | 12/03/2009 23:09:11 | 20 | 0 | Jquery datepicker min, maxDate | Im using datepicker with min and max date. The dates are correctly grayed out and can't be clicked. When i type an invalid date it reverts the date in the textbox. The reverting do not work if i enter an invalid date outside the min max range but in the same month.
eg.
minDate is set to 2010-08-22
If i enter the date 2009-08-11 it works and reverts to the min date
If i enter the date 2010-08-11 nothing happents. As long as its the same year and month nothing happents.
Any idea what to do?
| jquery | datepicker | null | null | null | null | open | Jquery datepicker min, maxDate
===
Im using datepicker with min and max date. The dates are correctly grayed out and can't be clicked. When i type an invalid date it reverts the date in the textbox. The reverting do not work if i enter an invalid date outside the min max range but in the same month.
eg.
minDate is set to 2010-08-22
If i enter the date 2009-08-11 it works and reverts to the min date
If i enter the date 2010-08-11 nothing happents. As long as its the same year and month nothing happents.
Any idea what to do?
| 0 |
1,998,704 | 01/04/2010 10:34:36 | 112,467 | 05/26/2009 09:30:24 | 250 | 11 | The best tool for build swing UI visually | What is the best and powerful tool for building swing interface?
What tool do you use for swing? Why?
| swing | java | ide | visual-basic | null | 09/02/2011 15:01:32 | not constructive | The best tool for build swing UI visually
===
What is the best and powerful tool for building swing interface?
What tool do you use for swing? Why?
| 4 |
9,955,626 | 03/31/2012 11:54:09 | 1,295,094 | 03/27/2012 09:23:27 | 6 | 0 | How to create a chunk in 3D world? | i am working on voxel based game engine, in which i need to have chunks. I have tried to read a Chunk class from minecraft, but i cant understand it.
So my question is: How chunk works and how does it store data ?
Ps. I am new here. Hi everyone! | java | opengl | lwjgl | voxel | null | 04/01/2012 07:56:40 | not constructive | How to create a chunk in 3D world?
===
i am working on voxel based game engine, in which i need to have chunks. I have tried to read a Chunk class from minecraft, but i cant understand it.
So my question is: How chunk works and how does it store data ?
Ps. I am new here. Hi everyone! | 4 |
9,462,701 | 02/27/2012 09:30:30 | 1,225,432 | 02/22/2012 09:36:10 | 59 | 10 | set property to web service failed | I'm trying to set property in my web service but it returns null pointer exception. I tried to hard code in my web service and it working fine. The problem occur when i try to set the property. Please help.
First I tried this:
String tagid ="AB6614CD";
PropertyInfo pi = new PropertyInfo();
pi.setName("tagid");
pi.setValue(tagid);
pi.setType(String.class);
request.addProperty("tagid",tagid);
Second I tried this:
String tagid ="AB6614CD";
PropertyInfo pi = new PropertyInfo();
request.addProperty("arg0", tagid);
Both way failed. Please help thanks. | java | android | web-services | null | null | 02/29/2012 19:11:26 | too localized | set property to web service failed
===
I'm trying to set property in my web service but it returns null pointer exception. I tried to hard code in my web service and it working fine. The problem occur when i try to set the property. Please help.
First I tried this:
String tagid ="AB6614CD";
PropertyInfo pi = new PropertyInfo();
pi.setName("tagid");
pi.setValue(tagid);
pi.setType(String.class);
request.addProperty("tagid",tagid);
Second I tried this:
String tagid ="AB6614CD";
PropertyInfo pi = new PropertyInfo();
request.addProperty("arg0", tagid);
Both way failed. Please help thanks. | 3 |
9,188,484 | 02/08/2012 05:56:53 | 883,529 | 08/08/2011 06:39:10 | 1 | 0 | Finding Coefficient of Determination for Microsoft Linear Regression Algorithm | I am using Microsoft Linear Regression Algorithm in a Mining Model to predict some value using case table as input. I get the equation for the Mining Model in the Mining Legend window of BI studio and I am also able to get coefficients using DMX query. I want to get the value of coefficient of determination (R squared) for this regression. Is there any way to get it directly or deriving it using some of the available coefficients etc.?
P.S. I am aware that Microsoft is using decision tree algorithm internally to implement linear regression. | sql | data-mining | business-intelligence | null | null | null | open | Finding Coefficient of Determination for Microsoft Linear Regression Algorithm
===
I am using Microsoft Linear Regression Algorithm in a Mining Model to predict some value using case table as input. I get the equation for the Mining Model in the Mining Legend window of BI studio and I am also able to get coefficients using DMX query. I want to get the value of coefficient of determination (R squared) for this regression. Is there any way to get it directly or deriving it using some of the available coefficients etc.?
P.S. I am aware that Microsoft is using decision tree algorithm internally to implement linear regression. | 0 |
7,597,822 | 09/29/2011 13:11:09 | 969,733 | 09/28/2011 18:29:07 | 3 | 0 | php variables inside a variable. | I have a tiny php error.
Tiny error. The following statement does not work for me. I do not understand why. If i take
"by"
of the line it works fine.
$msg = 'An Order has just been submitted on CID, Number' . $_POST['orderNumber']'by' .$name;
Can anyone spot the little mistake?
Thank you | php | null | null | null | null | 09/29/2011 17:29:49 | too localized | php variables inside a variable.
===
I have a tiny php error.
Tiny error. The following statement does not work for me. I do not understand why. If i take
"by"
of the line it works fine.
$msg = 'An Order has just been submitted on CID, Number' . $_POST['orderNumber']'by' .$name;
Can anyone spot the little mistake?
Thank you | 3 |
3,428,140 | 08/06/2010 22:06:13 | 225,102 | 12/04/2009 21:29:07 | 60 | 3 | Using switches inside batch file | I have a batch file and I need to invoke it like this "mybatch.bat -r c:\mydir", and the batch file loops through the directory and writes file names to the output. The problem I'm facing is that I cannot read parameter "-r".
Here's what it looks like:
@echo off
echo [%date% %time%] VERBOSE START
for %%X in (%1\*.xml) do echo [%date% %time%] VERBOSE systemmsg Parsing XML file '%%X'
echo [%date% %time%] VERBOSE END
I can however use %2 instead of %1 and all works fine, but I want to read by parameter. Is this possible?
Cheers! | batch-file | named-parameters | null | null | null | null | open | Using switches inside batch file
===
I have a batch file and I need to invoke it like this "mybatch.bat -r c:\mydir", and the batch file loops through the directory and writes file names to the output. The problem I'm facing is that I cannot read parameter "-r".
Here's what it looks like:
@echo off
echo [%date% %time%] VERBOSE START
for %%X in (%1\*.xml) do echo [%date% %time%] VERBOSE systemmsg Parsing XML file '%%X'
echo [%date% %time%] VERBOSE END
I can however use %2 instead of %1 and all works fine, but I want to read by parameter. Is this possible?
Cheers! | 0 |
11,469,150 | 07/13/2012 10:59:16 | 1,407,955 | 05/21/2012 13:16:48 | 11 | 0 | C# ADO Application crashes on form load | private void Form1_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'membersDataSet.Members' table. You can move, or remove it, as needed.
this.membersTableAdapter.Fill(this.membersDataSet.Members);
}
the statement which runs the fill query to the datagridview I have on my form creashes when the form loads. | c# | null | null | null | null | 07/13/2012 17:43:41 | not a real question | C# ADO Application crashes on form load
===
private void Form1_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'membersDataSet.Members' table. You can move, or remove it, as needed.
this.membersTableAdapter.Fill(this.membersDataSet.Members);
}
the statement which runs the fill query to the datagridview I have on my form creashes when the form loads. | 1 |
8,490,949 | 12/13/2011 14:35:28 | 1,036,335 | 11/08/2011 19:41:28 | 10 | 0 | Using framework or writing code without any framework? Which is better for 3 month aged PHP programmer? | I started to learn PHP about 4 month ago and I have been writing some applications for 3 month. Recently, I'm using CodeIgniter PHP framework. Using the frameworks is awesome thing. It is easy to code and I don't care about security (SQL Injection and other bugs) with frameworks. But, I think, using framework maybe bad for my background PHP knowledge. Because, with CodeIgniter I use absolutely different programming methods when I code. So, I want to ask you which is better for me? Using frameworks or not using these? | php | codeigniter | frameworks | null | null | 12/13/2011 14:40:03 | not constructive | Using framework or writing code without any framework? Which is better for 3 month aged PHP programmer?
===
I started to learn PHP about 4 month ago and I have been writing some applications for 3 month. Recently, I'm using CodeIgniter PHP framework. Using the frameworks is awesome thing. It is easy to code and I don't care about security (SQL Injection and other bugs) with frameworks. But, I think, using framework maybe bad for my background PHP knowledge. Because, with CodeIgniter I use absolutely different programming methods when I code. So, I want to ask you which is better for me? Using frameworks or not using these? | 4 |
1,723,263 | 11/12/2009 15:56:25 | 2,495 | 08/22/2008 14:30:23 | 843 | 37 | TypeConverter for generic type used in xaml | I am looking into initializing members of generic types declared in XAML. This is targeting the [(reduced) generics support](http://blogs.windowsclient.net/rob_relyea/archive/2009/05/20/yes-xaml2009-isn-t-everywhere-yet.aspx) in WPF 4 and future Silverlight. (I have tried the scenarios below using `x:TypeArguments` and `XamlReader.Load` in VS2010 Beta 2, but will use `TestClassInt32 : TestClass<int> { }` for simplicity, as it has the same behavior as using the generic type directly, but is easier to test using compiled xaml today.)
----
Here are the test types I am using.
public class TestClass<T> {
[TypeConverter( typeof(StringListToItemsConverter) )]
public IEnumerable<T> Items { get; set; }
public TestProperty<T> Property { get; set; }
}
[TypeConverter( typeof(TestPropertyConverter) )]
public struct TestProperty<T> {
public TestProperty( T value ) : this() { Value = value; }
public T Value { get; }
}
Here is the example scenario.
<StackPanel>
<StackPanel.DataContext>
<test:TestClassInt32 Items="1,2,3" Property="6" />
</StackPanel.DataContext>
<TextBox Text="{Binding Property.Value}" />
<ItemsControl ItemsSource="{Binding Items}" />
</StackPanel>
When I hard-code `typeof(int)` into the converters for this example, everything works fine, but that approach obviously does not work for `TestClass<double>` or `TestClass<DateTime>`. The problem is that the `TypeConverter.ConvertFrom` method does not have access to the destination type, only the source type. (This was not a problem when `TypeConverter` was created in .NET 1.0, because the destination type could not be parameterized, but is an unfortunate limitation now.)
----
Here are the approaches I have looked at to get around this problem:
1. Make the type converter generic; e.g. `[TypeConverter( typeof(TestPropertyConverter<T>) )]`
* .NET does not support type parameters in attributes
* Have the `TypeConverter` return an intermediate type that either implements `IConvertible.ToType`, or [has a `TypeConvert` that can `ConvertTo` the destination type](http://www.codeproject.com/KB/cs/declartivegenerics.aspx?msg=927258)
* XAML parser only does one-step conversions: if the returned object cannot be assigned to the destination, it throws an exception
* Define a custom type descriptor that will return the appropriate converter based on the actual type
* WPF ignores custom type descriptors, and `TypeDescriptor` does not even exist in Silverlight
Here are the alternatives I have come up with for "working around" this issue:
1. Require the destination type to be embedded in the string; e.g. `"sys:Double 1,2,3"`
* In Silverlight, have to hard-code a fixed set of supported types (in WPF, can use the `IXamlTypeResolver` interface to get the actual type that `"sys:Double"` corresponds to)
* Write a custom markup extension that takes a type parameter; e.g. `"{List Type={x:Type sys:Double}, Values=1,2,3}"`
* Silverlight does not support custom markup extensions (it also does not support the `x:Type` markup extension, but you could use the hard-coded approach from option 1)
* Create a wrapper type that takes a type parameter and re-defines all of the generic members as `object`, forwarding all member accesses to the underlying strongly-typed object
* Possible, but makes for a very poor user experience (have to cast to get underlying generic object, have to still use hard-coded list for type parameter on Silverlight, have to cache member assignments until the type argument is assigned, etc, etc; generally loses most of the benefits of strong typing with generics)
----
Would be happy to hear any other ideas for working around this issue today, or in WPF 4.
| c# | xaml | wpf | silverlight | null | null | open | TypeConverter for generic type used in xaml
===
I am looking into initializing members of generic types declared in XAML. This is targeting the [(reduced) generics support](http://blogs.windowsclient.net/rob_relyea/archive/2009/05/20/yes-xaml2009-isn-t-everywhere-yet.aspx) in WPF 4 and future Silverlight. (I have tried the scenarios below using `x:TypeArguments` and `XamlReader.Load` in VS2010 Beta 2, but will use `TestClassInt32 : TestClass<int> { }` for simplicity, as it has the same behavior as using the generic type directly, but is easier to test using compiled xaml today.)
----
Here are the test types I am using.
public class TestClass<T> {
[TypeConverter( typeof(StringListToItemsConverter) )]
public IEnumerable<T> Items { get; set; }
public TestProperty<T> Property { get; set; }
}
[TypeConverter( typeof(TestPropertyConverter) )]
public struct TestProperty<T> {
public TestProperty( T value ) : this() { Value = value; }
public T Value { get; }
}
Here is the example scenario.
<StackPanel>
<StackPanel.DataContext>
<test:TestClassInt32 Items="1,2,3" Property="6" />
</StackPanel.DataContext>
<TextBox Text="{Binding Property.Value}" />
<ItemsControl ItemsSource="{Binding Items}" />
</StackPanel>
When I hard-code `typeof(int)` into the converters for this example, everything works fine, but that approach obviously does not work for `TestClass<double>` or `TestClass<DateTime>`. The problem is that the `TypeConverter.ConvertFrom` method does not have access to the destination type, only the source type. (This was not a problem when `TypeConverter` was created in .NET 1.0, because the destination type could not be parameterized, but is an unfortunate limitation now.)
----
Here are the approaches I have looked at to get around this problem:
1. Make the type converter generic; e.g. `[TypeConverter( typeof(TestPropertyConverter<T>) )]`
* .NET does not support type parameters in attributes
* Have the `TypeConverter` return an intermediate type that either implements `IConvertible.ToType`, or [has a `TypeConvert` that can `ConvertTo` the destination type](http://www.codeproject.com/KB/cs/declartivegenerics.aspx?msg=927258)
* XAML parser only does one-step conversions: if the returned object cannot be assigned to the destination, it throws an exception
* Define a custom type descriptor that will return the appropriate converter based on the actual type
* WPF ignores custom type descriptors, and `TypeDescriptor` does not even exist in Silverlight
Here are the alternatives I have come up with for "working around" this issue:
1. Require the destination type to be embedded in the string; e.g. `"sys:Double 1,2,3"`
* In Silverlight, have to hard-code a fixed set of supported types (in WPF, can use the `IXamlTypeResolver` interface to get the actual type that `"sys:Double"` corresponds to)
* Write a custom markup extension that takes a type parameter; e.g. `"{List Type={x:Type sys:Double}, Values=1,2,3}"`
* Silverlight does not support custom markup extensions (it also does not support the `x:Type` markup extension, but you could use the hard-coded approach from option 1)
* Create a wrapper type that takes a type parameter and re-defines all of the generic members as `object`, forwarding all member accesses to the underlying strongly-typed object
* Possible, but makes for a very poor user experience (have to cast to get underlying generic object, have to still use hard-coded list for type parameter on Silverlight, have to cache member assignments until the type argument is assigned, etc, etc; generally loses most of the benefits of strong typing with generics)
----
Would be happy to hear any other ideas for working around this issue today, or in WPF 4.
| 0 |
9,213,195 | 02/09/2012 14:59:36 | 1,036,453 | 11/08/2011 20:57:04 | 1 | 0 | conditional subdomain in htaccess | I'm trying to set up a custom view of my site, so users can go to beta.mysite.com and I can grab their domain with php to change the view of things on each page at the code level.
I've already set up virtual hosting for beta.mysite.com, which works fine. But I have a rewrite rule that also maps requests for www.mysite.com to mysite.com (for SEO purposes). How can I set up a conditional htaccess statement that says
1. if you request something from beta.mysite.com, send it through as is
2. OTHERWISE send *.mysite.com to http://mysite.com
My current rule:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^mysite.com$ [NC]
RewriteRule ^(.*)$ http://mysite.com/$1 [L,R=301]
| .htaccess | mod-rewrite | subdomain | null | null | 02/10/2012 16:06:18 | off topic | conditional subdomain in htaccess
===
I'm trying to set up a custom view of my site, so users can go to beta.mysite.com and I can grab their domain with php to change the view of things on each page at the code level.
I've already set up virtual hosting for beta.mysite.com, which works fine. But I have a rewrite rule that also maps requests for www.mysite.com to mysite.com (for SEO purposes). How can I set up a conditional htaccess statement that says
1. if you request something from beta.mysite.com, send it through as is
2. OTHERWISE send *.mysite.com to http://mysite.com
My current rule:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^mysite.com$ [NC]
RewriteRule ^(.*)$ http://mysite.com/$1 [L,R=301]
| 2 |
1,904,624 | 12/15/2009 01:06:10 | 113,296 | 05/27/2009 16:55:55 | 6 | 0 | Rails Routing Error | **Weird error. I'm a newby to rails. From a new install of rails I connected to an oracle db and then ran:**
jruby script/generate scaffold job oid:integer userid:integer name:string status:integer
**Without doing anything else I started up the server and entered a new job and then I get this error:**
Routing Error
job_url failed to generate from {:controller=>"jobs", :action=>"show", :id=>#<Job id: #<BigDecimal:d55a0f,'10000.0',1(8)>, oid: #<BigDecimal:10bb83e,'1324.0',4(8)>, userid: #<BigDecimal:6d234c,'1234.0',4(8)>, name: "asdfadsf", status: #<BigDecimal:1286c71,'1234.0',4(8)>, created_at: "2009-12-15 00:49:37", updated_at: "2009-12-15 00:49:37">}, expected: {:controller=>"jobs", :action=>"show"}, diff: {:id=>#<Job id: #<BigDecimal:853e51,'10000.0',1(8)>, oid: #<BigDecimal:1be4050,'1324.0',4(8)>, userid: #<BigDecimal:adb165,'1234.0',4(8)>, name: "asdfadsf", status: #<BigDecimal:15978e7,'1234.0',4(8)>, created_at: "2009-12-15 00:49:37", updated_at: "2009-12-15 00:49:37">}
**Even though it throws the error it still creates the record. When I try to view the record I get the following stack, which is really the same error.**
ActionController::RoutingError in Jobs#show
Showing app/views/jobs/show.html.erb where line #22 raised:
edit_job_url failed to generate from {:controller=>"jobs", :action=>"edit", :id=>#<Job id: #<BigDecimal:18caa36,'10000.0',1(8)>, oid: #<BigDecimal:1fac733,'1324.0',4(8)>, userid: #<BigDecimal:12c1472,'1234.0',4(8)>, name: "asdfadsf", status: #<BigDecimal:f25f89,'1234.0',4(8)>, created_at: "2009-12-15 00:49:37", updated_at: "2009-12-15 00:49:37">}, expected: {:controller=>"jobs", :action=>"edit"}, diff: {:id=>#<Job id: #<BigDecimal:1b9cdfc,'10000.0',1(8)>, oid: #<BigDecimal:1829097,'1324.0',4(8)>, userid: #<BigDecimal:e2d663,'1234.0',4(8)>, name: "asdfadsf", status: #<BigDecimal:691ccf,'1234.0',4(8)>, created_at: "2009-12-15 00:49:37", updated_at: "2009-12-15 00:49:37">}
Extracted source (around line #22):
19: </p>
20:
21:
22: <%= link_to 'Edit', edit_job_path(@job) %> |
23: <%= link_to 'Back', jobs_path %>
RAILS_ROOT: /opt/code/import
Application Trace | Framework Trace | Full Trace
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:426:in `raise_named_route_error'
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:387:in `generate'
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/url_rewriter.rb:205:in `rewrite_path'
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/url_rewriter.rb:184:in `rewrite_url'
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/url_rewriter.rb:162:in `rewrite'
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:634:in `url_for'
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/helpers/url_helper.rb:85:in `url_for'
(eval):16:in `edit_job_path'
/opt/code/import/app/views/jobs/show.html.erb:22:in `_run_erb_app47views47jobs47show46html46erb'
/opt/code/import/app/controllers/jobs_controller.rb:18:in `show'
Request
Parameters:
{"id"=>"10000"}
Show session dump
Response
Headers:
{"Cache-Control"=>"no-cache",
"Content-Type"=>"text/html"}
**When I remove the "edit_job_path" method the error disappears so I know it's just having an issue rendering the route, but I'm not sure why because it seems to have the correct info. I mean this is a boilerplate scaffold so.... Thanks in advance for any help!**
| ruby-on-rails | routes | scaffold | null | null | null | open | Rails Routing Error
===
**Weird error. I'm a newby to rails. From a new install of rails I connected to an oracle db and then ran:**
jruby script/generate scaffold job oid:integer userid:integer name:string status:integer
**Without doing anything else I started up the server and entered a new job and then I get this error:**
Routing Error
job_url failed to generate from {:controller=>"jobs", :action=>"show", :id=>#<Job id: #<BigDecimal:d55a0f,'10000.0',1(8)>, oid: #<BigDecimal:10bb83e,'1324.0',4(8)>, userid: #<BigDecimal:6d234c,'1234.0',4(8)>, name: "asdfadsf", status: #<BigDecimal:1286c71,'1234.0',4(8)>, created_at: "2009-12-15 00:49:37", updated_at: "2009-12-15 00:49:37">}, expected: {:controller=>"jobs", :action=>"show"}, diff: {:id=>#<Job id: #<BigDecimal:853e51,'10000.0',1(8)>, oid: #<BigDecimal:1be4050,'1324.0',4(8)>, userid: #<BigDecimal:adb165,'1234.0',4(8)>, name: "asdfadsf", status: #<BigDecimal:15978e7,'1234.0',4(8)>, created_at: "2009-12-15 00:49:37", updated_at: "2009-12-15 00:49:37">}
**Even though it throws the error it still creates the record. When I try to view the record I get the following stack, which is really the same error.**
ActionController::RoutingError in Jobs#show
Showing app/views/jobs/show.html.erb where line #22 raised:
edit_job_url failed to generate from {:controller=>"jobs", :action=>"edit", :id=>#<Job id: #<BigDecimal:18caa36,'10000.0',1(8)>, oid: #<BigDecimal:1fac733,'1324.0',4(8)>, userid: #<BigDecimal:12c1472,'1234.0',4(8)>, name: "asdfadsf", status: #<BigDecimal:f25f89,'1234.0',4(8)>, created_at: "2009-12-15 00:49:37", updated_at: "2009-12-15 00:49:37">}, expected: {:controller=>"jobs", :action=>"edit"}, diff: {:id=>#<Job id: #<BigDecimal:1b9cdfc,'10000.0',1(8)>, oid: #<BigDecimal:1829097,'1324.0',4(8)>, userid: #<BigDecimal:e2d663,'1234.0',4(8)>, name: "asdfadsf", status: #<BigDecimal:691ccf,'1234.0',4(8)>, created_at: "2009-12-15 00:49:37", updated_at: "2009-12-15 00:49:37">}
Extracted source (around line #22):
19: </p>
20:
21:
22: <%= link_to 'Edit', edit_job_path(@job) %> |
23: <%= link_to 'Back', jobs_path %>
RAILS_ROOT: /opt/code/import
Application Trace | Framework Trace | Full Trace
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:426:in `raise_named_route_error'
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/routing/route_set.rb:387:in `generate'
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/url_rewriter.rb:205:in `rewrite_path'
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/url_rewriter.rb:184:in `rewrite_url'
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/url_rewriter.rb:162:in `rewrite'
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/base.rb:634:in `url_for'
/opt/jruby/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_view/helpers/url_helper.rb:85:in `url_for'
(eval):16:in `edit_job_path'
/opt/code/import/app/views/jobs/show.html.erb:22:in `_run_erb_app47views47jobs47show46html46erb'
/opt/code/import/app/controllers/jobs_controller.rb:18:in `show'
Request
Parameters:
{"id"=>"10000"}
Show session dump
Response
Headers:
{"Cache-Control"=>"no-cache",
"Content-Type"=>"text/html"}
**When I remove the "edit_job_path" method the error disappears so I know it's just having an issue rendering the route, but I'm not sure why because it seems to have the correct info. I mean this is a boilerplate scaffold so.... Thanks in advance for any help!**
| 0 |
9,538,771 | 03/02/2012 18:51:30 | 1,181,017 | 01/31/2012 18:13:13 | 19 | 0 | Error when launching java desktop application | I am creating A java desktop application and I keep getting this error msg:
can some one give me a fix?
Mar 02, 2012 10:43:03 AM org.jdesktop.application.Application$1 run
SEVERE: Application class desktopapplication2.DesktopApplication2 failed to launch
Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Failed to start database 'C:\Users\Xcoder\Desktop\javaApps\ac\husk' with class loader sun.misc.Launcher$AppClassLoader@1050169, see the next exception for details.
Error Code: 40000
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:102)
at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:582)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:280)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:229)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
at desktopapplication2.DesktopApplication2View.initComponents(DesktopApplication2View.java:281)
at desktopapplication2.DesktopApplication2View.<init>(DesktopApplication2View.java:36)
at desktopapplication2.DesktopApplication2.startup(DesktopApplication2.java:19)
at org.jdesktop.application.Application$1.run(Application.java:171)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.sql.SQLException: Failed to start database 'C:\Users\Xcoder\Desktop\javaApps\ac\husk' with class loader sun.misc.Launcher$AppClassLoader@1050169, see the next exception for details.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:190)
at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:100)
... 26 more
Caused by: java.sql.SQLException: Failed to start database 'C:\Users\Xcoder\Desktop\javaApps\ac\husk' with class loader sun.misc.Launcher$AppClassLoader@1050169, see the next exception for details.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 39 more
Caused by: java.sql.SQLException: Another instance of Derby may have already booted the database C:\Users\Xcoder\Desktop\javaApps\ac\husk.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
... 36 more
Caused by: ERROR XSDB6: Another instance of Derby may have already booted the database C:\Users\Xcoder\Desktop\javaApps\ac\husk.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockOnDB(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.getJBMSLockOnDB(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.store.raw.RawStore.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.store.access.RAMAccessManager.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.db.BasicDatabase.bootStore(Unknown Source)
at org.apache.derby.impl.db.BasicDatabase.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
... 36 more
Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class desktopapplication2.DesktopApplication2 failed to launch
at org.jdesktop.application.Application$1.run(Application.java:177)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Failed to start database 'C:\Users\Xcoder\Desktop\javaApps\ac\husk' with class loader sun.misc.Launcher$AppClassLoader@1050169, see the next exception for details.
Error Code: 40000
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:102)
at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:582)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:280)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:229)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
at desktopapplication2.DesktopApplication2View.initComponents(DesktopApplication2View.java:281)
at desktopapplication2.DesktopApplication2View.<init>(DesktopApplication2View.java:36)
at desktopapplication2.DesktopApplication2.startup(DesktopApplication2.java:19)
at org.jdesktop.application.Application$1.run(Application.java:171)
... 14 more
Caused by: java.sql.SQLException: Failed to start database 'C:\Users\Xcoder\Desktop\javaApps\ac\husk' with class loader sun.misc.Launcher$AppClassLoader@1050169, see the next exception for details.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:190)
at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:100)
... 26 more
Caused by: java.sql.SQLException: Failed to start database 'C:\Users\Xcoder\Desktop\javaApps\ac\husk' with class loader sun.misc.Launcher$AppClassLoader@1050169, see the next exception for details.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 39 more
Caused by: java.sql.SQLException: Another instance of Derby may have already booted the database C:\Users\Xcoder\Desktop\javaApps\ac\husk.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
... 36 more
Caused by: ERROR XSDB6: Another instance of Derby may have already booted the database C:\Users\Xcoder\Desktop\javaApps\ac\husk.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockOnDB(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.getJBMSLockOnDB(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.store.raw.RawStore.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.store.access.RAMAccessManager.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.db.BasicDatabase.bootStore(Unknown Source)
at org.apache.derby.impl.db.BasicDatabase.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
... 36 more | java | null | null | null | null | 03/02/2012 23:45:06 | not a real question | Error when launching java desktop application
===
I am creating A java desktop application and I keep getting this error msg:
can some one give me a fix?
Mar 02, 2012 10:43:03 AM org.jdesktop.application.Application$1 run
SEVERE: Application class desktopapplication2.DesktopApplication2 failed to launch
Local Exception Stack:
Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Failed to start database 'C:\Users\Xcoder\Desktop\javaApps\ac\husk' with class loader sun.misc.Launcher$AppClassLoader@1050169, see the next exception for details.
Error Code: 40000
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:102)
at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:582)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:280)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:229)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
at desktopapplication2.DesktopApplication2View.initComponents(DesktopApplication2View.java:281)
at desktopapplication2.DesktopApplication2View.<init>(DesktopApplication2View.java:36)
at desktopapplication2.DesktopApplication2.startup(DesktopApplication2.java:19)
at org.jdesktop.application.Application$1.run(Application.java:171)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.sql.SQLException: Failed to start database 'C:\Users\Xcoder\Desktop\javaApps\ac\husk' with class loader sun.misc.Launcher$AppClassLoader@1050169, see the next exception for details.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:190)
at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:100)
... 26 more
Caused by: java.sql.SQLException: Failed to start database 'C:\Users\Xcoder\Desktop\javaApps\ac\husk' with class loader sun.misc.Launcher$AppClassLoader@1050169, see the next exception for details.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 39 more
Caused by: java.sql.SQLException: Another instance of Derby may have already booted the database C:\Users\Xcoder\Desktop\javaApps\ac\husk.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
... 36 more
Caused by: ERROR XSDB6: Another instance of Derby may have already booted the database C:\Users\Xcoder\Desktop\javaApps\ac\husk.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockOnDB(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.getJBMSLockOnDB(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.store.raw.RawStore.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.store.access.RAMAccessManager.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.db.BasicDatabase.bootStore(Unknown Source)
at org.apache.derby.impl.db.BasicDatabase.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
... 36 more
Exception in thread "AWT-EventQueue-0" java.lang.Error: Application class desktopapplication2.DesktopApplication2 failed to launch
at org.jdesktop.application.Application$1.run(Application.java:177)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: Failed to start database 'C:\Users\Xcoder\Desktop\javaApps\ac\husk' with class loader sun.misc.Launcher$AppClassLoader@1050169, see the next exception for details.
Error Code: 40000
at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:305)
at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:102)
at oracle.toplink.essentials.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:184)
at oracle.toplink.essentials.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:582)
at oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:280)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:229)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.getServerSession(EntityManagerFactoryImpl.java:93)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:126)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:120)
at oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:91)
at desktopapplication2.DesktopApplication2View.initComponents(DesktopApplication2View.java:281)
at desktopapplication2.DesktopApplication2View.<init>(DesktopApplication2View.java:36)
at desktopapplication2.DesktopApplication2.startup(DesktopApplication2.java:19)
at org.jdesktop.application.Application$1.run(Application.java:171)
... 14 more
Caused by: java.sql.SQLException: Failed to start database 'C:\Users\Xcoder\Desktop\javaApps\ac\husk' with class loader sun.misc.Launcher$AppClassLoader@1050169, see the next exception for details.
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.seeNextException(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.bootDatabase(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection30.<init>(Unknown Source)
at org.apache.derby.impl.jdbc.EmbedConnection40.<init>(Unknown Source)
at org.apache.derby.jdbc.Driver40.getNewEmbedConnection(Unknown Source)
at org.apache.derby.jdbc.InternalDriver.connect(Unknown Source)
at org.apache.derby.jdbc.AutoloadedDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:190)
at oracle.toplink.essentials.sessions.DefaultConnector.connect(DefaultConnector.java:100)
... 26 more
Caused by: java.sql.SQLException: Failed to start database 'C:\Users\Xcoder\Desktop\javaApps\ac\husk' with class loader sun.misc.Launcher$AppClassLoader@1050169, see the next exception for details.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
... 39 more
Caused by: java.sql.SQLException: Another instance of Derby may have already booted the database C:\Users\Xcoder\Desktop\javaApps\ac\husk.
at org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown Source)
at org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown Source)
at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown Source)
... 36 more
Caused by: ERROR XSDB6: Another instance of Derby may have already booted the database C:\Users\Xcoder\Desktop\javaApps\ac\husk.
at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.privGetJBMSLockOnDB(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.getJBMSLockOnDB(Unknown Source)
at org.apache.derby.impl.store.raw.data.BaseDataFileFactory.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.store.raw.RawStore.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.store.access.RAMAccessManager.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startModule(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.bootServiceModule(Unknown Source)
at org.apache.derby.impl.db.BasicDatabase.bootStore(Unknown Source)
at org.apache.derby.impl.db.BasicDatabase.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.boot(Unknown Source)
at org.apache.derby.impl.services.monitor.TopService.bootModule(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.bootService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startProviderService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.findProviderAndStartService(Unknown Source)
at org.apache.derby.impl.services.monitor.BaseMonitor.startPersistentService(Unknown Source)
at org.apache.derby.iapi.services.monitor.Monitor.startPersistentService(Unknown Source)
... 36 more | 1 |
11,279,991 | 07/01/2012 06:19:23 | 1,493,911 | 07/01/2012 05:57:31 | 1 | 0 | Edit app lead to page not found | I was trying to edit my app setting (https://developers.facebook.com/ -> Apps -> Edit App) to add a new https URL but got the page not found error (the target URL is at https://developers.facebook.com/apps/[APP_ID]/summary/).
I've verified my app's existence by http://graph.facebook.com/[APP_ID]/ and it looks good
Does anyone know what's going on? For my case, APP_ID = 99840122333.
| configuration | facebook-apps | null | null | null | 07/01/2012 21:00:23 | too localized | Edit app lead to page not found
===
I was trying to edit my app setting (https://developers.facebook.com/ -> Apps -> Edit App) to add a new https URL but got the page not found error (the target URL is at https://developers.facebook.com/apps/[APP_ID]/summary/).
I've verified my app's existence by http://graph.facebook.com/[APP_ID]/ and it looks good
Does anyone know what's going on? For my case, APP_ID = 99840122333.
| 3 |
2,446,242 | 03/15/2010 09:59:19 | 11,410 | 09/16/2008 07:44:40 | 3,875 | 197 | Difficulty thinking of properties for FsCheck | I've managed to get [xUnit][1] working on my little sample assembly. Now I want to see if I can grok [FsCheck][2] too. My problem is that I'm stumped when it comes to defining test properties for my functions.
Maybe I've just not got a good sample set of functions, but what would be good test properties for these functions, for example?
//transforms [1;2;3;4] into [(1,2);(3,4)]
pairs : 'a list -> ('a * 'a) list //'
//splits list into list of lists when predicate returns
// true for adjacent elements
splitOn : ('a -> 'a -> bool) -> 'a list -> 'a list list
//returns true if snd is bigger
sndBigger : ('a * 'a) -> bool (requires comparison)
[1]: http://www.codeplex.com/xunit
[2]: http://www.codeplex.com/fscheck | f# | unit-testing | fscheck | null | null | null | open | Difficulty thinking of properties for FsCheck
===
I've managed to get [xUnit][1] working on my little sample assembly. Now I want to see if I can grok [FsCheck][2] too. My problem is that I'm stumped when it comes to defining test properties for my functions.
Maybe I've just not got a good sample set of functions, but what would be good test properties for these functions, for example?
//transforms [1;2;3;4] into [(1,2);(3,4)]
pairs : 'a list -> ('a * 'a) list //'
//splits list into list of lists when predicate returns
// true for adjacent elements
splitOn : ('a -> 'a -> bool) -> 'a list -> 'a list list
//returns true if snd is bigger
sndBigger : ('a * 'a) -> bool (requires comparison)
[1]: http://www.codeplex.com/xunit
[2]: http://www.codeplex.com/fscheck | 0 |
8,571,913 | 12/20/2011 07:09:09 | 1,104,313 | 12/18/2011 08:58:43 | 5 | 0 | How to invention login url as the same facebook? | How to invention login url as the same facebook ?(PHP)
**+ Example**
www.abc.com
**+After login**
user=a1
www.abc.com/a1/index.php
user=a2
www.abc.com/a2/index.php
How to invent this in PHP?
| php | null | null | null | null | 12/25/2011 06:23:58 | not a real question | How to invention login url as the same facebook?
===
How to invention login url as the same facebook ?(PHP)
**+ Example**
www.abc.com
**+After login**
user=a1
www.abc.com/a1/index.php
user=a2
www.abc.com/a2/index.php
How to invent this in PHP?
| 1 |
427,711 | 01/09/2009 11:09:18 | 2,974 | 08/26/2008 09:39:16 | 4,138 | 242 | Which author's books do you alway read? | While answering this question on being [stuck on a problem][1] I recommended a book by Gerald Weinberg called "Are Your Lights On: How to Figure Out What the Problem Really Is" ([sanitised Amazon link][2]) and this started me thinking that:
* I've read a lot of excellent books by Jerry on all sorts of things
* I often go back and reread his books
* I look forward to any new books written by him. In fact, I'm reading his book "Perfect Software: And Other Illusions about Testing" ([sanitised Amazon link][3]) at the moment and it is a real eye-opener. Thanks Jerry.
Then I realised that I always do the same for Scott Berkun, Steve McConnell, Martin Fowler and The Pragmatic Programmers.
Anyone else have authors that they regularly check to see if they have a new release out. I'm talking specifically software development and project management here.
cheers,
Rob
[1]: http://stackoverflow.com/questions/427532/what-do-you-do-when-you-stuck
[2]: http://www.amazon.com/dp/0932633161/
[3]: http://www.amazon.com/dp/0932633692/ | books | authors | null | null | null | 09/26/2011 14:34:40 | not constructive | Which author's books do you alway read?
===
While answering this question on being [stuck on a problem][1] I recommended a book by Gerald Weinberg called "Are Your Lights On: How to Figure Out What the Problem Really Is" ([sanitised Amazon link][2]) and this started me thinking that:
* I've read a lot of excellent books by Jerry on all sorts of things
* I often go back and reread his books
* I look forward to any new books written by him. In fact, I'm reading his book "Perfect Software: And Other Illusions about Testing" ([sanitised Amazon link][3]) at the moment and it is a real eye-opener. Thanks Jerry.
Then I realised that I always do the same for Scott Berkun, Steve McConnell, Martin Fowler and The Pragmatic Programmers.
Anyone else have authors that they regularly check to see if they have a new release out. I'm talking specifically software development and project management here.
cheers,
Rob
[1]: http://stackoverflow.com/questions/427532/what-do-you-do-when-you-stuck
[2]: http://www.amazon.com/dp/0932633161/
[3]: http://www.amazon.com/dp/0932633692/ | 4 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.