question_id int64 4 6.31M | answer_id int64 7 6.31M | title stringlengths 9 150 | question_body stringlengths 0 28.8k | answer_body stringlengths 60 27.2k | question_text stringlengths 40 28.9k | combined_text stringlengths 124 39.6k | tags listlengths 1 6 | question_score int64 0 26.3k | answer_score int64 0 28.8k | view_count int64 15 14M | answer_count int64 0 182 | favorite_count int64 0 32 | question_creation_date stringdate 2008-07-31 21:42:52 2011-06-10 18:12:18 | answer_creation_date stringdate 2008-07-31 22:17:57 2011-06-10 18:14:17 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,261,013 | 6,261,204 | ExtJs Message box with Custom buttons | How to display ExtJS Message box with Custom buttons. I want a Message box with a Custom message and "Cancel" and "Deactivate" Buttons. Please give some idea. buttons: [{ text: "Cancel", handler: function () { Ext.MessageBox.hide(); //submitTicketForm(); } },{ text: "Deactivate", handler: function () { Ext.MessageBox.h... | MessageBox is an single instance of an internally managed Window used for prompt, show, alert, etc. You can change the buttonText by passing in a string for show like this: buttons: {ok: "Foo", cancel: "Bar"} Refer: MessageBox buttons: { ok: "Foo", handler: function(){ Ext.MessageBox.hide();
}, cancel: "Bar", handler:... | ExtJs Message box with Custom buttons How to display ExtJS Message box with Custom buttons. I want a Message box with a Custom message and "Cancel" and "Deactivate" Buttons. Please give some idea. buttons: [{ text: "Cancel", handler: function () { Ext.MessageBox.hide(); //submitTicketForm(); } },{ text: "Deactivate", h... | TITLE:
ExtJs Message box with Custom buttons
QUESTION:
How to display ExtJS Message box with Custom buttons. I want a Message box with a Custom message and "Cancel" and "Deactivate" Buttons. Please give some idea. buttons: [{ text: "Cancel", handler: function () { Ext.MessageBox.hide(); //submitTicketForm(); } },{ tex... | [
"extjs",
"extjs3"
] | 18 | 8 | 33,095 | 4 | 0 | 2011-06-07T05:39:37.353000 | 2011-06-07T06:09:17.920000 |
6,261,016 | 6,271,636 | How do I setup Yii for multiple subdomains so the protected folder sits outside the document root for each subdomain | I have decided to start coding using OOP and a PHP framework. I have successfully installed Yii on a development server and created a webapp. Now, I would like to move the protected folder to a level outside the document root for security reasons. My question is how to do this when there are multiple subdomains that I ... | You can name the protected folder whatever you want and put it anywhere on your file system that your webserver user has access to, so, yes /home/mark/sub*n*_protected scheme would work. However, particularly if your sites are similar and have any shared code, it might be more efficient to use one protected folder and ... | How do I setup Yii for multiple subdomains so the protected folder sits outside the document root for each subdomain I have decided to start coding using OOP and a PHP framework. I have successfully installed Yii on a development server and created a webapp. Now, I would like to move the protected folder to a level out... | TITLE:
How do I setup Yii for multiple subdomains so the protected folder sits outside the document root for each subdomain
QUESTION:
I have decided to start coding using OOP and a PHP framework. I have successfully installed Yii on a development server and created a webapp. Now, I would like to move the protected fol... | [
"php",
"oop",
"ubuntu",
"yii",
"lamp"
] | 0 | 2 | 4,097 | 2 | 0 | 2011-06-07T05:39:53.400000 | 2011-06-07T21:03:57.427000 |
6,261,017 | 6,261,853 | how to add different JComboBox items in a Column of a JTable in Swing | I want to add JComboBox inside a JTable (3,3) on column 1. But in the column 1, each row will have its own set of ComboBox element. When I tried to use table.getColumnModel().getColumn(1).setCellEditor(new DefaultCellEditor(comboBox_Custom)); Each row is being set to same set of ComboBox Values. But I want each row Com... | example on java2s.com looks like as works and correctly, then for example (I harcoded JComboBoxes for quick example, and add/change for todays Swing) import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.UIManager.LookAndFeelInfo; import javax.swing.table.*;
public class EachRowEditorExa... | how to add different JComboBox items in a Column of a JTable in Swing I want to add JComboBox inside a JTable (3,3) on column 1. But in the column 1, each row will have its own set of ComboBox element. When I tried to use table.getColumnModel().getColumn(1).setCellEditor(new DefaultCellEditor(comboBox_Custom)); Each ro... | TITLE:
how to add different JComboBox items in a Column of a JTable in Swing
QUESTION:
I want to add JComboBox inside a JTable (3,3) on column 1. But in the column 1, each row will have its own set of ComboBox element. When I tried to use table.getColumnModel().getColumn(1).setCellEditor(new DefaultCellEditor(comboBox... | [
"java",
"swing",
"jtable",
"jcombobox",
"tablecellrenderer"
] | 5 | 6 | 8,782 | 2 | 0 | 2011-06-07T05:39:55.857000 | 2011-06-07T07:23:08.170000 |
6,261,025 | 6,261,424 | Can i resize the DateTimePicker used in android? | Can i resize the DateTimePcker widget in the android UI? In my application xml I have to place multiple controls in the same screen, hence I need to resize the datetimepicker. Is this possible? | I don't believe that is possible. Your question is also answered here I remember doing my own implementation of this, or actually the NumberPicker which is what the DatePicker is using, which was fairly straight forward. Unfortunately my code is not reusable as is. | Can i resize the DateTimePicker used in android? Can i resize the DateTimePcker widget in the android UI? In my application xml I have to place multiple controls in the same screen, hence I need to resize the datetimepicker. Is this possible? | TITLE:
Can i resize the DateTimePicker used in android?
QUESTION:
Can i resize the DateTimePcker widget in the android UI? In my application xml I have to place multiple controls in the same screen, hence I need to resize the datetimepicker. Is this possible?
ANSWER:
I don't believe that is possible. Your question is... | [
"android",
"resize",
"widget"
] | 0 | 0 | 1,425 | 1 | 0 | 2011-06-07T05:41:41.970000 | 2011-06-07T06:35:18.393000 |
6,261,033 | 6,261,070 | split string with delimiter and put it in some label | I have a demo here In the demo i have a table and a temp var to keep the delimited string, using js I am putting the delimited strings into appropriate places, but instead of an input box, i want some label i.e., without any boundary or box holding the value. Is there a way to do that, I am using jsp for eg: Configurat... | OR document.getElementById("cname").innerHTML = config_details[0]; with either or PS: here are the new input types from HTML5 search tel url email datetime date month week time datetime-local number range color | split string with delimiter and put it in some label I have a demo here In the demo i have a table and a temp var to keep the delimited string, using js I am putting the delimited strings into appropriate places, but instead of an input box, i want some label i.e., without any boundary or box holding the value. Is ther... | TITLE:
split string with delimiter and put it in some label
QUESTION:
I have a demo here In the demo i have a table and a temp var to keep the delimited string, using js I am putting the delimited strings into appropriate places, but instead of an input box, i want some label i.e., without any boundary or box holding ... | [
"javascript",
"html"
] | 0 | 1 | 1,029 | 4 | 0 | 2011-06-07T05:43:11.297000 | 2011-06-07T05:50:00.717000 |
6,261,044 | 6,261,069 | what does $ and * means in PCRE (Regular Expression)? | i am using a Regular Expression that validates an email address here is the regular expression i am using. preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/", $email) most of the above code are self explanatory like a) ^ represents NOT. b) the start of the string should be either _ a-z... | Your assumption a) is not true ^ is the start of the string in this case. At the beginning of a character class its a NOT. [_a-z0-9-]+ will match any of the chars in [] one or more times (because of the + ) (\.[_a-z0-9-]+)* then there is a dot the same pattern than before and the * means this complete part can be repea... | what does $ and * means in PCRE (Regular Expression)? i am using a Regular Expression that validates an email address here is the regular expression i am using. preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/", $email) most of the above code are self explanatory like a) ^ represents ... | TITLE:
what does $ and * means in PCRE (Regular Expression)?
QUESTION:
i am using a Regular Expression that validates an email address here is the regular expression i am using. preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/", $email) most of the above code are self explanatory lik... | [
"php",
"regex",
"pcre"
] | 1 | 7 | 2,901 | 4 | 0 | 2011-06-07T05:44:51.997000 | 2011-06-07T05:49:49.923000 |
6,261,045 | 6,261,063 | deleting the oldest folder by identifying from the folder name | an example of my folder names are as follow: abc.300520111500 abc.310520111500 abc.310520111515 as u can see, these folders are backed up by date time stamp. original folder: abc backup folder: abc.ddMMyyyyhhmm my current code looks like this: var files = Directory.GetDirectories(path, "abc.*"); foreach(var file in fil... | If you can't change the directory names to YYYYMMDD which will always yield the result you want, you can try manipulating / parsing the filename strings (converting to dates for comparison, perhaps) and then rebuilding the directory name to be deleted. | deleting the oldest folder by identifying from the folder name an example of my folder names are as follow: abc.300520111500 abc.310520111500 abc.310520111515 as u can see, these folders are backed up by date time stamp. original folder: abc backup folder: abc.ddMMyyyyhhmm my current code looks like this: var files = D... | TITLE:
deleting the oldest folder by identifying from the folder name
QUESTION:
an example of my folder names are as follow: abc.300520111500 abc.310520111500 abc.310520111515 as u can see, these folders are backed up by date time stamp. original folder: abc backup folder: abc.ddMMyyyyhhmm my current code looks like t... | [
"c#"
] | 0 | 1 | 598 | 2 | 0 | 2011-06-07T05:45:10.283000 | 2011-06-07T05:48:48.013000 |
6,261,049 | 6,263,360 | How we can give abcd&abcd@gmail.com in mailto in joomla article? | I have to give a email id ex. abcd&abcd@gmail.com in mail to funcion in joomla article. It is displaying well but when we click on this, it opens in outlook or any other mail other with abcd if just discard the character after &. I am using Joomla 1.5 Editor JCE. | Use in href mailto:abc%26%40abc@gmail.com give this in text abc&abc@gmail.com Good luck! | How we can give abcd&abcd@gmail.com in mailto in joomla article? I have to give a email id ex. abcd&abcd@gmail.com in mail to funcion in joomla article. It is displaying well but when we click on this, it opens in outlook or any other mail other with abcd if just discard the character after &. I am using Joomla 1.5 Edi... | TITLE:
How we can give abcd&abcd@gmail.com in mailto in joomla article?
QUESTION:
I have to give a email id ex. abcd&abcd@gmail.com in mail to funcion in joomla article. It is displaying well but when we click on this, it opens in outlook or any other mail other with abcd if just discard the character after &. I am us... | [
"html",
"joomla"
] | 0 | 1 | 322 | 2 | 0 | 2011-06-07T05:46:08.257000 | 2011-06-07T09:40:22.730000 |
6,261,073 | 6,261,130 | Call Android activity from notification | I want to call an activity class from the notification using the following code PendingIntent pi = PendingIntent.getActivity(con, 0, new Intent(con, MyActivityClass.class), 0); But when try use this MyActivityClass.java is not getting invoked.Pleae help. Is there anything in addition that I need to do? Any help is much... | You have use Intent.FLAG_ACTIVITY_NEW_TASK PendingIntent intent = PendingIntent.getActivity(con, 0,new Intent(con, MyActivityClass.class), android.content.Intent.FLAG_ACTIVITY_NEW_TASK); | Call Android activity from notification I want to call an activity class from the notification using the following code PendingIntent pi = PendingIntent.getActivity(con, 0, new Intent(con, MyActivityClass.class), 0); But when try use this MyActivityClass.java is not getting invoked.Pleae help. Is there anything in addi... | TITLE:
Call Android activity from notification
QUESTION:
I want to call an activity class from the notification using the following code PendingIntent pi = PendingIntent.getActivity(con, 0, new Intent(con, MyActivityClass.class), 0); But when try use this MyActivityClass.java is not getting invoked.Pleae help. Is ther... | [
"android",
"android-emulator",
"android-widget"
] | 0 | 1 | 228 | 1 | 0 | 2011-06-07T05:50:09.720000 | 2011-06-07T05:58:56.303000 |
6,261,075 | 6,261,924 | how to bind the radcombobox at runtime in asp.net | I have a webpage that has a Telerik RadComboBox in radgrid control on the page,and i have a SqlserverCe database.My issue is how can i write the code to bind the RadCombobox at page load event in asp.net please help me..... | Items are bound to RadComboBox basically in the same way as to an ASP.NET DropDownList. You can bind the RadComboBox to ASP.NET 2.0 datasources, ADO.NET DataSet/DataTable/DataView, to Arrays and ArrayLists, or to an IEnumerable of objects. And of course you can add the items one by one yourself. With RadComboBox, you'l... | how to bind the radcombobox at runtime in asp.net I have a webpage that has a Telerik RadComboBox in radgrid control on the page,and i have a SqlserverCe database.My issue is how can i write the code to bind the RadCombobox at page load event in asp.net please help me..... | TITLE:
how to bind the radcombobox at runtime in asp.net
QUESTION:
I have a webpage that has a Telerik RadComboBox in radgrid control on the page,and i have a SqlserverCe database.My issue is how can i write the code to bind the RadCombobox at page load event in asp.net please help me.....
ANSWER:
Items are bound to ... | [
"c#",
"asp.net",
"telerik",
"radcombobox"
] | 4 | 11 | 40,761 | 1 | 0 | 2011-06-07T05:50:30.883000 | 2011-06-07T07:30:33.777000 |
6,261,080 | 6,264,023 | ASP.NET MVC checkbox and radio button examples | I am looking for detailed ASP.NET MVC examples which make extensive use of grouped checkboxes (where multiple checkboxes can be selected, use case: choose the magazines you want to subscribe to with options such as "SI", "Forbes", "Money" etc) as well as grouped radio buttons (use case: at a bank choose either "savings... | The example here is for HTMLHelper for Checkbox Grouping public static class HtmlHelperGroup { static string container = @" {1} "; static string checkboxhtml = @" {2} ";
public static string CheckBoxGroup(this HtmlHelper obj, string name, List data) { StringBuilder sb = new StringBuilder(); foreach (var content in dat... | ASP.NET MVC checkbox and radio button examples I am looking for detailed ASP.NET MVC examples which make extensive use of grouped checkboxes (where multiple checkboxes can be selected, use case: choose the magazines you want to subscribe to with options such as "SI", "Forbes", "Money" etc) as well as grouped radio butt... | TITLE:
ASP.NET MVC checkbox and radio button examples
QUESTION:
I am looking for detailed ASP.NET MVC examples which make extensive use of grouped checkboxes (where multiple checkboxes can be selected, use case: choose the magazines you want to subscribe to with options such as "SI", "Forbes", "Money" etc) as well as ... | [
"asp.net-mvc",
"checkbox",
"radio-button"
] | 1 | 0 | 2,880 | 1 | 0 | 2011-06-07T05:50:57.660000 | 2011-06-07T10:40:03.570000 |
6,261,086 | 6,261,179 | convert bumpbox(mootools) to use jQuery | I am looking to convert bumpbox from using mootools to using jQuery instead. Has anyone done this, or are there any guides out there for doing this, I am fluent in jQuery, but know not of mootools. | BumpBox is a Mootools plugin and so to use it with jQuery, you have to port it. Plus, BumpBox is a clone of the original LightBox Plugin. Why couldn't you use the jQuery LightBox Plugin? Any particular feature that LightBox doesn't have? | convert bumpbox(mootools) to use jQuery I am looking to convert bumpbox from using mootools to using jQuery instead. Has anyone done this, or are there any guides out there for doing this, I am fluent in jQuery, but know not of mootools. | TITLE:
convert bumpbox(mootools) to use jQuery
QUESTION:
I am looking to convert bumpbox from using mootools to using jQuery instead. Has anyone done this, or are there any guides out there for doing this, I am fluent in jQuery, but know not of mootools.
ANSWER:
BumpBox is a Mootools plugin and so to use it with jQue... | [
"jquery",
"mootools"
] | 0 | 0 | 1,033 | 2 | 0 | 2011-06-07T05:51:32.310000 | 2011-06-07T06:05:54.863000 |
6,261,093 | 6,261,537 | Does setting Security Mode = Transport automatically make it secure in a HTTPS web service? | I have a web service and we're currently hosting it in a HTTPS site. My binding is this. And it seems to work well. But my main aim is to make sure the web service requests and responses are encrypted. I don't know much about web services but is that all there is to it? Just use HTTPS and put this line in your configur... | Yes that's all. The mode Transport demands transport level security which in your case means HTTPS. If you want to see that messages are encrypted you must use some network monitoring tool (Fiddler, WireShark, etc.) | Does setting Security Mode = Transport automatically make it secure in a HTTPS web service? I have a web service and we're currently hosting it in a HTTPS site. My binding is this. And it seems to work well. But my main aim is to make sure the web service requests and responses are encrypted. I don't know much about we... | TITLE:
Does setting Security Mode = Transport automatically make it secure in a HTTPS web service?
QUESTION:
I have a web service and we're currently hosting it in a HTTPS site. My binding is this. And it seems to work well. But my main aim is to make sure the web service requests and responses are encrypted. I don't ... | [
"wcf",
"security",
".net-4.0",
"wcf-binding"
] | 6 | 10 | 9,336 | 1 | 0 | 2011-06-07T05:51:53.550000 | 2011-06-07T06:47:34.380000 |
6,261,124 | 6,261,142 | {"Incorrect syntax near 'C'."}.....Error Debug | SqlConnection conn = new SqlConnection("Server=ILLUMINATI;" + "Database=DB;Integrated Security= true"); SqlCommand comm = new SqlCommand( "Insert into FileUpload ('FilePath','TypeId','UploadedBy','UploadedDate') values (" + savePath + "," + typeid + "," + NAME + "," + DateTime.Now+ ")", conn);
conn.Open(); comm.Execut... | You have to put single '' quotes around the value strings not around the column names try this SqlCommand comm = new SqlCommand( "Insert into FileUpload (FilePath,TypeId,UploadedBy,UploadedDate) values ('" + savePath + "','" + typeid + "','" + NAME + "'," assuming typeID is string, if not dont put '' around it | {"Incorrect syntax near 'C'."}.....Error Debug SqlConnection conn = new SqlConnection("Server=ILLUMINATI;" + "Database=DB;Integrated Security= true"); SqlCommand comm = new SqlCommand( "Insert into FileUpload ('FilePath','TypeId','UploadedBy','UploadedDate') values (" + savePath + "," + typeid + "," + NAME + "," + Date... | TITLE:
{"Incorrect syntax near 'C'."}.....Error Debug
QUESTION:
SqlConnection conn = new SqlConnection("Server=ILLUMINATI;" + "Database=DB;Integrated Security= true"); SqlCommand comm = new SqlCommand( "Insert into FileUpload ('FilePath','TypeId','UploadedBy','UploadedDate') values (" + savePath + "," + typeid + "," +... | [
"c#",
"asp.net",
"sql-server",
"insert"
] | 0 | 5 | 2,099 | 3 | 0 | 2011-06-07T05:57:46.483000 | 2011-06-07T06:01:12.937000 |
6,261,126 | 6,261,182 | Modifying a parameter pass to a script (Bash) | I have been looking on Google for quite a while now and can't find anything that is matching what I need/want to do. My objective is to write a script that takes two arguments. It will search through the first argument (which is a list) and detect if the second argument is already in it. For example: list = /bin/foo:/b... | adymitruk already said it, but why do you want to assign to a parameter. Woudln't this do the trick? if `echo:$1: | grep ":$2:" 1>/dev/null 2>&1` then echo $1 else echo $1:$2 fi Maybe this: list="1:2:3:4" list=`./script $list 5`;echo $list BIG EDIT: Use this script (called listadd for instance): if! `echo:${!1}: | grep... | Modifying a parameter pass to a script (Bash) I have been looking on Google for quite a while now and can't find anything that is matching what I need/want to do. My objective is to write a script that takes two arguments. It will search through the first argument (which is a list) and detect if the second argument is ... | TITLE:
Modifying a parameter pass to a script (Bash)
QUESTION:
I have been looking on Google for quite a while now and can't find anything that is matching what I need/want to do. My objective is to write a script that takes two arguments. It will search through the first argument (which is a list) and detect if the s... | [
"bash",
"arguments"
] | 7 | 3 | 7,845 | 3 | 0 | 2011-06-07T05:57:53.180000 | 2011-06-07T06:06:28.807000 |
6,261,134 | 6,261,239 | How to achieve String Manipulation in JavaScript | The problem statement is like this: I have a contract. On renewal on every month the contract name should append with renewal identifier. For example at beginning the name is myContract then on first renewal name should be myContract-R1, next renewal name should be myContract-R2 and so on.. On each renewal, the name sh... | This is a JavaScript question, not a jQuery question. jQuery adds little to JavaScript's built-in string manipulation. It sounds like you want to take a string in the form "myContract" or "myContract-Rx" and have a function that appends "-R1" (if there's no "-Rx" already) or increments the number that's there. There's ... | How to achieve String Manipulation in JavaScript The problem statement is like this: I have a contract. On renewal on every month the contract name should append with renewal identifier. For example at beginning the name is myContract then on first renewal name should be myContract-R1, next renewal name should be myCon... | TITLE:
How to achieve String Manipulation in JavaScript
QUESTION:
The problem statement is like this: I have a contract. On renewal on every month the contract name should append with renewal identifier. For example at beginning the name is myContract then on first renewal name should be myContract-R1, next renewal na... | [
"javascript",
"jquery"
] | 2 | 3 | 85 | 3 | 0 | 2011-06-07T05:59:45.650000 | 2011-06-07T06:14:49.307000 |
6,261,136 | 6,262,067 | Reusing NServiceBus messages saga data | Are there any reasons not to reuse an NServiceBus message ( IMessage ) in saga data? What I mean is having a message something like this: public class Order: IMessage { public virtual List OrderLines { get; set; } }
public class TillOrderLine: IMessage {... } And then also using it in the saga and saga data like this:... | If your surrent saga persister persists the data without complaining, I cannot think of anything wrong with this approach - as long as you're conscious that you're reusing a class for two purposes, thus introducing a coupling between saga data (which is private to the service) and messages (which are inherently public)... | Reusing NServiceBus messages saga data Are there any reasons not to reuse an NServiceBus message ( IMessage ) in saga data? What I mean is having a message something like this: public class Order: IMessage { public virtual List OrderLines { get; set; } }
public class TillOrderLine: IMessage {... } And then also using ... | TITLE:
Reusing NServiceBus messages saga data
QUESTION:
Are there any reasons not to reuse an NServiceBus message ( IMessage ) in saga data? What I mean is having a message something like this: public class Order: IMessage { public virtual List OrderLines { get; set; } }
public class TillOrderLine: IMessage {... } An... | [
"nservicebus"
] | 2 | 2 | 1,305 | 2 | 0 | 2011-06-07T06:00:13.773000 | 2011-06-07T07:44:09.153000 |
6,261,137 | 6,261,207 | SQL Script Foreign Key Error | I am getting the error "Number of referencing columns in foreign key differs from number of referenced columns, table 'StudentGrade'" when trying to execute the following SQL script CREATE TABLE StudentGrade
(
StudentID INT NOT NULL CONSTRAINT FK_SG_StudentID FOREIGN KEY (StudentID) REFERENCES Student(StudentID), Cla... | change your second foreign key from CONSTRAINT FK_Class FOREIGN KEY (ClassID, CourseID) to CONSTRAINT FK_Class FOREIGN KEY (ClassID) In FK_Class you are referencing the columns StudentGrade.ClassID and StudentGrade.CourseID into a single one Class.ClassID and this cannot work. Your FK_Course already refers CourseID, so... | SQL Script Foreign Key Error I am getting the error "Number of referencing columns in foreign key differs from number of referenced columns, table 'StudentGrade'" when trying to execute the following SQL script CREATE TABLE StudentGrade
(
StudentID INT NOT NULL CONSTRAINT FK_SG_StudentID FOREIGN KEY (StudentID) REFER... | TITLE:
SQL Script Foreign Key Error
QUESTION:
I am getting the error "Number of referencing columns in foreign key differs from number of referenced columns, table 'StudentGrade'" when trying to execute the following SQL script CREATE TABLE StudentGrade
(
StudentID INT NOT NULL CONSTRAINT FK_SG_StudentID FOREIGN KEY... | [
"sql",
"sql-server-2008",
"foreign-keys"
] | 0 | 1 | 476 | 1 | 0 | 2011-06-07T06:00:20.590000 | 2011-06-07T06:10:16.813000 |
6,261,163 | 6,261,318 | How to automatically generate a page after user fills a form via PHP? | Let's say I have a form with two input fields, title and comment. After the user fills the two fields and submits the data, a page is automatically created that contains the title and comment that the user typed, in a folder located in root directory, for example, www.root.com/page/ will contain the automatically gener... | EOD;
//handle the posted form if(isset($_POST['title'])&&isset($_POST['comment'])){ //replace the areas of the template with the posted values $page = str_replace(' ',htmlentities($_POST['title']),$template); $page = str_replace(' ',htmlentities($_POST['comment']),$page); //create a name for the new page $pagename = m... | How to automatically generate a page after user fills a form via PHP? Let's say I have a form with two input fields, title and comment. After the user fills the two fields and submits the data, a page is automatically created that contains the title and comment that the user typed, in a folder located in root directory... | TITLE:
How to automatically generate a page after user fills a form via PHP?
QUESTION:
Let's say I have a form with two input fields, title and comment. After the user fills the two fields and submits the data, a page is automatically created that contains the title and comment that the user typed, in a folder located... | [
"php",
"html",
"forms",
"directory"
] | 4 | 6 | 9,073 | 1 | 0 | 2011-06-07T06:04:54.350000 | 2011-06-07T06:23:51.977000 |
6,261,167 | 6,264,654 | Prepared statement vs. Stored Procedure with RefCursor | I've been calling Oracle stored procedures that return RefCursors in my C# application. A sample stored procedure is given below. CREATE OR REPLACE PROCEDURE "DOSOMETHING"( P_RECORDS OUT SYS_REFCURSOR) AS BEGIN OPEN P_RECORDS FOR SELECT SOMETHING FROM SOMETABLE; END; When using the OracleDataReader to read the results ... | Using a ref cursor in PL/SQL will provoke a parse call each time the cursor is opened. The same parse call will be issued each time you call command.Prepare(). As it is now, your.NET code would parse the query as much as the PL/SQL code. You could reuse your command object without additional parse calls if you need to ... | Prepared statement vs. Stored Procedure with RefCursor I've been calling Oracle stored procedures that return RefCursors in my C# application. A sample stored procedure is given below. CREATE OR REPLACE PROCEDURE "DOSOMETHING"( P_RECORDS OUT SYS_REFCURSOR) AS BEGIN OPEN P_RECORDS FOR SELECT SOMETHING FROM SOMETABLE; EN... | TITLE:
Prepared statement vs. Stored Procedure with RefCursor
QUESTION:
I've been calling Oracle stored procedures that return RefCursors in my C# application. A sample stored procedure is given below. CREATE OR REPLACE PROCEDURE "DOSOMETHING"( P_RECORDS OUT SYS_REFCURSOR) AS BEGIN OPEN P_RECORDS FOR SELECT SOMETHING ... | [
"c#",
".net",
"performance",
"oracle",
"oracle11g"
] | 3 | 1 | 1,320 | 1 | 0 | 2011-06-07T06:05:10.683000 | 2011-06-07T11:42:09.957000 |
6,261,168 | 6,261,282 | Upgrade to iOS 5 | I'm iPhone developer. I want to upgrade my iphone to iOS 5. But I'don't know if I can run applications for iOS 4? Do I need to install new Xcode with new SDK? | You can install iOS 5 using the beta SDK, or you can go through iTunes Beta 10.5. I am sure iOS 4 apps will run on the Beta iOS 5. You may run into some crashes depending on what frameworks your app uses versus what frameworks have changed. This is a great opportunity to test your apps against iOS 5 and correct any iss... | Upgrade to iOS 5 I'm iPhone developer. I want to upgrade my iphone to iOS 5. But I'don't know if I can run applications for iOS 4? Do I need to install new Xcode with new SDK? | TITLE:
Upgrade to iOS 5
QUESTION:
I'm iPhone developer. I want to upgrade my iphone to iOS 5. But I'don't know if I can run applications for iOS 4? Do I need to install new Xcode with new SDK?
ANSWER:
You can install iOS 5 using the beta SDK, or you can go through iTunes Beta 10.5. I am sure iOS 4 apps will run on th... | [
"iphone",
"ios",
"ios5"
] | 3 | 8 | 1,576 | 3 | 0 | 2011-06-07T06:05:14.767000 | 2011-06-07T06:19:39.053000 |
6,261,181 | 6,290,463 | How to enable tickering with TextField's? | I want that when the length of the text of a TextField is larger than the TextField's preferredWidth then the TextField should ticker. How to achieve that? Thank you very much | http://www.java.net/forum/topic/mobile-embedded/lwuit/how-enable-tickering-textfields | How to enable tickering with TextField's? I want that when the length of the text of a TextField is larger than the TextField's preferredWidth then the TextField should ticker. How to achieve that? Thank you very much | TITLE:
How to enable tickering with TextField's?
QUESTION:
I want that when the length of the text of a TextField is larger than the TextField's preferredWidth then the TextField should ticker. How to achieve that? Thank you very much
ANSWER:
http://www.java.net/forum/topic/mobile-embedded/lwuit/how-enable-tickering-... | [
"java-me",
"textfield",
"lwuit"
] | 1 | 0 | 95 | 1 | 0 | 2011-06-07T06:06:27.500000 | 2011-06-09T09:07:24.333000 |
6,261,185 | 6,261,887 | How to allow an App.config under Program Files to be editable by a user is Notepad or another editor? | I'm having an issue that I have not encountered before where App.configs for Windows Services that are installed under the "Program Files (x86)" directory are locked for editing even when the Windows Services are not running. I get a message that the file is in use, even when it should not be. Is this something specifi... | It might happen because the file is write protected, you should right click on it (or it's containing folder), choose properties, and under security, add your user full control over this file. just make sure not to create a security breech in your application by adding full control to all users. You can also try openin... | How to allow an App.config under Program Files to be editable by a user is Notepad or another editor? I'm having an issue that I have not encountered before where App.configs for Windows Services that are installed under the "Program Files (x86)" directory are locked for editing even when the Windows Services are not r... | TITLE:
How to allow an App.config under Program Files to be editable by a user is Notepad or another editor?
QUESTION:
I'm having an issue that I have not encountered before where App.configs for Windows Services that are installed under the "Program Files (x86)" directory are locked for editing even when the Windows ... | [
"c#",
".net",
"windows-services",
"app-config"
] | 3 | 1 | 2,828 | 4 | 0 | 2011-06-07T06:06:57.973000 | 2011-06-07T07:26:55.187000 |
6,261,188 | 6,264,114 | Recommendation system based on user liking in mahout | How we can run a recommendation system on Apache Mahout based on user liking or browsing history? In short on a content based websites 95% traffic by non logged in users and they will come via search engine. They only way we can unique them by using IP. Is there anyway on Apache Mahout where we can find out the similar... | A simple but probably pretty effective starting point would be to use the IP address as a user ID (construed as a long), and use pages liked or browsed as items. I would start by even forgetting about assigning ratings. Then use GenericBooleanPrefItemBasedRecommender in Mahout plus a suitable similarity metric like Log... | Recommendation system based on user liking in mahout How we can run a recommendation system on Apache Mahout based on user liking or browsing history? In short on a content based websites 95% traffic by non logged in users and they will come via search engine. They only way we can unique them by using IP. Is there anyw... | TITLE:
Recommendation system based on user liking in mahout
QUESTION:
How we can run a recommendation system on Apache Mahout based on user liking or browsing history? In short on a content based websites 95% traffic by non logged in users and they will come via search engine. They only way we can unique them by using... | [
"mahout",
"recommendation-engine",
"mahout-recommender"
] | 2 | 1 | 644 | 1 | 0 | 2011-06-07T06:07:26.530000 | 2011-06-07T10:49:35.130000 |
6,261,189 | 6,261,446 | How to create and write to xml file in android | I'am beginner to android I have an emergency contact screen in that I have two fields like (email,phone number) I want to save these things in xml instead of sqlite. I used following code for saving but I unable to create xml file in internal memory,it's giving exception please see the code below. also i used this code... | Don't use that storage location. Look at Android and data storage space? | How to create and write to xml file in android I'am beginner to android I have an emergency contact screen in that I have two fields like (email,phone number) I want to save these things in xml instead of sqlite. I used following code for saving but I unable to create xml file in internal memory,it's giving exception p... | TITLE:
How to create and write to xml file in android
QUESTION:
I'am beginner to android I have an emergency contact screen in that I have two fields like (email,phone number) I want to save these things in xml instead of sqlite. I used following code for saving but I unable to create xml file in internal memory,it's ... | [
"android"
] | 2 | 3 | 9,320 | 2 | 0 | 2011-06-07T06:07:29.713000 | 2011-06-07T06:37:12.633000 |
6,261,193 | 6,261,219 | LINQ Query - How to map a resultset into another object using Select | I have an object hierarchy arranged as Continents > Countries > Cities. Am able to select all the cities in a specific "country" as below. What I am looking for is a way to merge these two queries, and arrive at the cityList in a single query. var cities = network.Continents.SelectMany(continent => continent.Countries)... | Just use dot notation in your query: var cities = network.Continents.SelectMany(continent => continent.Countries).Where(ctry => ctry.Id == "country").SelectMany(ctry => ctry.Cities).Select(cty=> new City{Id = cty.Id, Name = cty.Name }).ToList (); I think it's readable, and it doesn't have extra overhead; usually, the g... | LINQ Query - How to map a resultset into another object using Select I have an object hierarchy arranged as Continents > Countries > Cities. Am able to select all the cities in a specific "country" as below. What I am looking for is a way to merge these two queries, and arrive at the cityList in a single query. var cit... | TITLE:
LINQ Query - How to map a resultset into another object using Select
QUESTION:
I have an object hierarchy arranged as Continents > Countries > Cities. Am able to select all the cities in a specific "country" as below. What I am looking for is a way to merge these two queries, and arrive at the cityList in a sin... | [
"c#",
"linq"
] | 8 | 17 | 31,642 | 4 | 0 | 2011-06-07T06:07:55.537000 | 2011-06-07T06:12:32.690000 |
6,261,196 | 6,261,279 | Turn single pixel on/off or change color in Java | How should I turn a each pixel on or off and change its color:-/ | if you use BufferedImage, there's a method called setRGB which should do what you want. | Turn single pixel on/off or change color in Java How should I turn a each pixel on or off and change its color:-/ | TITLE:
Turn single pixel on/off or change color in Java
QUESTION:
How should I turn a each pixel on or off and change its color:-/
ANSWER:
if you use BufferedImage, there's a method called setRGB which should do what you want. | [
"java",
"java-2d"
] | 2 | 4 | 5,211 | 3 | 0 | 2011-06-07T06:08:26.047000 | 2011-06-07T06:19:20.690000 |
6,261,197 | 6,261,251 | Create a list from a long int | I've got a very long ( 1000 digit ) number. I want to convert it into a list, how would you go about it since: list(n) TypeError: 'long' object is not iterable | It's not exactly clear what you're asking for, but if what you want is to iterate over the digits, just convert it to a string: x = str(n) You can iterate over a string as if it were a list. If you really want a true list (only reason I can think of is you want to modify digits), you can do: xl = list(str(n)) (In the e... | Create a list from a long int I've got a very long ( 1000 digit ) number. I want to convert it into a list, how would you go about it since: list(n) TypeError: 'long' object is not iterable | TITLE:
Create a list from a long int
QUESTION:
I've got a very long ( 1000 digit ) number. I want to convert it into a list, how would you go about it since: list(n) TypeError: 'long' object is not iterable
ANSWER:
It's not exactly clear what you're asking for, but if what you want is to iterate over the digits, just... | [
"python"
] | 0 | 7 | 5,477 | 3 | 0 | 2011-06-07T06:08:44.883000 | 2011-06-07T06:15:41.400000 |
6,261,237 | 6,261,433 | Sort keys which are date entries in a hashmap | I have a hashMap which has the following values as key value(sql date, integer) pairs: a.put("31-05-2011",67); a.put("01-06-2011",89); a.put("10-06-2011",56); a.put("25-05-2011",34); when i try to sort the hashMap based on the keys using: Map modified_a=new TreeMap(a); and display the keys it is as follows: 01-06-2011,... | You can use like Map m = new HashMap ();
DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy");
m.put(new java.sql.Date(dateFormat.parse("31-05-2011").getTime()),67); m.put(new java.sql.Date(dateFormat.parse("01-06-2011").getTime()),89); m.put(new java.sql.Date(dateFormat.parse("10-06-2011").getTime()),56); m.pu... | Sort keys which are date entries in a hashmap I have a hashMap which has the following values as key value(sql date, integer) pairs: a.put("31-05-2011",67); a.put("01-06-2011",89); a.put("10-06-2011",56); a.put("25-05-2011",34); when i try to sort the hashMap based on the keys using: Map modified_a=new TreeMap(a); and ... | TITLE:
Sort keys which are date entries in a hashmap
QUESTION:
I have a hashMap which has the following values as key value(sql date, integer) pairs: a.put("31-05-2011",67); a.put("01-06-2011",89); a.put("10-06-2011",56); a.put("25-05-2011",34); when i try to sort the hashMap based on the keys using: Map modified_a=ne... | [
"java",
"sorting",
"hashmap"
] | 8 | 10 | 38,130 | 6 | 0 | 2011-06-07T06:14:46.793000 | 2011-06-07T06:36:08.020000 |
6,261,241 | 6,261,721 | How to record sound by using inbuilt microphone in android | I need to record sound by using mobile's own microphone... How to do it? | It's explained here Audio capture from the device is a bit more complicated than audio/video playback, but still fairly simple: Create a new instance of android.media.MediaRecorder using new Set the audio source using MediaRecorder.setAudioSource(). You will probably want to use MediaRecorder.AudioSource.MIC Set output... | How to record sound by using inbuilt microphone in android I need to record sound by using mobile's own microphone... How to do it? | TITLE:
How to record sound by using inbuilt microphone in android
QUESTION:
I need to record sound by using mobile's own microphone... How to do it?
ANSWER:
It's explained here Audio capture from the device is a bit more complicated than audio/video playback, but still fairly simple: Create a new instance of android.... | [
"android",
"microphone"
] | 4 | 10 | 9,289 | 2 | 0 | 2011-06-07T06:14:47.163000 | 2011-06-07T07:08:37.580000 |
6,261,244 | 6,261,388 | Why does Python's queue.Queue.get() permit returning early from timeouts? | UPDATE: This question is based on a faulty mental model of how Queue.get() was actually behaving, which was caused by some slightly ambiguous documentation but mainly by a buggy, hand-rolled implementation of timedelta.total_seconds(). I discovered this bug when trying to prove that the original answers where incorrect... | I think you are misinterpreting the documentation. It isn't saying it might raise the Empty exception after less than timeout seconds, it is saying it will block for at most timeout seconds. It might block for less than that, if it can satisfy the get. I realize you are saying you see it raising Empty early, but honest... | Why does Python's queue.Queue.get() permit returning early from timeouts? UPDATE: This question is based on a faulty mental model of how Queue.get() was actually behaving, which was caused by some slightly ambiguous documentation but mainly by a buggy, hand-rolled implementation of timedelta.total_seconds(). I discover... | TITLE:
Why does Python's queue.Queue.get() permit returning early from timeouts?
QUESTION:
UPDATE: This question is based on a faulty mental model of how Queue.get() was actually behaving, which was caused by some slightly ambiguous documentation but mainly by a buggy, hand-rolled implementation of timedelta.total_sec... | [
"python",
"real-time"
] | 4 | 6 | 2,422 | 3 | 0 | 2011-06-07T06:15:10.707000 | 2011-06-07T06:32:26.817000 |
6,261,256 | 6,262,092 | SCRIPT1014: Invalid character | I have this script: function slideSwitch() { var ae = jQuery('#featured-right a.active'); if ( ae.length == 0 ) { ae = jQuery('#featured-right a:first'); var i = jQuery('#featured-right a').index(ae); var bae = jQuery('#featured-left a.fb-'+i); bae.show(); }
var ne = ae.next().length? ae.next(): jQuery('#featured-righ... | It seems that IE didn't like the fact that i was accessing the page without a HTTP server:) I was accessing c:\www\my-file. When accessing http://localhost/my-file.. worked great. | SCRIPT1014: Invalid character I have this script: function slideSwitch() { var ae = jQuery('#featured-right a.active'); if ( ae.length == 0 ) { ae = jQuery('#featured-right a:first'); var i = jQuery('#featured-right a').index(ae); var bae = jQuery('#featured-left a.fb-'+i); bae.show(); }
var ne = ae.next().length? ae.... | TITLE:
SCRIPT1014: Invalid character
QUESTION:
I have this script: function slideSwitch() { var ae = jQuery('#featured-right a.active'); if ( ae.length == 0 ) { ae = jQuery('#featured-right a:first'); var i = jQuery('#featured-right a').index(ae); var bae = jQuery('#featured-left a.fb-'+i); bae.show(); }
var ne = ae.... | [
"javascript",
"jquery",
"internet-explorer"
] | 10 | 10 | 43,506 | 4 | 0 | 2011-06-07T06:16:11.193000 | 2011-06-07T07:46:36.707000 |
6,261,266 | 6,261,364 | NSMutableArray crashing at runtime | I'm getting a crash at runtime when try to access an NSMutable array that is correctly loaded. here is the code NSMutableArray *gameItems;
-(id) init { if( (self=[super init])) {
//initialize array gameItems = [NSMutableArray array];
for(int i = 0; i < 3; i++) { GI *gameItem = [[GI alloc] init]; gameItem.image = [[C... | (reposted on request) If your array gameItems is a member, which it seems it is, to be able to access it in other functions such as callEveryFrame then surely you need to have initialised it in this way: gameItems = [[NSMutableArray alloc] init]; (you missed the alloc I reckon) | NSMutableArray crashing at runtime I'm getting a crash at runtime when try to access an NSMutable array that is correctly loaded. here is the code NSMutableArray *gameItems;
-(id) init { if( (self=[super init])) {
//initialize array gameItems = [NSMutableArray array];
for(int i = 0; i < 3; i++) { GI *gameItem = [[GI... | TITLE:
NSMutableArray crashing at runtime
QUESTION:
I'm getting a crash at runtime when try to access an NSMutable array that is correctly loaded. here is the code NSMutableArray *gameItems;
-(id) init { if( (self=[super init])) {
//initialize array gameItems = [NSMutableArray array];
for(int i = 0; i < 3; i++) { G... | [
"objective-c",
"crash",
"runtime",
"nsmutablearray"
] | 0 | 1 | 264 | 1 | 0 | 2011-06-07T06:17:40.497000 | 2011-06-07T06:30:36.573000 |
6,261,269 | 6,261,305 | button name cannot be resolved into a variable | the last question by me that was answered really help me. Thanks for all that. But now i am getting a new error. This is my code: import android.app.Activity; import android.os.Bundle; import android.app.AlertDialog; import android.view.View;
public class Trial extends Activity { /** Called when the activity is first ... | Well, button1 and button2 don't exist. You need to put R.id. before each of them. | button name cannot be resolved into a variable the last question by me that was answered really help me. Thanks for all that. But now i am getting a new error. This is my code: import android.app.Activity; import android.os.Bundle; import android.app.AlertDialog; import android.view.View;
public class Trial extends Ac... | TITLE:
button name cannot be resolved into a variable
QUESTION:
the last question by me that was answered really help me. Thanks for all that. But now i am getting a new error. This is my code: import android.app.Activity; import android.os.Bundle; import android.app.AlertDialog; import android.view.View;
public clas... | [
"android"
] | 0 | 2 | 4,190 | 6 | 0 | 2011-06-07T06:18:05.887000 | 2011-06-07T06:22:21.687000 |
6,261,288 | 6,261,334 | What is the concept display pdf file with page wise in iphone | I am doing a simple program. I have 3 pdf file for 1 chapter like "pdf_chapter_1_page_1.pdf","pdf_chapter_1_page_2.pdf","pdf_chapter_1_page_3.pdf". In first chapter we have 3 pdf file. I want to display these 3 pdf file in iPhone. When user will open application he will be on 1st page of chapter and whenever he will dr... | There are several ways to do this. UIPageControl is one way. | What is the concept display pdf file with page wise in iphone I am doing a simple program. I have 3 pdf file for 1 chapter like "pdf_chapter_1_page_1.pdf","pdf_chapter_1_page_2.pdf","pdf_chapter_1_page_3.pdf". In first chapter we have 3 pdf file. I want to display these 3 pdf file in iPhone. When user will open applica... | TITLE:
What is the concept display pdf file with page wise in iphone
QUESTION:
I am doing a simple program. I have 3 pdf file for 1 chapter like "pdf_chapter_1_page_1.pdf","pdf_chapter_1_page_2.pdf","pdf_chapter_1_page_3.pdf". In first chapter we have 3 pdf file. I want to display these 3 pdf file in iPhone. When user... | [
"iphone"
] | 0 | 1 | 401 | 2 | 0 | 2011-06-07T06:20:01.690000 | 2011-06-07T06:25:40.090000 |
6,261,296 | 6,263,188 | Is it possible to save only half of a symmetric matrix to save the memory? | There is a large matrix that is used in Ax=b type problem. A is symmetric. Is there any algorithm to let us save only half of the matrix and do operation like x=A\b on it? | You'll only save half the memory, but you can do this by creating a flat version of the matrix, saving that, then unflattening it. The extra time required probably doesn't make the saving worthwhile, mind: % pretend this is symettric... A = rand(10, 10);
% store it as a flat list flatA = []; for k = 1:size(A,1) flatA ... | Is it possible to save only half of a symmetric matrix to save the memory? There is a large matrix that is used in Ax=b type problem. A is symmetric. Is there any algorithm to let us save only half of the matrix and do operation like x=A\b on it? | TITLE:
Is it possible to save only half of a symmetric matrix to save the memory?
QUESTION:
There is a large matrix that is used in Ax=b type problem. A is symmetric. Is there any algorithm to let us save only half of the matrix and do operation like x=A\b on it?
ANSWER:
You'll only save half the memory, but you can ... | [
"matlab",
"matrix",
"large-data"
] | 5 | 6 | 10,199 | 3 | 0 | 2011-06-07T06:20:51.007000 | 2011-06-07T09:25:32.370000 |
6,261,297 | 6,261,356 | Gesture Recognition In Android | I'm new to Android and I'm working on Gestures. I have a problem regarding how to recognise the text. When a user draws a letter or number that has to be recognised and has to be printed on the top of the screen. I came to know that it can be done through GestureOverlayView but dont know how to implement it. Can anyone... | You can these two links which will be helpful GestureOverlay GestureOverlayView Use this public class YourClass extends Activity implements OnGesturePerformedListener { private GestureLibrary mLibrary; mLibrary = GestureLibraries.fromRawResource(this, R.raw.gestures); if (!mLibrary.load()) { finish(); } GestureOverlayV... | Gesture Recognition In Android I'm new to Android and I'm working on Gestures. I have a problem regarding how to recognise the text. When a user draws a letter or number that has to be recognised and has to be printed on the top of the screen. I came to know that it can be done through GestureOverlayView but dont know ... | TITLE:
Gesture Recognition In Android
QUESTION:
I'm new to Android and I'm working on Gestures. I have a problem regarding how to recognise the text. When a user draws a letter or number that has to be recognised and has to be printed on the top of the screen. I came to know that it can be done through GestureOverlayV... | [
"android",
"gesture-recognition",
"gestures"
] | 10 | 3 | 4,585 | 1 | 0 | 2011-06-07T06:20:58.010000 | 2011-06-07T06:29:15.070000 |
6,261,301 | 6,261,313 | Call a URL and get the return value. both Jquery and Javascript doesnt display the return value | Possible Duplicate: XMLHttpRequest.responseText doesnt write the value when calling a URL I ve written the code in both javascript and jquery to call a URL and get the return value by referring here and here. But the return value of the aspx page doesnt get displayed in my html file. Since I am new to javascript and jq... | You cannot ajax a url from another domain unless it has implemented CORS If you need to get data from somewhere which is not same origin you need to use JSONP Also to debug, try calling the url from the locationbar to see if you receive valid data for your request | Call a URL and get the return value. both Jquery and Javascript doesnt display the return value Possible Duplicate: XMLHttpRequest.responseText doesnt write the value when calling a URL I ve written the code in both javascript and jquery to call a URL and get the return value by referring here and here. But the return ... | TITLE:
Call a URL and get the return value. both Jquery and Javascript doesnt display the return value
QUESTION:
Possible Duplicate: XMLHttpRequest.responseText doesnt write the value when calling a URL I ve written the code in both javascript and jquery to call a URL and get the return value by referring here and her... | [
"javascript",
"jquery",
"ajax"
] | 0 | 2 | 5,177 | 2 | 0 | 2011-06-07T06:21:35.770000 | 2011-06-07T06:23:12.603000 |
6,261,304 | 6,277,712 | Is there a flexible way of creating an "adaptable" form using jQuery? | I've got a requirement to build a form. The user would like to complete the form in a linear way, with the form adapting to their choices as they're made. I could do this as a series of if/else statements in jQuery with some onChange events. However, this could become tedious. I was wondering, is there was a pattern/be... | I just spotted this in another question and thought it might be sort of what you're after... I've not been able to have much of a play with it yet though, so i'm not 100% sure! jQuery.wizard | Is there a flexible way of creating an "adaptable" form using jQuery? I've got a requirement to build a form. The user would like to complete the form in a linear way, with the form adapting to their choices as they're made. I could do this as a series of if/else statements in jQuery with some onChange events. However,... | TITLE:
Is there a flexible way of creating an "adaptable" form using jQuery?
QUESTION:
I've got a requirement to build a form. The user would like to complete the form in a linear way, with the form adapting to their choices as they're made. I could do this as a series of if/else statements in jQuery with some onChang... | [
"jquery",
"forms"
] | 5 | 2 | 195 | 2 | 0 | 2011-06-07T06:22:15.383000 | 2011-06-08T11:02:30.143000 |
6,261,309 | 6,261,772 | Position:Fixed and IE | For the last few days I have been designing a layout for my website based on some art I drew. The layout turned out great on Chrome and Firefox and then I checked IE and it looked horrible. I know that only IE 7 supports position fixed but it's not working for me... and I have tried about ten different codes that shoul... | Your mark-up does need a bit of work but you will get a better understanding as you get more experienced. Rather then use a negative z-index and have the image in a div at the bottom of your mark-up, another possible solution is to wrap your page in a wrapper div that is larger then your page and set the background-ima... | Position:Fixed and IE For the last few days I have been designing a layout for my website based on some art I drew. The layout turned out great on Chrome and Firefox and then I checked IE and it looked horrible. I know that only IE 7 supports position fixed but it's not working for me... and I have tried about ten diff... | TITLE:
Position:Fixed and IE
QUESTION:
For the last few days I have been designing a layout for my website based on some art I drew. The layout turned out great on Chrome and Firefox and then I checked IE and it looked horrible. I know that only IE 7 supports position fixed but it's not working for me... and I have tr... | [
"css",
"internet-explorer"
] | 1 | 0 | 1,642 | 5 | 0 | 2011-06-07T06:22:48.457000 | 2011-06-07T07:14:11.523000 |
6,261,311 | 6,273,943 | Getting path of a file using C or Opencv | I need to load an image into my program. I want to allow the user to browse for any image s/he wishes and open. I need a function which asks the user to browse and select the desired file and can generate a string containing the complete path of that particular file. | You don't say on which platform you are working. If you are working on Windows, the fastest way is to use the OPENFILENAME structure with the GetOpenFileName function as shown in this example: http://msdn.microsoft.com/en-us/library/ms646829(v=vs.85).aspx#open_file. You can then use cvLoadImage with the lpstrFile membe... | Getting path of a file using C or Opencv I need to load an image into my program. I want to allow the user to browse for any image s/he wishes and open. I need a function which asks the user to browse and select the desired file and can generate a string containing the complete path of that particular file. | TITLE:
Getting path of a file using C or Opencv
QUESTION:
I need to load an image into my program. I want to allow the user to browse for any image s/he wishes and open. I need a function which asks the user to browse and select the desired file and can generate a string containing the complete path of that particular... | [
"c",
"opencv"
] | 0 | 4 | 663 | 2 | 0 | 2011-06-07T06:23:03.820000 | 2011-06-08T03:39:14.680000 |
6,261,312 | 6,261,376 | Bazaar: I deleted the trunk directory. Can I make another or delete the project so I can start over? | I've been trying to set up Bazaar for a project I'm doing in WAMP. I followed the tutorial here and initialized it as C:/Bazaar/MyProject, and this made a trunk directory. I can't remember exactly what I did, but I switched around a bunch of files on my computer because I couldn't figure out how to set up the project s... | The only thing you can do right now is to delete the.bzr folder and reinitialize the whole thing again. For your second question, just export the source files to the C:/wamp/www folder. | Bazaar: I deleted the trunk directory. Can I make another or delete the project so I can start over? I've been trying to set up Bazaar for a project I'm doing in WAMP. I followed the tutorial here and initialized it as C:/Bazaar/MyProject, and this made a trunk directory. I can't remember exactly what I did, but I swit... | TITLE:
Bazaar: I deleted the trunk directory. Can I make another or delete the project so I can start over?
QUESTION:
I've been trying to set up Bazaar for a project I'm doing in WAMP. I followed the tutorial here and initialized it as C:/Bazaar/MyProject, and this made a trunk directory. I can't remember exactly what... | [
"version-control",
"wamp",
"bazaar",
"wampserver"
] | 0 | 1 | 531 | 1 | 0 | 2011-06-07T06:23:12.930000 | 2011-06-07T06:31:23.817000 |
6,261,315 | 6,261,363 | Fastest method of checking if multiple different strings are a substring of a 2nd string | Context: I'm creating a program which will sort and rename my media files which are named e.g. The.Office.s04e03.DIVX.WaREZKiNG.avi into an organized folder structure, which will consist of a list of folders for each TV Series, each folder will have a list of folders for the seasons, and those folders will contain the ... | The Aho-Corsasick algorithm[1] efficiently solves the "does this possibly long string exactly contain any of these many short strings" problem. However, I suspect this isn't really the problem you want to solve. It seems to me that you want something to extract the likely components from a string that is in one of poss... | Fastest method of checking if multiple different strings are a substring of a 2nd string Context: I'm creating a program which will sort and rename my media files which are named e.g. The.Office.s04e03.DIVX.WaREZKiNG.avi into an organized folder structure, which will consist of a list of folders for each TV Series, eac... | TITLE:
Fastest method of checking if multiple different strings are a substring of a 2nd string
QUESTION:
Context: I'm creating a program which will sort and rename my media files which are named e.g. The.Office.s04e03.DIVX.WaREZKiNG.avi into an organized folder structure, which will consist of a list of folders for e... | [
"substring",
"match"
] | 0 | 0 | 209 | 2 | 0 | 2011-06-07T06:23:29.233000 | 2011-06-07T06:30:29.170000 |
6,261,335 | 6,299,123 | how to parse remote xml file with javascript/jQuery and phonegap? | For phonegap development: is it possible to fetch remote data for phonegape? is it possible to fetch remote json/xml file using ajax/jquery? XmlHttpRequest can fetch remote xml file? also any suggestion for it or important link. | Ajax works no different that it does else where execept that cross domain calls are ok with phonegap, see my other answer Example of jquery ajax call @ http://api.jquery.com/jQuery.ajax/ Parsing xml with javascript @ http://www.w3schools.com/xml/xml_parser.asp $.ajax({ url: "test.html", context: document.body, success:... | how to parse remote xml file with javascript/jQuery and phonegap? For phonegap development: is it possible to fetch remote data for phonegape? is it possible to fetch remote json/xml file using ajax/jquery? XmlHttpRequest can fetch remote xml file? also any suggestion for it or important link. | TITLE:
how to parse remote xml file with javascript/jQuery and phonegap?
QUESTION:
For phonegap development: is it possible to fetch remote data for phonegape? is it possible to fetch remote json/xml file using ajax/jquery? XmlHttpRequest can fetch remote xml file? also any suggestion for it or important link.
ANSWER... | [
"javascript",
"jquery",
"android",
"ajax",
"cordova"
] | 1 | 3 | 5,165 | 1 | 0 | 2011-06-07T06:25:43.917000 | 2011-06-09T20:52:58.013000 |
6,261,336 | 6,261,357 | Can I load a page with an HTML 5 Doctype into a frame on a page with a Frameset Doctype? | I have a main frameset page, which uses the FRAMESET doctype..Now this has 3 frames inside it.. Now for the 2nd frame, I want to use some HTML5 code ()...So guess I'll have to use the doctype Now my question is; can both these doctypes co-exist, which means can I declare FRAMESET doctype for the main frameset page and ... | Doctypes are specific to documents and each document has its own independent doctype. Having a different doctype in each frame is perfectly valid, and having the doctype of the frameset be different from the doctype of the frames is not only valid, it's impossible for it to be otherwise. Whether it's HTML 5 doesn't rea... | Can I load a page with an HTML 5 Doctype into a frame on a page with a Frameset Doctype? I have a main frameset page, which uses the FRAMESET doctype..Now this has 3 frames inside it.. Now for the 2nd frame, I want to use some HTML5 code ()...So guess I'll have to use the doctype Now my question is; can both these doct... | TITLE:
Can I load a page with an HTML 5 Doctype into a frame on a page with a Frameset Doctype?
QUESTION:
I have a main frameset page, which uses the FRAMESET doctype..Now this has 3 frames inside it.. Now for the 2nd frame, I want to use some HTML5 code ()...So guess I'll have to use the doctype Now my question is; c... | [
"javascript",
"html",
"doctype",
"frames"
] | 1 | 2 | 1,522 | 3 | 0 | 2011-06-07T06:25:46.630000 | 2011-06-07T06:29:27.343000 |
6,261,337 | 6,261,547 | Asp.Net MVC a lot of constants to handle controller/action redirections | Is it just me or has anyone else been annoyed by the fact that we have to use a lot of constants to handle redirections from one action to another across different controllers. I have tried to implement a reflection based approch to tackle this issue, but was wondering how others have approached this ( If you have seen... | Check out MVCContrib library, link below addresses exactly the issue you're dealing with...it's been around since MVC v1. http://mvccontrib.codeplex.com/wikipage?title=RedirectToAction&referringTitle=Documentation It's also on nuget, so it should be easy to give it a spin. http://nuget.org/List/Packages/MvcContrib.Mvc3... | Asp.Net MVC a lot of constants to handle controller/action redirections Is it just me or has anyone else been annoyed by the fact that we have to use a lot of constants to handle redirections from one action to another across different controllers. I have tried to implement a reflection based approch to tackle this iss... | TITLE:
Asp.Net MVC a lot of constants to handle controller/action redirections
QUESTION:
Is it just me or has anyone else been annoyed by the fact that we have to use a lot of constants to handle redirections from one action to another across different controllers. I have tried to implement a reflection based approch ... | [
"c#",
"asp.net-mvc",
"constants"
] | 2 | 2 | 1,663 | 4 | 0 | 2011-06-07T06:25:48.987000 | 2011-06-07T06:48:28.807000 |
6,261,342 | 6,261,453 | Why do big sites use 'bad practices'? | I often see articles, posts and comments something like: globals are bad in javascript script tags should be at bottom of page CSS should be in external files and at the top of page scripts should be in external files, not plain script-tags. etc. I've looked up the HTML source of some big sites and have noticed that th... | There are quite a few separate issues here. What you see when you "view source" is not usually what they develop with. It's usually a compressed / optimised form generated from "source" code. Claims about what is "best practice" are necessarily generic, and don't apply to all scenarios (especially if you're a big site ... | Why do big sites use 'bad practices'? I often see articles, posts and comments something like: globals are bad in javascript script tags should be at bottom of page CSS should be in external files and at the top of page scripts should be in external files, not plain script-tags. etc. I've looked up the HTML source of s... | TITLE:
Why do big sites use 'bad practices'?
QUESTION:
I often see articles, posts and comments something like: globals are bad in javascript script tags should be at bottom of page CSS should be in external files and at the top of page scripts should be in external files, not plain script-tags. etc. I've looked up th... | [
"javascript",
"html",
"css"
] | 8 | 18 | 418 | 3 | 0 | 2011-06-07T06:26:47.627000 | 2011-06-07T06:37:54.913000 |
6,261,346 | 6,261,421 | Can PHP write html command to another file? | I have one question to ask you. I have 2 PHP files first one is index.php and another one is body.php index.php contain HTML template like and body.php query data from database(such as name, nickname, age). I need body.php to change tag or add more tag in index.php How should i do in PHP command? thanks | In your example, body.php can have any HTML output you need. The output of body.php will be included in your final output. If you need to make the final output of index.php dependent on the body.php file, (for example to insert a title) you can load your content into variables, which can be outputted later. | Can PHP write html command to another file? I have one question to ask you. I have 2 PHP files first one is index.php and another one is body.php index.php contain HTML template like and body.php query data from database(such as name, nickname, age). I need body.php to change tag or add more tag in index.php How should... | TITLE:
Can PHP write html command to another file?
QUESTION:
I have one question to ask you. I have 2 PHP files first one is index.php and another one is body.php index.php contain HTML template like and body.php query data from database(such as name, nickname, age). I need body.php to change tag or add more tag in in... | [
"php",
"html"
] | 2 | 4 | 475 | 5 | 0 | 2011-06-07T06:27:21.057000 | 2011-06-07T06:35:15.180000 |
6,261,349 | 6,261,729 | How do I show the References folder in Solution Explorer without selecting 'Show All Files' in a VB.NET project? | As I compare many C# example projects to my VB.NET projects, I see that the References folder shows in the Solution Explorer without having to select "Show All Files". Is it possible to have this for a VB.NET project as well? I find that it would be very helpful to have this folder displayed without having to see all t... | I guess I will have to definitively crush your dream. Sorry. It has been a decision by Microsoft to remove this from the default view to reduce the 'clutter'. However, your 'Show All Files' setting will persist when you save your project. So if you show all files once and then save, then it will always be on. You can a... | How do I show the References folder in Solution Explorer without selecting 'Show All Files' in a VB.NET project? As I compare many C# example projects to my VB.NET projects, I see that the References folder shows in the Solution Explorer without having to select "Show All Files". Is it possible to have this for a VB.NE... | TITLE:
How do I show the References folder in Solution Explorer without selecting 'Show All Files' in a VB.NET project?
QUESTION:
As I compare many C# example projects to my VB.NET projects, I see that the References folder shows in the Solution Explorer without having to select "Show All Files". Is it possible to hav... | [
"visual-studio",
"reference",
"projects-and-solutions",
"solution"
] | 33 | 38 | 44,057 | 4 | 0 | 2011-06-07T06:28:14.087000 | 2011-06-07T07:09:22.877000 |
6,261,350 | 6,264,753 | Create commandButton in JSF using loop? | for an example in an array there is Edit --> #{testBean.edit} Delete --> #{testBean.delete} Copy --> #{testBean.copy} is it possible to create commandbutton using loop or something for(i=0;i<=array.length;i++) { print ' ' } so the output shld be like | That's only possible if you change the collection (map?) to look something like Edit --> edit Delete --> delete Copy --> copy E.g. Map buttons = new LinkedHashMap (); buttons.put("Edit", "edit"); buttons.put("Delete", "delete"); buttons.put("Copy", "copy"); You can then loop over it as follows: As an alternative, you c... | Create commandButton in JSF using loop? for an example in an array there is Edit --> #{testBean.edit} Delete --> #{testBean.delete} Copy --> #{testBean.copy} is it possible to create commandbutton using loop or something for(i=0;i<=array.length;i++) { print ' ' } so the output shld be like | TITLE:
Create commandButton in JSF using loop?
QUESTION:
for an example in an array there is Edit --> #{testBean.edit} Delete --> #{testBean.delete} Copy --> #{testBean.copy} is it possible to create commandbutton using loop or something for(i=0;i<=array.length;i++) { print ' ' } so the output shld be like
ANSWER:
Th... | [
"java",
"jsf",
"loops"
] | 0 | 1 | 2,123 | 2 | 0 | 2011-06-07T06:28:17.410000 | 2011-06-07T11:51:36.537000 |
6,261,353 | 6,277,713 | T4 append output to existing file | Is it possible to make a T4 template output to be merged with an existing file? For example, if a T4 template generates localization resource XML files, is it possible to merge them in some existing resource file? | You can get access to the underlying string builder the the T4 uses thought the GenerationEnvironment property. So by adding something like the following to your T4 you should be able to get a workable solution; <#@ template debug="false" hostspecific="false" language="C#" #> <#@ output extension=".txt" #> <#@ Import N... | T4 append output to existing file Is it possible to make a T4 template output to be merged with an existing file? For example, if a T4 template generates localization resource XML files, is it possible to merge them in some existing resource file? | TITLE:
T4 append output to existing file
QUESTION:
Is it possible to make a T4 template output to be merged with an existing file? For example, if a T4 template generates localization resource XML files, is it possible to merge them in some existing resource file?
ANSWER:
You can get access to the underlying string b... | [
".net",
"code-generation",
"t4",
"t4-toolbox"
] | 12 | 13 | 2,462 | 1 | 0 | 2011-06-07T06:28:49.440000 | 2011-06-08T11:02:41.240000 |
6,261,365 | 6,261,533 | Is it possible to read .so file in Android? | I am new to Android and I have one project which contains an.so file. In one.java file, this lib is used and I want to read that.so file. | You will have to put the.so file in the lib folder. Then access it using the demo function as shown below: public static boolean loadNativeLibrary() {
try {
Log.i(TAG, "Attempting to load library: " + LIBRARY_NAME); System.loadLibrary(LIBRARY_NAME);
} catch (Exception e) { Log.i(TAG, "Exception loading native librar... | Is it possible to read .so file in Android? I am new to Android and I have one project which contains an.so file. In one.java file, this lib is used and I want to read that.so file. | TITLE:
Is it possible to read .so file in Android?
QUESTION:
I am new to Android and I have one project which contains an.so file. In one.java file, this lib is used and I want to read that.so file.
ANSWER:
You will have to put the.so file in the lib folder. Then access it using the demo function as shown below: publ... | [
"android"
] | 7 | 6 | 32,076 | 6 | 0 | 2011-06-07T06:30:45.210000 | 2011-06-07T06:47:08.533000 |
6,261,368 | 6,261,911 | When Creating/Updating an entity, Should I Pass object to business logic or object values? | When working with an entity, which of the following is recommended? (The following code is in UI Layer. UserManager is in Business Layer) 1- protected void btnReturn_Click(object sender, EventArgs e) { var user = new User(); user.Name = txtName.Text; user.Address = txtAddress.Text;... new UserManager().AddUser(User); }... | Choose the first option. Later, when you find out that you have to add n+1 fields to the user form, you can just update the user class to handle the new data. It is nearly always a pain to add those fields as parameters, as you should update every single call to that method to include those fields, even if only one of ... | When Creating/Updating an entity, Should I Pass object to business logic or object values? When working with an entity, which of the following is recommended? (The following code is in UI Layer. UserManager is in Business Layer) 1- protected void btnReturn_Click(object sender, EventArgs e) { var user = new User(); user... | TITLE:
When Creating/Updating an entity, Should I Pass object to business logic or object values?
QUESTION:
When working with an entity, which of the following is recommended? (The following code is in UI Layer. UserManager is in Business Layer) 1- protected void btnReturn_Click(object sender, EventArgs e) { var user ... | [
"architecture",
"business-logic",
"separation-of-concerns",
"business-logic-layer",
"multi-layer"
] | 1 | 1 | 98 | 3 | 0 | 2011-06-07T06:30:53.773000 | 2011-06-07T07:28:56.907000 |
6,261,371 | 6,263,724 | Getting all users with a Role in Liferay | I'm new to Liferay development in general, so feel free to point out if I'm going about stuff totally the wrong way. I'm trying to get a DynamicQuery object of all users within a certain group (I'll use this object to further filter another query I'll do against the message board). The User interface seems to have a ro... | The easiest way to access liferays own objects is by using the XXXServiceUtil classes (e.g. RoleServiceUtil.getUserRoles(userId) ). Thus you rarely have to deal with any SQL directly. Either the RoleServiceUtil or UserServiceUtil might have what you need. | Getting all users with a Role in Liferay I'm new to Liferay development in general, so feel free to point out if I'm going about stuff totally the wrong way. I'm trying to get a DynamicQuery object of all users within a certain group (I'll use this object to further filter another query I'll do against the message boar... | TITLE:
Getting all users with a Role in Liferay
QUESTION:
I'm new to Liferay development in general, so feel free to point out if I'm going about stuff totally the wrong way. I'm trying to get a DynamicQuery object of all users within a certain group (I'll use this object to further filter another query I'll do agains... | [
"java",
"liferay",
"liferay-6",
"dynamicquery"
] | 6 | 7 | 15,675 | 3 | 0 | 2011-06-07T06:31:01.177000 | 2011-06-07T10:11:14.537000 |
6,261,375 | 6,261,438 | How to declare data members that are objects of any type in a class | In this piece I'm trying to declare in Class B a list that can hold objects of Class A of any type, such as A, A, A. I intend to add A objects to the list during runtime: #include template class A {};
class B { template std::list *> objects; }; It seems like making a list like this should work but compiling it gives a... | That's just not how C++ works. If you want to group different objects together, they need to have at least some relation. Being instantiations of the same class template doesn't imply that they are related, they're completely distinct types. If you want a list of A * s, better make a list of base-class pointers and for... | How to declare data members that are objects of any type in a class In this piece I'm trying to declare in Class B a list that can hold objects of Class A of any type, such as A, A, A. I intend to add A objects to the list during runtime: #include template class A {};
class B { template std::list *> objects; }; It see... | TITLE:
How to declare data members that are objects of any type in a class
QUESTION:
In this piece I'm trying to declare in Class B a list that can hold objects of Class A of any type, such as A, A, A. I intend to add A objects to the list during runtime: #include template class A {};
class B { template std::list *> ... | [
"c++",
"templates"
] | 13 | 16 | 13,740 | 5 | 0 | 2011-06-07T06:31:12.107000 | 2011-06-07T06:36:30.573000 |
6,261,377 | 6,271,037 | Dynamically Load UserControl using MVVM Light Toolkit | I searched this site and i found 2 Links how to load wpf usercontrol in MVVM pattern MVVM-Light: Load UserControl into Window but still i cant find the answer to my problem and this link MVVM-Light Locator Pattern and Reusable UserControl i Didn't Understood.... so here is i am stating my problem which might help other... | You could try defining a DataTemplate for each type in the TreeView's ItemsSource and instead of having a specific UserControl on the right side, just bind to the TreeView's SelectedItem. Alternatively, you could use a DataTemplateSelector. Edited for OP's Edit Did you do this? MainWindow has TreeView whose ItemsSource... | Dynamically Load UserControl using MVVM Light Toolkit I searched this site and i found 2 Links how to load wpf usercontrol in MVVM pattern MVVM-Light: Load UserControl into Window but still i cant find the answer to my problem and this link MVVM-Light Locator Pattern and Reusable UserControl i Didn't Understood.... so ... | TITLE:
Dynamically Load UserControl using MVVM Light Toolkit
QUESTION:
I searched this site and i found 2 Links how to load wpf usercontrol in MVVM pattern MVVM-Light: Load UserControl into Window but still i cant find the answer to my problem and this link MVVM-Light Locator Pattern and Reusable UserControl i Didn't ... | [
"wpf",
"data-binding",
"mvvm-light",
"dynamic-usercontrols"
] | 1 | 1 | 2,721 | 1 | 0 | 2011-06-07T06:31:29.267000 | 2011-06-07T20:12:29.977000 |
6,261,379 | 6,261,569 | Text to speech problem with incoming call in Android | whether there is anyway to stop the TTS when a incoming call comes to my phone? via code? | You can see the incoming call notification from link http://peacemoon.wordpress.com/2009/08/06/android-listening-to-incomingoutgoing-phone-calls/ and stop the TTS as below public void onDestroy() { // Don't forget to shutdown! if (mTts!= null) { mTts.stop(); mTts.shutdown(); }
super.onDestroy(); } where mts is mTts = ... | Text to speech problem with incoming call in Android whether there is anyway to stop the TTS when a incoming call comes to my phone? via code? | TITLE:
Text to speech problem with incoming call in Android
QUESTION:
whether there is anyway to stop the TTS when a incoming call comes to my phone? via code?
ANSWER:
You can see the incoming call notification from link http://peacemoon.wordpress.com/2009/08/06/android-listening-to-incomingoutgoing-phone-calls/ and ... | [
"android",
"text-to-speech"
] | 2 | 1 | 1,469 | 1 | 0 | 2011-06-07T06:31:50.793000 | 2011-06-07T06:51:42.767000 |
6,261,380 | 6,261,417 | Using jQuery to find which row was clicked in a table | I've been following a guide on expandable rows and now I'd like to know what row has been clicked in my table. The table has this format: Parent --child --child Parent etc. When a child row is clicked, I'd like to know what text is in the cell (only the text, not the html or more information). How do I retrieve that da... | Try simply using $(this).find('td:first').text() if I understand your question correctly. | Using jQuery to find which row was clicked in a table I've been following a guide on expandable rows and now I'd like to know what row has been clicked in my table. The table has this format: Parent --child --child Parent etc. When a child row is clicked, I'd like to know what text is in the cell (only the text, not th... | TITLE:
Using jQuery to find which row was clicked in a table
QUESTION:
I've been following a guide on expandable rows and now I'd like to know what row has been clicked in my table. The table has this format: Parent --child --child Parent etc. When a child row is clicked, I'd like to know what text is in the cell (onl... | [
"jquery",
"function",
"html-table",
"click",
"row"
] | 0 | 1 | 965 | 3 | 0 | 2011-06-07T06:31:51.013000 | 2011-06-07T06:34:45.067000 |
6,261,392 | 6,261,502 | Printing all global variables/local variables? | How can I print all global variables/local variables? Is that possible in gdb? | Type info variables to list "All global and static variable names" (huge list. Type info locals to list "Local variables of current stack frame" (names and values), including static variables in that function. Type info args to list "Arguments of the current stack frame" (names and values). | Printing all global variables/local variables? How can I print all global variables/local variables? Is that possible in gdb? | TITLE:
Printing all global variables/local variables?
QUESTION:
How can I print all global variables/local variables? Is that possible in gdb?
ANSWER:
Type info variables to list "All global and static variable names" (huge list. Type info locals to list "Local variables of current stack frame" (names and values), in... | [
"c",
"variables",
"gdb",
"global-variables"
] | 434 | 621 | 429,851 | 3 | 0 | 2011-06-07T06:32:32.447000 | 2011-06-07T06:44:44.627000 |
6,261,396 | 6,261,437 | Passing object in javascript function | Say I already have many objects, like obj1, obj2,.....obj30..... Now I am trying to write a function like this: function blar(N){ do something to objN } blar('4'); So far it seems that the only way to do it is function blar(thisObj){ do something to thisObj } blar(obj4); I wonder what is the right way to pass the N suc... | Use square bracket notation. window['obj' + N]; This depends on them dangling off the window object and not being nicely scoped though. … but if you have a bunch of objects, which are identified by being the same except for a number, then you should probably be storing them in an array in the first place. Then you woul... | Passing object in javascript function Say I already have many objects, like obj1, obj2,.....obj30..... Now I am trying to write a function like this: function blar(N){ do something to objN } blar('4'); So far it seems that the only way to do it is function blar(thisObj){ do something to thisObj } blar(obj4); I wonder w... | TITLE:
Passing object in javascript function
QUESTION:
Say I already have many objects, like obj1, obj2,.....obj30..... Now I am trying to write a function like this: function blar(N){ do something to objN } blar('4'); So far it seems that the only way to do it is function blar(thisObj){ do something to thisObj } blar... | [
"javascript",
"object"
] | 2 | 2 | 2,242 | 3 | 0 | 2011-06-07T06:32:52.467000 | 2011-06-07T06:36:20.553000 |
6,261,398 | 6,261,474 | auto fill authentication script | Hey guys I have a very interesting question about some basis of DOM. I have hosted a website recently but the host is password protected and you have to authenticate to access my website:D Do anybody know a script that tells the browsers about authentication(username and password). you can check my website as demo that... | your domain www.targetmodel.co.cc is not a real domain name, it's just use iframes to show your acttual website. So try to configure your domain name to open website: http://prefillUsername:prefillPassword@fueled.co/demo/users/aniltiwari/new/ it should help you Good luck | auto fill authentication script Hey guys I have a very interesting question about some basis of DOM. I have hosted a website recently but the host is password protected and you have to authenticate to access my website:D Do anybody know a script that tells the browsers about authentication(username and password). you c... | TITLE:
auto fill authentication script
QUESTION:
Hey guys I have a very interesting question about some basis of DOM. I have hosted a website recently but the host is password protected and you have to authenticate to access my website:D Do anybody know a script that tells the browsers about authentication(username an... | [
"authentication",
"dom"
] | 0 | 0 | 302 | 1 | 0 | 2011-06-07T06:33:05.130000 | 2011-06-07T06:40:55.410000 |
6,261,401 | 6,261,999 | PHP digital sign a PDF file using USB token | I want to sign the PDF using client certificate. It only work when I got the file is stored in my PC. Since I want to sign my PDF by using the certificate stored inside a USB token, what should I do to achieve that. I tried to search from the internet, but all I got are mostly using JAVA. Is there anyway to achieve the... | Are you talking about a PHP application that's running on a web server, and the USB token being attached to your client machine? Then forget it; it won't work because you cannot access the client's USB port from your web server via the client's browser without further plugins. The java apps you're talking about are run... | PHP digital sign a PDF file using USB token I want to sign the PDF using client certificate. It only work when I got the file is stored in my PC. Since I want to sign my PDF by using the certificate stored inside a USB token, what should I do to achieve that. I tried to search from the internet, but all I got are mostl... | TITLE:
PHP digital sign a PDF file using USB token
QUESTION:
I want to sign the PDF using client certificate. It only work when I got the file is stored in my PC. Since I want to sign my PDF by using the certificate stored inside a USB token, what should I do to achieve that. I tried to search from the internet, but a... | [
"php",
"pdf",
"digital-signature"
] | 2 | 0 | 4,139 | 2 | 0 | 2011-06-07T06:33:13.100000 | 2011-06-07T07:37:21.510000 |
6,261,412 | 6,261,436 | php foreach : each link in separate variable | I get some links from feed with this code on simplepie: if ($check): foreach ($feed->get_items(0,3) as $item): $links = $item->get_permalink(); echo $links; endforeach; endif; thats result me: http://link1.... http://link2.... http://link3.... i want to put each link in separate variable like: $links1 = 'http://link1..... | $i = 0; foreach($feed->get_items(0,3) as $item)) { ${'link'. ++$i} = $item->get_permalink(); } | php foreach : each link in separate variable I get some links from feed with this code on simplepie: if ($check): foreach ($feed->get_items(0,3) as $item): $links = $item->get_permalink(); echo $links; endforeach; endif; thats result me: http://link1.... http://link2.... http://link3.... i want to put each link in sepa... | TITLE:
php foreach : each link in separate variable
QUESTION:
I get some links from feed with this code on simplepie: if ($check): foreach ($feed->get_items(0,3) as $item): $links = $item->get_permalink(); echo $links; endforeach; endif; thats result me: http://link1.... http://link2.... http://link3.... i want to put... | [
"php",
"variables",
"foreach"
] | 0 | 3 | 357 | 3 | 0 | 2011-06-07T06:34:24.410000 | 2011-06-07T06:36:13.733000 |
6,261,415 | 6,261,475 | converting javascript regex to php preg_match | I'm building a contact form using PHP with jQuery validation and I wanted them both to have the same email pattern. I looked into the Validation plugin source code and found this: /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\u... | I agree with Alex - don't use a regex for this. But for completeness' sake, this is what this (horrible) regex would look like in PHP: /^((([a-z]|\d|[!#$%&\'*+\-\/=?\^_`{|}~]|[\x{00A0}-\x{D7FF}\x{F900}-\x{FDCF}\x{FDF0}-\x{FFEF}])+(\.([a-z]|\d|[!#$%&\'*+\-\/=?\^_`{|}~]|[\x{00A0}-\x{D7FF}\x{F900}-\x{FDCF}\x{FDF0}-\x{FFEF... | converting javascript regex to php preg_match I'm building a contact form using PHP with jQuery validation and I wanted them both to have the same email pattern. I looked into the Validation plugin source code and found this: /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-... | TITLE:
converting javascript regex to php preg_match
QUESTION:
I'm building a contact form using PHP with jQuery validation and I wanted them both to have the same email pattern. I looked into the Validation plugin source code and found this: /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF... | [
"regex",
"validation",
"email",
"preg-match",
"rfc2822"
] | 2 | 1 | 820 | 3 | 0 | 2011-06-07T06:34:29.397000 | 2011-06-07T06:40:58.123000 |
6,261,420 | 6,263,054 | Access Denied Message for new domain users in Sharepoint 2007 | I have a problem with the sharepoint server, I added 2 new domain users and they cannot access the sharepoint site,they're getting the 'Access Denied' msg,although all users are given permissions to access the main website by default as soon as they're added to the domain Any suggestions?? or settings that i can check?... | First of all, check that they have a clean IE cache, have restarted their browser etc. Check that they don't have an incorrect stored user name and password against the site host name on their Windows profile. Ensure that the permissions on the site in question haven't been amended without your knowledge. Ensure that t... | Access Denied Message for new domain users in Sharepoint 2007 I have a problem with the sharepoint server, I added 2 new domain users and they cannot access the sharepoint site,they're getting the 'Access Denied' msg,although all users are given permissions to access the main website by default as soon as they're added... | TITLE:
Access Denied Message for new domain users in Sharepoint 2007
QUESTION:
I have a problem with the sharepoint server, I added 2 new domain users and they cannot access the sharepoint site,they're getting the 'Access Denied' msg,although all users are given permissions to access the main website by default as soo... | [
"sharepoint",
"sharepoint-2007"
] | 3 | 3 | 2,989 | 3 | 0 | 2011-06-07T06:35:13.137000 | 2011-06-07T09:13:44.293000 |
6,261,427 | 6,265,682 | How to run a process as an administrator from Win32 \C++ | I have a console application written in c#, which downloads a file to program files. So of course it needs to run as admin. This program gets called from a Win32 C++ application which almost certainly is not running as administrator What are my options. How can I get this to work on UAC and non UAC enabled boxes ( I do... | On a machine with UAC you need to include a manifest resource to specify that you want the process to run as administrator. On a machine without UAC you will simply have to instruct your users that they need to run it as a user in the administrators group. Almost all users of XP (the version that you will most commonly... | How to run a process as an administrator from Win32 \C++ I have a console application written in c#, which downloads a file to program files. So of course it needs to run as admin. This program gets called from a Win32 C++ application which almost certainly is not running as administrator What are my options. How can I... | TITLE:
How to run a process as an administrator from Win32 \C++
QUESTION:
I have a console application written in c#, which downloads a file to program files. So of course it needs to run as admin. This program gets called from a Win32 C++ application which almost certainly is not running as administrator What are my ... | [
"winapi"
] | 1 | 2 | 7,559 | 2 | 0 | 2011-06-07T06:35:32.287000 | 2011-06-07T13:10:39.817000 |
6,261,430 | 6,261,630 | PHP: Migrating From oop without Framework into Zend php frameword | I have completed my website couple months ago, in php 5 (full oop), and now I'm think of migrating into PHP framework (Zend looks fine). My question is, how hard is it to migrate from oop to any php framework? What is the easiest Framework i can migrate to? Noting that Functionality of my website depends on: A lot of M... | How hard is to migrate... is a good questions... A little example: You can write your own queries... You can write queries in a "ZF-like" style... then if your OOP Classes are well formed (I mean well formed for use them into the ZF enviroment) your migration will be quick and easy... but you also have to understand ZF... | PHP: Migrating From oop without Framework into Zend php frameword I have completed my website couple months ago, in php 5 (full oop), and now I'm think of migrating into PHP framework (Zend looks fine). My question is, how hard is it to migrate from oop to any php framework? What is the easiest Framework i can migrate ... | TITLE:
PHP: Migrating From oop without Framework into Zend php frameword
QUESTION:
I have completed my website couple months ago, in php 5 (full oop), and now I'm think of migrating into PHP framework (Zend looks fine). My question is, how hard is it to migrate from oop to any php framework? What is the easiest Framew... | [
"php",
"mysql",
"oop",
"forms",
"frameworks"
] | 2 | 2 | 399 | 3 | 0 | 2011-06-07T06:35:46.760000 | 2011-06-07T06:58:01.220000 |
6,261,435 | 6,261,538 | position:absolute; not sticking element to base of parent's scrollable height | Can you look at jsFiddle example and tell me why my green won't stick to the bottom of its parent's scrollable height? I'm sure it's something simple. Thanks in advance! | If the answer to my comment is yes, than give you body tag a position of relative body { position: relative; } If some other element is the parent, just replace body with that element. With you given code, the green div is not sticking to the bottom because it is absolutely positioned and does not have any relative or ... | position:absolute; not sticking element to base of parent's scrollable height Can you look at jsFiddle example and tell me why my green won't stick to the bottom of its parent's scrollable height? I'm sure it's something simple. Thanks in advance! | TITLE:
position:absolute; not sticking element to base of parent's scrollable height
QUESTION:
Can you look at jsFiddle example and tell me why my green won't stick to the bottom of its parent's scrollable height? I'm sure it's something simple. Thanks in advance!
ANSWER:
If the answer to my comment is yes, than give... | [
"css",
"position",
"positioning",
"css-position"
] | 0 | 1 | 2,645 | 3 | 0 | 2011-06-07T06:36:13.770000 | 2011-06-07T06:47:38.060000 |
6,261,441 | 6,261,566 | StringBuilder namespace, c#, visual studio 2010 | What namespace does StringBuilder belong to? I typed: using System.Text.StringBuilder; But the intellisense, won't let me type StringBuilder. | Its very easy to determine in which namespace.NET class lives. you have two ways: Find interesting class in MSDN and in Inheritance Hierarchy section you can see FULL class name. Full class name means that before class name would be its namespace. For StringBuilder full class name would face as System.Text.StringBuilde... | StringBuilder namespace, c#, visual studio 2010 What namespace does StringBuilder belong to? I typed: using System.Text.StringBuilder; But the intellisense, won't let me type StringBuilder. | TITLE:
StringBuilder namespace, c#, visual studio 2010
QUESTION:
What namespace does StringBuilder belong to? I typed: using System.Text.StringBuilder; But the intellisense, won't let me type StringBuilder.
ANSWER:
Its very easy to determine in which namespace.NET class lives. you have two ways: Find interesting clas... | [
"c#",
"visual-studio-2010",
"stringbuilder"
] | 3 | 9 | 32,602 | 8 | 0 | 2011-06-07T06:36:52.070000 | 2011-06-07T06:51:25.983000 |
6,261,452 | 6,264,318 | why isn't this jsf/ajax code submitting the values? | I'm embedding here a simplified version of a code that is not working for me. What happens here is that there are 2 forms. The first form contains an ajaxified (Using ) The second form contains a form with values. When the is pressed, the values in the second form are supposed to be submitted. What happens in practice ... | The commandlink/button has to go in the same form as where the data of interest is in. If that's not an option due to some design or business restrictions, then you need a second commandlink/button. First move the original commandlink/button back in the right form, give it an id and hide it using CSS display: none;. Th... | why isn't this jsf/ajax code submitting the values? I'm embedding here a simplified version of a code that is not working for me. What happens here is that there are 2 forms. The first form contains an ajaxified (Using ) The second form contains a form with values. When the is pressed, the values in the second form are... | TITLE:
why isn't this jsf/ajax code submitting the values?
QUESTION:
I'm embedding here a simplified version of a code that is not working for me. What happens here is that there are 2 forms. The first form contains an ajaxified (Using ) The second form contains a form with values. When the is pressed, the values in t... | [
"html",
"ajax",
"jsf",
"jsf-2"
] | 1 | 3 | 905 | 1 | 0 | 2011-06-07T06:37:46.823000 | 2011-06-07T11:10:16.307000 |
6,261,454 | 6,261,580 | reading values from text file | Please explain the compiler behaviour in the below code snippet. Consider the text file contains the following text TOBE and the corresponding byte values are 84, 79, 66, 69 for(int i=0;i<4;i++){ byte inByte=(byte) buffInputFile.read(); system.out.println(inByte); } When i run this snippet i get the following output 84... | I suspect you've got a debugger watch expression of buffInputFile.read() - which is reading the value from the stream in order to display it... but that value then isn't available when the method is executed as part of the code. You've read that byte from the stream, so the next call to read() will read the next byte, ... | reading values from text file Please explain the compiler behaviour in the below code snippet. Consider the text file contains the following text TOBE and the corresponding byte values are 84, 79, 66, 69 for(int i=0;i<4;i++){ byte inByte=(byte) buffInputFile.read(); system.out.println(inByte); } When i run this snippet... | TITLE:
reading values from text file
QUESTION:
Please explain the compiler behaviour in the below code snippet. Consider the text file contains the following text TOBE and the corresponding byte values are 84, 79, 66, 69 for(int i=0;i<4;i++){ byte inByte=(byte) buffInputFile.read(); system.out.println(inByte); } When ... | [
"java",
"filereader"
] | 0 | 3 | 235 | 2 | 0 | 2011-06-07T06:38:04.737000 | 2011-06-07T06:52:53.927000 |
6,261,456 | 6,261,471 | Layout orientation in code | I have this code in my application: LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT); and I just want to set the orientation of the LinearLayout to vertical. The equivalent in XML is: android:orientation="vertical" How can I do it in the code, without XML? | You can't change LinearLayout 's orientation using its LayoutParams. It can be done only with a LinearLayout object. LinearLayout layout = /*... */; layout.setOrientation(LinearLayout.VERTICAL); | Layout orientation in code I have this code in my application: LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT); and I just want to set the orientation of the LinearLayout to vertical. The equivalent in XML is: android:orientation="vertical" How can I do it in the code, witho... | TITLE:
Layout orientation in code
QUESTION:
I have this code in my application: LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(WRAP_CONTENT, WRAP_CONTENT); and I just want to set the orientation of the LinearLayout to vertical. The equivalent in XML is: android:orientation="vertical" How can I do it ... | [
"android",
"orientation",
"android-linearlayout"
] | 97 | 204 | 107,433 | 6 | 0 | 2011-06-07T06:38:12.637000 | 2011-06-07T06:40:36.417000 |
6,261,459 | 6,261,761 | Python object holding a dict() of objects | Here is a test case I've created for a problem I found out. For some reason the dict() 'l' in B() does not seem to hold the correct value. See the output below on my Linux 11.04 Ubuntu, python 2.7.1+. class A(): name = None b = None def __init__(self, name, bname, cname, dname): self.name = name print "A: name", name s... | It looks like you are trying to "declare" instance attributes at the class level. Class attributes have their own specific uses in Python, and it is wrong to put them there if you are not intending to ever use the class attributes class A(): name = None # Don't do this b = None # Don't do this def __init__(self, name, ... | Python object holding a dict() of objects Here is a test case I've created for a problem I found out. For some reason the dict() 'l' in B() does not seem to hold the correct value. See the output below on my Linux 11.04 Ubuntu, python 2.7.1+. class A(): name = None b = None def __init__(self, name, bname, cname, dname)... | TITLE:
Python object holding a dict() of objects
QUESTION:
Here is a test case I've created for a problem I found out. For some reason the dict() 'l' in B() does not seem to hold the correct value. See the output below on my Linux 11.04 Ubuntu, python 2.7.1+. class A(): name = None b = None def __init__(self, name, bn... | [
"python",
"object",
"dictionary",
"instance"
] | 0 | 1 | 2,966 | 2 | 0 | 2011-06-07T06:38:33.193000 | 2011-06-07T07:13:10.710000 |
6,261,460 | 6,262,637 | MVC: I need to understand the Model | I've been working with the MVC pattern for a while now, but I honestly don't feel like I truly understand how to work with and apply the "Model"... I mean, one could easily get away with using only the Controller and View and be just fine. I understand the concept of the Model, but I just don't feel comfortable applyin... | Look at it like this. When your client requests a page this is what happens (massively trimmed): He ends up at your controller The controller gets the necessary data from your model The controller then passes the data to the view which will create your HTML The controller sends the HTML back to the client So client -> ... | MVC: I need to understand the Model I've been working with the MVC pattern for a while now, but I honestly don't feel like I truly understand how to work with and apply the "Model"... I mean, one could easily get away with using only the Controller and View and be just fine. I understand the concept of the Model, but I... | TITLE:
MVC: I need to understand the Model
QUESTION:
I've been working with the MVC pattern for a while now, but I honestly don't feel like I truly understand how to work with and apply the "Model"... I mean, one could easily get away with using only the Controller and View and be just fine. I understand the concept o... | [
"asp.net-mvc",
"model-view-controller",
"coldfusion",
"model",
"coldfusion-8"
] | 7 | 4 | 355 | 6 | 0 | 2011-06-07T06:38:34.670000 | 2011-06-07T08:38:12.250000 |
6,261,462 | 6,262,890 | How to set Font of String Taken from Resource bundle in blackberry | I'm giving localization support in my app in blackberry.Now the problem is i want to use system font in my application but the hieght should be constant.Now i want to use Status.show method to show some string on the screen.The string is coming from the resource bundle. So kindly suggest how to set the font of that. Th... | public class DialogBox extends PopupScreen implements FieldChangeListener { private ButtonField okButton = new ButtonField("OK", ButtonField.CONSUME_CLICK); private static DialogBox dialog = null;
private DialogBox( String text) { super(new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManag... | How to set Font of String Taken from Resource bundle in blackberry I'm giving localization support in my app in blackberry.Now the problem is i want to use system font in my application but the hieght should be constant.Now i want to use Status.show method to show some string on the screen.The string is coming from the... | TITLE:
How to set Font of String Taken from Resource bundle in blackberry
QUESTION:
I'm giving localization support in my app in blackberry.Now the problem is i want to use system font in my application but the hieght should be constant.Now i want to use Status.show method to show some string on the screen.The string ... | [
"blackberry"
] | 0 | 0 | 417 | 2 | 0 | 2011-06-07T06:38:58.280000 | 2011-06-07T08:58:22.303000 |
6,261,466 | 6,264,157 | Primefaces: inputMask inside dataTable | I have found a strange behavior in p:inputMask if it is located inside a row in p:dataTable. It doesn't apply the mask! I have posted a question on the forum, but obtained no answer. I wonder if anybody has met this problem and if there is any workaround for it? Some code: Doesn't work: But the same code perfectly work... | You are using an older version of Primefaces that has a number of known issues with component dataTable integration as Matt Handy pointed out. You can try updating your Primefaces release with either 2.1, 2.2 or 2.2.1 release to see if this issue has been resolved. http://www.primefaces.org/downloads.html I couldn't fi... | Primefaces: inputMask inside dataTable I have found a strange behavior in p:inputMask if it is located inside a row in p:dataTable. It doesn't apply the mask! I have posted a question on the forum, but obtained no answer. I wonder if anybody has met this problem and if there is any workaround for it? Some code: Doesn't... | TITLE:
Primefaces: inputMask inside dataTable
QUESTION:
I have found a strange behavior in p:inputMask if it is located inside a row in p:dataTable. It doesn't apply the mask! I have posted a question on the forum, but obtained no answer. I wonder if anybody has met this problem and if there is any workaround for it? ... | [
"java",
"jsf",
"primefaces"
] | 2 | 2 | 3,213 | 2 | 0 | 2011-06-07T06:39:35.253000 | 2011-06-07T10:54:22.990000 |
6,261,469 | 6,261,524 | Not supported error | I have a method that accepts a date dtSince and a string component as parameters. I need to write an one-line linq query that searches for entries that occurred before dtSince and is of Component component (if specified). I have tried the following: var result = from items in MyAzureTable where items.Occured >= dtSince... | Try this: var result = from items in MyAzureTable where items.Occured >= dtSince && (component == null || items.Component == component) select items; | Not supported error I have a method that accepts a date dtSince and a string component as parameters. I need to write an one-line linq query that searches for entries that occurred before dtSince and is of Component component (if specified). I have tried the following: var result = from items in MyAzureTable where item... | TITLE:
Not supported error
QUESTION:
I have a method that accepts a date dtSince and a string component as parameters. I need to write an one-line linq query that searches for entries that occurred before dtSince and is of Component component (if specified). I have tried the following: var result = from items in MyAzu... | [
"c#",
"linq",
"linq-to-entities",
"azure",
"azure-table-storage"
] | 2 | 1 | 162 | 1 | 0 | 2011-06-07T06:39:50.903000 | 2011-06-07T06:46:40.077000 |
6,261,478 | 6,261,507 | Why is rails running a partial twice? | I am calling a partial in one of my views like so: <%= render:partial => 'events/attendees',:collection => @attendees %> the partial however is running twice for some reason...here is the partial: <% @attendees.each do |user| %> <%= link_to user.name, user %> <% end %> and i verified that rails is in fact running this ... | That's because one "loop" is from Rails (:collection means that Rails will render the partial for each item in the collection, in this case @attendees ) and one loop via your own partial. Change the partial to below (not sure about the relation between attendee/user, but here is a sample): <%= link_to attendee.name, at... | Why is rails running a partial twice? I am calling a partial in one of my views like so: <%= render:partial => 'events/attendees',:collection => @attendees %> the partial however is running twice for some reason...here is the partial: <% @attendees.each do |user| %> <%= link_to user.name, user %> <% end %> and i verifi... | TITLE:
Why is rails running a partial twice?
QUESTION:
I am calling a partial in one of my views like so: <%= render:partial => 'events/attendees',:collection => @attendees %> the partial however is running twice for some reason...here is the partial: <% @attendees.each do |user| %> <%= link_to user.name, user %> <% e... | [
"ruby-on-rails"
] | 3 | 8 | 1,020 | 1 | 0 | 2011-06-07T06:41:27.997000 | 2011-06-07T06:45:10.540000 |
6,261,480 | 6,261,509 | Handling Key Press Events in C# | I am developing an application in C#. Whenever someone presses keys like Ctrl + C or Ctrl + 1 etc, i want the application to capture them and perform some action based on the key combination that is pressed. What is the way of achieving that? | If you are looking for the windows application and want capture event on the windows form you can check this: How to capture shortcut keys in Visual Studio.NET | Handling Key Press Events in C# I am developing an application in C#. Whenever someone presses keys like Ctrl + C or Ctrl + 1 etc, i want the application to capture them and perform some action based on the key combination that is pressed. What is the way of achieving that? | TITLE:
Handling Key Press Events in C#
QUESTION:
I am developing an application in C#. Whenever someone presses keys like Ctrl + C or Ctrl + 1 etc, i want the application to capture them and perform some action based on the key combination that is pressed. What is the way of achieving that?
ANSWER:
If you are looking... | [
"c#"
] | 3 | 3 | 2,986 | 1 | 0 | 2011-06-07T06:41:43.130000 | 2011-06-07T06:45:12.730000 |
6,261,481 | 6,261,753 | Obtain cache files chrome extension | Is there a way to obtain/read cache files using a chrome extension without NPAPI but javascript? I have tried searching with NPAPI but I am unable to find a good tutorial on it or how can it be done using NPAPI. | Javascript is restricted from accessing the filesystem in all cases that I am aware of, though I admit that I don't know much about Chrome extensions. The only way I know of to access arbitrary files would be with an NPAPI plugin as part of the extension. If you decide to go this route, I suggest you look at FireBreath... | Obtain cache files chrome extension Is there a way to obtain/read cache files using a chrome extension without NPAPI but javascript? I have tried searching with NPAPI but I am unable to find a good tutorial on it or how can it be done using NPAPI. | TITLE:
Obtain cache files chrome extension
QUESTION:
Is there a way to obtain/read cache files using a chrome extension without NPAPI but javascript? I have tried searching with NPAPI but I am unable to find a good tutorial on it or how can it be done using NPAPI.
ANSWER:
Javascript is restricted from accessing the f... | [
"javascript",
"google-chrome",
"google-chrome-extension",
"npapi"
] | 2 | 1 | 596 | 1 | 0 | 2011-06-07T06:41:46.943000 | 2011-06-07T07:12:31.977000 |
6,261,482 | 6,261,577 | Changing the ViewController in NIB | I created a VIEW based application named ktemp1. and It generated.., ktempView1Controller.h and ktempView1Controller.m.., Later I created one more view.., say "ktemp2ViewController.h" and "ktemp2ViewController.m". I have a navigationController defined in AppDeligate with rootViewController set as ktempView1ViewControll... | In the standard apple template, you will find something like this in your AppDelegate didFinishLaunching. window.rootViewControlller = self.viewController; There should be only a single rootViewController in your application and you should not attempt to set it frm anywhere else than the AppDelegate. So what is relevan... | Changing the ViewController in NIB I created a VIEW based application named ktemp1. and It generated.., ktempView1Controller.h and ktempView1Controller.m.., Later I created one more view.., say "ktemp2ViewController.h" and "ktemp2ViewController.m". I have a navigationController defined in AppDeligate with rootViewContr... | TITLE:
Changing the ViewController in NIB
QUESTION:
I created a VIEW based application named ktemp1. and It generated.., ktempView1Controller.h and ktempView1Controller.m.., Later I created one more view.., say "ktemp2ViewController.h" and "ktemp2ViewController.m". I have a navigationController defined in AppDeligate ... | [
"iphone",
"objective-c",
"uiview",
"uinavigationcontroller",
"rootview"
] | 0 | 0 | 243 | 2 | 0 | 2011-06-07T06:42:03.593000 | 2011-06-07T06:52:28.867000 |
6,261,514 | 6,262,433 | Need regular expressions for username and password | I need help with two regular expressions (ASP.NET MVC 2 app). This is what I need: Username: must contain at least one letter; digits are allowed but not required cannot contain spaces no special characters are allowed, such as ~!@#$%^& underscore and "." (dot) is allowed cannot start with a space or underscore Passwor... | Regex for username: ^[a-zA-Z]\w+|[0-9][0-9_]*[a-zA-Z]+\w*$ another regex for username, look ahead is used.. ^(?=.*[a-zA-Z].*)[a-zA-Z0-9]\w*$ Paolo's regex for password is okay, but you should put ^ to the begining and $ to the end of the regex to specify begining and end of the capture.. UPDATE: it is stated that usern... | Need regular expressions for username and password I need help with two regular expressions (ASP.NET MVC 2 app). This is what I need: Username: must contain at least one letter; digits are allowed but not required cannot contain spaces no special characters are allowed, such as ~!@#$%^& underscore and "." (dot) is allo... | TITLE:
Need regular expressions for username and password
QUESTION:
I need help with two regular expressions (ASP.NET MVC 2 app). This is what I need: Username: must contain at least one letter; digits are allowed but not required cannot contain spaces no special characters are allowed, such as ~!@#$%^& underscore and... | [
"asp.net-mvc",
"regex"
] | 1 | 3 | 4,754 | 3 | 0 | 2011-06-07T06:45:50.387000 | 2011-06-07T08:20:24.487000 |
6,261,529 | 6,261,621 | working with Query String in GWT | I have to created a dynamic URLcontaining the user id and email parameters, which will direct to sign up form in my GWT application. I want to set and get the parameters in the query string. I have referred tp http://code.google.com/p/gwt-examples/source/browse/trunk/System/src/com/gawkat/gwt/system/client/global/Query... | Don't think there's a simple tokenized query string parser in GWT. But you can get the raw query string by using: String queryString = Window.Location.getQueryString(); Parse it any way you like. I use it like this to set debug flags etc.: boolean debugMode = Window.Location.getQueryString().indexOf("debug=true") >= 0;... | working with Query String in GWT I have to created a dynamic URLcontaining the user id and email parameters, which will direct to sign up form in my GWT application. I want to set and get the parameters in the query string. I have referred tp http://code.google.com/p/gwt-examples/source/browse/trunk/System/src/com/gawk... | TITLE:
working with Query String in GWT
QUESTION:
I have to created a dynamic URLcontaining the user id and email parameters, which will direct to sign up form in my GWT application. I want to set and get the parameters in the query string. I have referred tp http://code.google.com/p/gwt-examples/source/browse/trunk/S... | [
"gwt",
"query-string"
] | 5 | 2 | 6,368 | 4 | 0 | 2011-06-07T06:47:02.787000 | 2011-06-07T06:57:17.363000 |
6,261,546 | 6,261,719 | Android: One tune overlapping on the other tune in spinner | i have tried to play music via spinner and i have done it. Whenever i am selecting item on spinner selected tune should be played. That is working fine...But i got one big exception in my below code. i.e., while one tune for the selected item is playing and if I select another item that is also playing with the first t... | Create one MediaPlayer object at the top of your code (a member variable perhaps). Before you start your single mp object, check if it's null or not. EDIT - first call stop(), then call release(), then assign the new MediaPlayer object to your member variable. Oh, also, make sure your member variable is outside the met... | Android: One tune overlapping on the other tune in spinner i have tried to play music via spinner and i have done it. Whenever i am selecting item on spinner selected tune should be played. That is working fine...But i got one big exception in my below code. i.e., while one tune for the selected item is playing and if... | TITLE:
Android: One tune overlapping on the other tune in spinner
QUESTION:
i have tried to play music via spinner and i have done it. Whenever i am selecting item on spinner selected tune should be played. That is working fine...But i got one big exception in my below code. i.e., while one tune for the selected item... | [
"android",
"mp3",
"spinner"
] | 0 | 1 | 555 | 2 | 0 | 2011-06-07T06:48:22.647000 | 2011-06-07T07:08:31.260000 |
6,261,548 | 6,261,623 | Log 4j configuration for adding file name and line number | I am using Log4j for logging my application activity. In my local environment it was logging like Fiilename:linenumber: your logging message then I created archive and deploy in another environment then its logging without file name, can any one clear me which property if logger do this. thanks | Look at the documentation for PatternLayout. Note that figuring out file name and file number is slow (I guess it involves getting a stack trace and analyzing it). | Log 4j configuration for adding file name and line number I am using Log4j for logging my application activity. In my local environment it was logging like Fiilename:linenumber: your logging message then I created archive and deploy in another environment then its logging without file name, can any one clear me which p... | TITLE:
Log 4j configuration for adding file name and line number
QUESTION:
I am using Log4j for logging my application activity. In my local environment it was logging like Fiilename:linenumber: your logging message then I created archive and deploy in another environment then its logging without file name, can any on... | [
"java",
"log4j"
] | 4 | 3 | 8,041 | 2 | 0 | 2011-06-07T06:48:57.697000 | 2011-06-07T06:57:27.327000 |
6,261,573 | 6,261,914 | WP7 - Databind ListboxItem's IsEnabled Property | I have a Listbox with its ItemsSource property databound to a collection of objects. Each of the objects in the collection have an Enabled property which I would like to bind to their respective ListboxItem. I tried this approach: This results in AG_E_RUNTIME_MANAGED_UNKNOWN_ERROR failing on this line: How do I bind to... | Binding within property setters is a Silverlight 5 feature. Windows Phone 7 uses Silverlight 3, so this feature is not available. Windows Phone 7.1 uses Silverlight 4, so this feature is not even part of Windows Phone 7.5 (Mango). You have a long wait on your hands! There are some workarounds out there. See the blog po... | WP7 - Databind ListboxItem's IsEnabled Property I have a Listbox with its ItemsSource property databound to a collection of objects. Each of the objects in the collection have an Enabled property which I would like to bind to their respective ListboxItem. I tried this approach: This results in AG_E_RUNTIME_MANAGED_UNKN... | TITLE:
WP7 - Databind ListboxItem's IsEnabled Property
QUESTION:
I have a Listbox with its ItemsSource property databound to a collection of objects. Each of the objects in the collection have an Enabled property which I would like to bind to their respective ListboxItem. I tried this approach: This results in AG_E_RU... | [
"c#",
"xaml",
"data-binding",
"windows-phone-7"
] | 1 | 2 | 1,442 | 1 | 0 | 2011-06-07T06:52:04.577000 | 2011-06-07T07:29:02.513000 |
6,261,574 | 6,261,662 | Developing gems and using them in rails projects with bundler, is there a faster way? | I'm writing a gem for a Rails project and committing changes to its git repository. The Rails project refers to it in the Gemfile. gem "blah",:git => "blah",:branch => "development" The problem is one of patience. Every time I commit changes to the gem, I have to run "bundle update" (or at least bundle update blah ) to... | First: Use a path: gem "blah",:path => "~/Code/blah" Second (to answer Zabba's question-as-a-comment): No it's currently not possible to automatically reload your gems in development mode. You must restart your server each time you change your gem. A better way would be to generate your gem with a dummy application inc... | Developing gems and using them in rails projects with bundler, is there a faster way? I'm writing a gem for a Rails project and committing changes to its git repository. The Rails project refers to it in the Gemfile. gem "blah",:git => "blah",:branch => "development" The problem is one of patience. Every time I commit ... | TITLE:
Developing gems and using them in rails projects with bundler, is there a faster way?
QUESTION:
I'm writing a gem for a Rails project and committing changes to its git repository. The Rails project refers to it in the Gemfile. gem "blah",:git => "blah",:branch => "development" The problem is one of patience. Ev... | [
"ruby-on-rails-3",
"git",
"rubygems",
"bundler"
] | 4 | 3 | 452 | 1 | 0 | 2011-06-07T06:52:09.863000 | 2011-06-07T07:01:36.607000 |
6,261,578 | 6,261,728 | delete old timestamped login history rows from postgresql table | I have a postgresql (v8.4) table with login id and timestamps, and I want to create a batch file that will be run periodically to remove entries when the same id has more than X number of entries in the table. Also, the number of entries to keep is stored in a separate table and can be different for each id. The pertin... | with cte as ( select id, row_number() over (order by login_time desc) RowNumber from access_history ) delete cte where RowNumber > 200 Replace 200 with the max number of logins you want to keep in history for each user. [EDIT] As a_horse_with_no_name mentioned, cte with delete is not supported by 8.4. You could use del... | delete old timestamped login history rows from postgresql table I have a postgresql (v8.4) table with login id and timestamps, and I want to create a batch file that will be run periodically to remove entries when the same id has more than X number of entries in the table. Also, the number of entries to keep is stored ... | TITLE:
delete old timestamped login history rows from postgresql table
QUESTION:
I have a postgresql (v8.4) table with login id and timestamps, and I want to create a batch file that will be run periodically to remove entries when the same id has more than X number of entries in the table. Also, the number of entries ... | [
"sql",
"postgresql"
] | 3 | 2 | 1,374 | 1 | 0 | 2011-06-07T06:52:37.920000 | 2011-06-07T07:09:22.123000 |
6,261,593 | 6,276,697 | Custom ListView with Date as SectionHeader (Used custom SimpleCursorAdapter) | I want to display ListView with Date as SectionHeader. What i have: I am displaying ListView from sqlite database using custom SimpleCursorAdapter. My Custom SimpleCursorAdapter is: public class DomainAdapter extends SimpleCursorAdapter{ private Cursor dataCursor;
private LayoutInflater mInflater;
public DomainAdapte... | By far the simplest way to do this is to embed the date header view in every item. Then, all you need to do in bindView is compare the previous row's date to this row's date, and hide the date if it's the same. Something like this: String thisDate = cursor.getString(dateIndex); String prevDate = null;
// get previous ... | Custom ListView with Date as SectionHeader (Used custom SimpleCursorAdapter) I want to display ListView with Date as SectionHeader. What i have: I am displaying ListView from sqlite database using custom SimpleCursorAdapter. My Custom SimpleCursorAdapter is: public class DomainAdapter extends SimpleCursorAdapter{ priva... | TITLE:
Custom ListView with Date as SectionHeader (Used custom SimpleCursorAdapter)
QUESTION:
I want to display ListView with Date as SectionHeader. What i have: I am displaying ListView from sqlite database using custom SimpleCursorAdapter. My Custom SimpleCursorAdapter is: public class DomainAdapter extends SimpleCu... | [
"android",
"sqlite",
"listview",
"android-custom-view"
] | 28 | 55 | 20,262 | 3 | 0 | 2011-06-07T06:54:01.593000 | 2011-06-08T09:29:02.470000 |
6,261,596 | 6,268,965 | Optimize query with NULLable column in Oracle | Is there a way to optimize following query? It returns the right records but takes more than a minute to execute. select STATUS, SUBNO, TRUNC(TRSF_DATE) TRSF_DATE from ( select STATUS, SUBNO, TRUNC(TRSF_DATE) TRSF_DATE from tbl where trsf_date is not null and contrno in ('8', '8A', '8B', '8C', '8D', '8E', '8PH3A', '8PH... | DBMSes treat NULLs as unknown when abiding by ANSI. This means that an expression like Column = /value/ will automatically exclude NULLs with no further conditions. So the following simplified query should do the job: SELECT STATUS, SUBNO, TRUNC(TRSF_DATE) TRSF_DATE FROM crm_user_info WHERE TRSF_DATE = To_Date('5/21/20... | Optimize query with NULLable column in Oracle Is there a way to optimize following query? It returns the right records but takes more than a minute to execute. select STATUS, SUBNO, TRUNC(TRSF_DATE) TRSF_DATE from ( select STATUS, SUBNO, TRUNC(TRSF_DATE) TRSF_DATE from tbl where trsf_date is not null and contrno in ('8... | TITLE:
Optimize query with NULLable column in Oracle
QUESTION:
Is there a way to optimize following query? It returns the right records but takes more than a minute to execute. select STATUS, SUBNO, TRUNC(TRSF_DATE) TRSF_DATE from ( select STATUS, SUBNO, TRUNC(TRSF_DATE) TRSF_DATE from tbl where trsf_date is not null ... | [
"sql",
"oracle",
"nullable",
"where-clause"
] | 0 | 2 | 252 | 3 | 0 | 2011-06-07T06:54:28.007000 | 2011-06-07T17:06:05.230000 |
6,261,598 | 6,276,370 | Webplayer saves file instead of playing it | In order to play videos (Flash Format) on the website I use JW Player on my pages. But I seem to have some problems with it. On certain Firefox browsers when clicking on the player it chooses to download the file instead of playing it in the browser. On the same computer I tried it on Internet Explorer and there my web... | Instaling the latest version of Adobe Flash helped solving my problem. | Webplayer saves file instead of playing it In order to play videos (Flash Format) on the website I use JW Player on my pages. But I seem to have some problems with it. On certain Firefox browsers when clicking on the player it chooses to download the file instead of playing it in the browser. On the same computer I tri... | TITLE:
Webplayer saves file instead of playing it
QUESTION:
In order to play videos (Flash Format) on the website I use JW Player on my pages. But I seem to have some problems with it. On certain Firefox browsers when clicking on the player it chooses to download the file instead of playing it in the browser. On the s... | [
"asp.net",
"flash",
"firefox",
"jwplayer",
"flvplayback"
] | 0 | 0 | 716 | 2 | 0 | 2011-06-07T06:54:43.073000 | 2011-06-08T08:55:21.563000 |
6,261,599 | 6,262,531 | How could I view panoramas on IPhone? | I want to make an app which have one panoramic image, and when I zoom in the image, the view will automatically change the big image to other images with higher resolution, I can arrange images with different resolutions and sizes no problem with that, but I would like to get help of the idea of how to viewing panorama... | Use a UIScrollView, it has methods for zooming and the delegate has a method to return a view for a particular zoom setting. Check the Apple docs for more info. | How could I view panoramas on IPhone? I want to make an app which have one panoramic image, and when I zoom in the image, the view will automatically change the big image to other images with higher resolution, I can arrange images with different resolutions and sizes no problem with that, but I would like to get help ... | TITLE:
How could I view panoramas on IPhone?
QUESTION:
I want to make an app which have one panoramic image, and when I zoom in the image, the view will automatically change the big image to other images with higher resolution, I can arrange images with different resolutions and sizes no problem with that, but I would... | [
"iphone",
"objective-c"
] | 2 | 0 | 305 | 1 | 0 | 2011-06-07T06:54:53.653000 | 2011-06-07T08:28:21.910000 |
6,261,608 | 6,261,661 | Vertical scrolling in Ipad app | In my app i want to display say 20 images at a time.I have an idea for that like I want to create a Scroll view and inside that i will add image view for all images.also i want to show 5 images in a row then in other row 5 more images and 2 more rows consisting of 5 images each.Initially my scroll view should show the ... | I think you should look at a GridView for this - that's basically what you describe. Check out AQGridView | Vertical scrolling in Ipad app In my app i want to display say 20 images at a time.I have an idea for that like I want to create a Scroll view and inside that i will add image view for all images.also i want to show 5 images in a row then in other row 5 more images and 2 more rows consisting of 5 images each.Initially ... | TITLE:
Vertical scrolling in Ipad app
QUESTION:
In my app i want to display say 20 images at a time.I have an idea for that like I want to create a Scroll view and inside that i will add image view for all images.also i want to show 5 images in a row then in other row 5 more images and 2 more rows consisting of 5 imag... | [
"objective-c",
"ipad",
"uiscrollview",
"horizontal-scrolling",
"vertical-scrolling"
] | 0 | 0 | 493 | 2 | 0 | 2011-06-07T06:55:49.197000 | 2011-06-07T07:01:35.337000 |
6,261,620 | 6,262,688 | change numeric tickmarks to letters on levelplot | I'm working on on some details on my plots and I've found one I can't get around. On my levelplot are numeric tickmarks. Now I want my tickmarks on the y-axis to be changed to the corresponding Letters. (i.e. 1=A, 5=E,27=AA, 29=AC,...) I've already used scales=list( y=list(alternating=3,labels=toupper(c(letters[1],lett... | Some discussion on chat indicates levelplot() handles the heatmap case (where one or both variables are discrete/categorical) just fine. Therefore, we just need to get the data into the correct format. One way to do that is to store at least the y coordinate as a factor with the appropriate levels set. First, simulate ... | change numeric tickmarks to letters on levelplot I'm working on on some details on my plots and I've found one I can't get around. On my levelplot are numeric tickmarks. Now I want my tickmarks on the y-axis to be changed to the corresponding Letters. (i.e. 1=A, 5=E,27=AA, 29=AC,...) I've already used scales=list( y=li... | TITLE:
change numeric tickmarks to letters on levelplot
QUESTION:
I'm working on on some details on my plots and I've found one I can't get around. On my levelplot are numeric tickmarks. Now I want my tickmarks on the y-axis to be changed to the corresponding Letters. (i.e. 1=A, 5=E,27=AA, 29=AC,...) I've already used... | [
"r",
"lattice"
] | 2 | 4 | 2,352 | 2 | 0 | 2011-06-07T06:57:15.363000 | 2011-06-07T08:42:22.353000 |
6,261,629 | 6,261,695 | Unexpected behaviour of regex validating email | I am validating an email address using the following regex var regex=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; Now the problem is that it is showing unexpected behavior If I enter email address like pakistan@gmail.com This is accepted by the above regex as validate format of email address But when ... | For starters, \w is equivalent to [a-zA-Z0-9_], so changing that will make your regex decidedly simpler. /^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,4}$/ I have tried this on all of your posted emails, and it works fine | Unexpected behaviour of regex validating email I am validating an email address using the following regex var regex=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; Now the problem is that it is showing unexpected behavior If I enter email address like pakistan@gmail.com This is accepted by the above rege... | TITLE:
Unexpected behaviour of regex validating email
QUESTION:
I am validating an email address using the following regex var regex=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; Now the problem is that it is showing unexpected behavior If I enter email address like pakistan@gmail.com This is accepted... | [
"javascript",
"regex",
"validation"
] | 6 | 2 | 227 | 5 | 0 | 2011-06-07T06:57:57.177000 | 2011-06-07T07:05:34.303000 |
6,261,632 | 6,265,012 | Communication from Popup Page to Content Script Page | I am developing an extension and I do not wish to use the options page. I use a browser action (the icon appears on the top-right), and some preferences are made trough that page and I store them in localStorage. However, my content script needs to read that localStorage but I know that it cannot access it. I looked th... | The popup is ephemeral meaning that the code only lives for the time that the popup is open. This means that your listener will be lost. Move the code for your listener from your popup.html in to a background page, then this should work fine. | Communication from Popup Page to Content Script Page I am developing an extension and I do not wish to use the options page. I use a browser action (the icon appears on the top-right), and some preferences are made trough that page and I store them in localStorage. However, my content script needs to read that localSto... | TITLE:
Communication from Popup Page to Content Script Page
QUESTION:
I am developing an extension and I do not wish to use the options page. I use a browser action (the icon appears on the top-right), and some preferences are made trough that page and I store them in localStorage. However, my content script needs to ... | [
"google-chrome-extension",
"message-passing"
] | 2 | 6 | 3,937 | 1 | 0 | 2011-06-07T06:58:07.767000 | 2011-06-07T12:18:01.693000 |
6,261,635 | 6,263,583 | read Hypertext Transfer Protocol (HTTP or HTTPS) | I want to read the protocol the user is on. HTTP or HTTPS and build my url for site 2 on that page accordingly. Step 1: Read the url user is on site 1 //Could be anything http or https Step 2: Prefix the protocol for site 2 on that site 1 page according. HTTP or HTTPS as per step 1 FF handles it good. But IE doesn't al... | I did it with String scheme = request.getScheme(); in my JSP | read Hypertext Transfer Protocol (HTTP or HTTPS) I want to read the protocol the user is on. HTTP or HTTPS and build my url for site 2 on that page accordingly. Step 1: Read the url user is on site 1 //Could be anything http or https Step 2: Prefix the protocol for site 2 on that site 1 page according. HTTP or HTTPS as... | TITLE:
read Hypertext Transfer Protocol (HTTP or HTTPS)
QUESTION:
I want to read the protocol the user is on. HTTP or HTTPS and build my url for site 2 on that page accordingly. Step 1: Read the url user is on site 1 //Could be anything http or https Step 2: Prefix the protocol for site 2 on that site 1 page according... | [
"http",
"url",
"https"
] | 0 | 1 | 6,090 | 3 | 0 | 2011-06-07T06:58:52.840000 | 2011-06-07T09:59:11.993000 |
6,261,647 | 6,261,756 | Can I upgrade to iOS5 (beta) and still develop/debug against the current version of Monotouch? | As monotouch updates have stopped (another story), can I upgrade my iPhone/iPad to iOS 5 beta and still continue to develop using the current version of Monotouch? I understand I wont have access to the new API's, but as its not possible to downgrade from iOS5, I was wondering has anyone else done the upgrade and it wo... | Yes it still works - I just tried it - but beware of unexcepted behaviour from the APIs since the UIKit was heavily changed (styling features) Also don't update the SDK just work with the current version - for debugging I can't vouch for it, because I'm in a very restricted WiFi at the moment (the app hung when trying ... | Can I upgrade to iOS5 (beta) and still develop/debug against the current version of Monotouch? As monotouch updates have stopped (another story), can I upgrade my iPhone/iPad to iOS 5 beta and still continue to develop using the current version of Monotouch? I understand I wont have access to the new API's, but as its ... | TITLE:
Can I upgrade to iOS5 (beta) and still develop/debug against the current version of Monotouch?
QUESTION:
As monotouch updates have stopped (another story), can I upgrade my iPhone/iPad to iOS 5 beta and still continue to develop using the current version of Monotouch? I understand I wont have access to the new ... | [
"xamarin.ios",
"ios5"
] | 1 | 0 | 729 | 1 | 0 | 2011-06-07T07:00:09.797000 | 2011-06-07T07:12:53.783000 |
6,261,655 | 6,261,915 | Problem with opning the page (License agreement page) | I am very confused. How can display agreement page only once in time of use of application.I don't how can i explain this.But I am trying to explain this. I am creating the application in which i have the agreement page which has the two button (1)Button name is Accept (2)Button name is Reject If user click the Accept ... | YOU CAN Apply the Agreement Page through The Alter View and If User Accept the Agreement than You Store The Value of Agreed(Possibly Bollean) in the plist file(possibly from document directory of the app) than each time you can check it CODE FOR TO NOT TO Display Agreement If it is accepted For once add one plist file ... | Problem with opning the page (License agreement page) I am very confused. How can display agreement page only once in time of use of application.I don't how can i explain this.But I am trying to explain this. I am creating the application in which i have the agreement page which has the two button (1)Button name is Acc... | TITLE:
Problem with opning the page (License agreement page)
QUESTION:
I am very confused. How can display agreement page only once in time of use of application.I don't how can i explain this.But I am trying to explain this. I am creating the application in which i have the agreement page which has the two button (1)... | [
"iphone",
"objective-c"
] | 4 | 4 | 366 | 2 | 0 | 2011-06-07T07:00:49.420000 | 2011-06-07T07:29:04.187000 |
6,261,656 | 6,261,698 | How to decide execution sequence for Javascript and Jquery function | I am calling two function one Java script and one Jquery function on click of Cancel button. The java script function get executed before Jquery function and I want the exactly opposite. Here is my HTML code Cancel The Jquery function $(".noWarning").click(function() { needToConfirm = false; alert("NeedToConfirm: " + n... | In JavaScript, callbacks and event handlers should be executed in the order they were bound, and there is no way to alter that order. The code in the onclick attribute will be bound directly after creation of the element, and will thus be the first to be executed. The only way to prevent this is to remove the attribute... | How to decide execution sequence for Javascript and Jquery function I am calling two function one Java script and one Jquery function on click of Cancel button. The java script function get executed before Jquery function and I want the exactly opposite. Here is my HTML code Cancel The Jquery function $(".noWarning").c... | TITLE:
How to decide execution sequence for Javascript and Jquery function
QUESTION:
I am calling two function one Java script and one Jquery function on click of Cancel button. The java script function get executed before Jquery function and I want the exactly opposite. Here is my HTML code Cancel The Jquery function... | [
"javascript",
"jquery",
"html",
"jquery-selectors",
"dom-events"
] | 2 | 4 | 2,876 | 4 | 0 | 2011-06-07T07:00:55.877000 | 2011-06-07T07:05:44.240000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.