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,197,903 | 6,198,008 | TelerikRadMenu from horizontal position to vertical | I am using TelerikRadMenu in asp.net but i don't want it in horizontal mode i want it in vertical...is it possible and how can anyone help me? | You haven't specified which versions of their controls you are using ASP.NET, ASP.NET AJAX or ASP.NET MVC In any case, for ASP.NET I think you just need to set the Flow direction to Vertical: | TelerikRadMenu from horizontal position to vertical I am using TelerikRadMenu in asp.net but i don't want it in horizontal mode i want it in vertical...is it possible and how can anyone help me? | TITLE:
TelerikRadMenu from horizontal position to vertical
QUESTION:
I am using TelerikRadMenu in asp.net but i don't want it in horizontal mode i want it in vertical...is it possible and how can anyone help me?
ANSWER:
You haven't specified which versions of their controls you are using ASP.NET, ASP.NET AJAX or ASP.... | [
"c#",
"asp.net",
"telerik"
] | 1 | 1 | 787 | 1 | 0 | 2011-06-01T07:51:29.607000 | 2011-06-01T08:00:21.680000 |
6,197,938 | 6,200,689 | Recommendations for a scripting or plugin language for highly math-dependent user coding? | I have started a bounty for this question...because I really want the community's input. I can (and have) looked at several languages / frameworks and think 'well, this will probably work okay' -- but I would really appreciate advice that's based specifically on the problem I face, and especially from anyone with exper... | According to your needs, here are some guidelines: Make a distinction between language and library - you can have mathematical languages (like MATLAB) or mathematical libraries called from an high-level language (like Python); The language (or library) should be designed by mathematicians, for mathematicians; The used ... | Recommendations for a scripting or plugin language for highly math-dependent user coding? I have started a bounty for this question...because I really want the community's input. I can (and have) looked at several languages / frameworks and think 'well, this will probably work okay' -- but I would really appreciate adv... | TITLE:
Recommendations for a scripting or plugin language for highly math-dependent user coding?
QUESTION:
I have started a bounty for this question...because I really want the community's input. I can (and have) looked at several languages / frameworks and think 'well, this will probably work okay' -- but I would rea... | [
"c++",
"delphi",
"api",
"plugins"
] | 48 | 18 | 3,840 | 12 | 0 | 2011-06-01T07:53:43.087000 | 2011-06-01T11:54:01.530000 |
6,197,940 | 6,264,926 | Nosetest including unwanted parent directories | I'm trying to limit nosetests to a specific directory, however during the test run it's including the parent directories of the dir I'm targetting and in doing so throws errors. Here's the key elements of output from the test run: nose.importer: DEBUG: Add path /projects/myproject/myproject/specs nose.importer: DEBUG: ... | I suppose that you are expecting the following behavior. nose.importer: DEBUG: Add path /projects/myproject nose.importer: DEBUG: insert /projects/myproject into sys.path Why not try a --match or an --exclude pattern to restrict the tests set? Try: --exclude myproject/myproject I check the source code of nose.importer:... | Nosetest including unwanted parent directories I'm trying to limit nosetests to a specific directory, however during the test run it's including the parent directories of the dir I'm targetting and in doing so throws errors. Here's the key elements of output from the test run: nose.importer: DEBUG: Add path /projects/m... | TITLE:
Nosetest including unwanted parent directories
QUESTION:
I'm trying to limit nosetests to a specific directory, however during the test run it's including the parent directories of the dir I'm targetting and in doing so throws errors. Here's the key elements of output from the test run: nose.importer: DEBUG: Ad... | [
"python",
"nose"
] | 9 | 5 | 2,185 | 1 | 0 | 2011-06-01T07:54:02.603000 | 2011-06-07T12:09:20.320000 |
6,197,941 | 6,197,967 | How to get System DateTime format? | I am looking for a solution to get system date time format. For example: if I get DateTime.Now? Which Date Time Format is this using? DD/MM/YYYY etc | If it has not been changed elsewhere, this will get it: string sysFormat = CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern; If using a WinForms app, you may also look at the UICulture: string sysUIFormat = CultureInfo.CurrentUICulture.DateTimeFormat.ShortDatePattern; Note that DateTimeFormat is a read-write ... | How to get System DateTime format? I am looking for a solution to get system date time format. For example: if I get DateTime.Now? Which Date Time Format is this using? DD/MM/YYYY etc | TITLE:
How to get System DateTime format?
QUESTION:
I am looking for a solution to get system date time format. For example: if I get DateTime.Now? Which Date Time Format is this using? DD/MM/YYYY etc
ANSWER:
If it has not been changed elsewhere, this will get it: string sysFormat = CultureInfo.CurrentCulture.DateTim... | [
"c#",
".net",
"datetime"
] | 37 | 62 | 78,955 | 5 | 0 | 2011-06-01T07:54:21.543000 | 2011-06-01T07:56:57.190000 |
6,197,944 | 6,198,004 | Are STDIN_FILENO and STDOUT_FILENO read only in c? | fd = open("/dev/null", O_RDWR); if (fd == -1) { ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, "open(\"/dev/null\") failed"); return NGX_ERROR; }
if (dup2(fd, STDIN_FILENO) == -1) { ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, "dup2(STDIN) failed"); return NGX_ERROR; }
if (dup2(fd, STDOUT_FILENO) == -1) { ngx_log_error... | The constants themselves (on POSIX, STDIN_FILENO is 0 and STDOUT_FILENO is 1 ) are indeed read-only, but the file descriptors they characterize may be closed and something else opened in their place; they're just ordinary file descriptors (usually with a flag set so that they stay open on an execve() system call). The ... | Are STDIN_FILENO and STDOUT_FILENO read only in c? fd = open("/dev/null", O_RDWR); if (fd == -1) { ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, "open(\"/dev/null\") failed"); return NGX_ERROR; }
if (dup2(fd, STDIN_FILENO) == -1) { ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, "dup2(STDIN) failed"); return NGX_ERROR; }
... | TITLE:
Are STDIN_FILENO and STDOUT_FILENO read only in c?
QUESTION:
fd = open("/dev/null", O_RDWR); if (fd == -1) { ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, "open(\"/dev/null\") failed"); return NGX_ERROR; }
if (dup2(fd, STDIN_FILENO) == -1) { ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, "dup2(STDIN) failed"); re... | [
"c",
"unix",
"file-descriptor",
"dup2"
] | 2 | 5 | 12,191 | 3 | 0 | 2011-06-01T07:54:27.187000 | 2011-06-01T07:59:57.153000 |
6,197,947 | 6,198,038 | How do you pass the target element as an argument to an inline event handler? | Whew! First off, my apologies for the title, I don't speak English often. My question is, using an inline event registration, how can I pass the target element as an argument? Like this: What I have tried: The code above is not working. Please help... Thank's in advance! I don't want to use addEventHandler 'coz the ele... | Looks fine to me Click me I think the cause of the problem is dynamic element generation. How are you adding the attribute to the element? Why not just use addEventHandler during the dynamic element generation? | How do you pass the target element as an argument to an inline event handler? Whew! First off, my apologies for the title, I don't speak English often. My question is, using an inline event registration, how can I pass the target element as an argument? Like this: What I have tried: The code above is not working. Pleas... | TITLE:
How do you pass the target element as an argument to an inline event handler?
QUESTION:
Whew! First off, my apologies for the title, I don't speak English often. My question is, using an inline event registration, how can I pass the target element as an argument? Like this: What I have tried: The code above is ... | [
"javascript",
"events",
"target"
] | 0 | 2 | 2,210 | 1 | 0 | 2011-06-01T07:54:56.473000 | 2011-06-01T08:02:25.817000 |
6,197,954 | 6,203,421 | Get Windows 7's network status | In Windows 7 whenever the internet access gets lost, the network indicator turns yellow. I want to get this status in my software and set an alarm whenever the internet connection gets lost (an internet alarm). How can I get this status? All of the other libraries like this one, just show the status of disconnection (r... | In the Windows API Code Pack there is a NetworkManager class that gets you both IsConnected and IsConnectedToInternet. Comes with some useful samples too. If you want to detect a change in status, do not poll - there are.NET events you can add handlers for just like adding a click handler. Also see Detect Internet V. l... | Get Windows 7's network status In Windows 7 whenever the internet access gets lost, the network indicator turns yellow. I want to get this status in my software and set an alarm whenever the internet connection gets lost (an internet alarm). How can I get this status? All of the other libraries like this one, just show... | TITLE:
Get Windows 7's network status
QUESTION:
In Windows 7 whenever the internet access gets lost, the network indicator turns yellow. I want to get this status in my software and set an alarm whenever the internet connection gets lost (an internet alarm). How can I get this status? All of the other libraries like t... | [
"c#",
".net",
"networking",
"windows-7"
] | 11 | 7 | 2,044 | 2 | 0 | 2011-06-01T07:55:49.607000 | 2011-06-01T15:11:01.800000 |
6,197,966 | 6,199,192 | Where does the Item tickbox come from | I currently have a DetailsView (used to be a Formview, but that is a nogo with Masterpage and ObjectDataSource). Somehow there is an "Item [ ]" (tickbox) in the graphics that I can't find in the source. It is graphically found after the "Kommentar:" and before the "Dato:" Ontop of that the parameter list requires a "!"... | Have you searched the code-behind file? Maybe the checkbox is injected? The id of the checkbox is "ContentPlaceHolder2_dv_InsertComment_ctl01", that could be a control which was added dynamically. Check your code-behind file for any string like "InsertComment" or "dv_" or "_dv", etc. and have a look. I'm only guessing ... | Where does the Item tickbox come from I currently have a DetailsView (used to be a Formview, but that is a nogo with Masterpage and ObjectDataSource). Somehow there is an "Item [ ]" (tickbox) in the graphics that I can't find in the source. It is graphically found after the "Kommentar:" and before the "Dato:" Ontop of ... | TITLE:
Where does the Item tickbox come from
QUESTION:
I currently have a DetailsView (used to be a Formview, but that is a nogo with Masterpage and ObjectDataSource). Somehow there is an "Item [ ]" (tickbox) in the graphics that I can't find in the source. It is graphically found after the "Kommentar:" and before the... | [
"c#",
"asp.net",
"objectdatasource",
"detailsview"
] | 0 | 1 | 105 | 1 | 0 | 2011-06-01T07:56:56.793000 | 2011-06-01T09:43:01.757000 |
6,197,977 | 6,198,066 | Android: Editext start of text | How do i set the starting position of the inputted text in the center or anywhere but not with the leftmost part of the editext. Thank you! | use android:paddingLeft property in the xml of EditText to displace the text from leftmost part. android:paddingLeft="10dip" // give value according to need. You can use android:gravity="center" too but that will place your text exactly in the middle. | Android: Editext start of text How do i set the starting position of the inputted text in the center or anywhere but not with the leftmost part of the editext. Thank you! | TITLE:
Android: Editext start of text
QUESTION:
How do i set the starting position of the inputted text in the center or anywhere but not with the leftmost part of the editext. Thank you!
ANSWER:
use android:paddingLeft property in the xml of EditText to displace the text from leftmost part. android:paddingLeft="10di... | [
"android",
"android-layout"
] | 0 | 3 | 131 | 2 | 0 | 2011-06-01T07:57:36.377000 | 2011-06-01T08:05:33.643000 |
6,197,979 | 6,198,424 | included columns for a non-clustered index | Hello i have a table with lots of records(11 million). The records has a foreign ID, Date and some other fields. I have a query which i run in my application so often. The query is something like: if( SELECT * FROM myTable WHERE Date=@Date AND ForeignID=@ForeignID!= 0 ) UPDATE myTable SET....... WHERE Date=@Date AND Fo... | I agree with @gbn that you need an index on both Date and ForeignID rather than "Include Column". You could create it as follows: CREATE NONCLUSTERED INDEX [IDX1] ON [myTable] ([Date], [ForeignID]) However "Select * " is not a good way to check the existence of a record. You could use the "EXISTS" clause | included columns for a non-clustered index Hello i have a table with lots of records(11 million). The records has a foreign ID, Date and some other fields. I have a query which i run in my application so often. The query is something like: if( SELECT * FROM myTable WHERE Date=@Date AND ForeignID=@ForeignID!= 0 ) UPDATE... | TITLE:
included columns for a non-clustered index
QUESTION:
Hello i have a table with lots of records(11 million). The records has a foreign ID, Date and some other fields. I have a query which i run in my application so often. The query is something like: if( SELECT * FROM myTable WHERE Date=@Date AND ForeignID=@Fore... | [
"sql",
"sql-server",
"t-sql",
"indexing"
] | 3 | 3 | 1,457 | 4 | 0 | 2011-06-01T07:57:44.913000 | 2011-06-01T08:40:15.310000 |
6,197,990 | 6,198,347 | Share scripts and profiles with Dropbox | I'm new to bash, but eager to learn. Right now I'm stealing useful scripts from other ppl and are wondering where I should put them. So I have a bunch of *.sh files, but don't know where they should go. To make it even more useful I would like a way to share them with my other puter with Dropbox. Is it as simple as lin... | If the scripts are "general purpose" the best place to put them is in ~/bin then they always will be available from the cmd-line (i.e. if that folder is in $PATH) One approach is to use mercurial via bitbucket or git via github Create an account there and add your scripts. There are many advantages to this approach, so... | Share scripts and profiles with Dropbox I'm new to bash, but eager to learn. Right now I'm stealing useful scripts from other ppl and are wondering where I should put them. So I have a bunch of *.sh files, but don't know where they should go. To make it even more useful I would like a way to share them with my other pu... | TITLE:
Share scripts and profiles with Dropbox
QUESTION:
I'm new to bash, but eager to learn. Right now I'm stealing useful scripts from other ppl and are wondering where I should put them. So I have a bunch of *.sh files, but don't know where they should go. To make it even more useful I would like a way to share the... | [
"bash",
"dropbox"
] | 0 | 0 | 149 | 2 | 0 | 2011-06-01T07:58:27.527000 | 2011-06-01T08:33:17.263000 |
6,198,005 | 6,198,250 | How to approach markdown storage in the db for user content? | I was thinking about allowing users to edit site content with markdown, as it's simple and easy. The question now is how do I store that input - should I convert it to html on save and then store raw HTML in the database, or save the markdown text and re-parse it to HTML on every request? Should a different approach be... | I'd probably store both the original Markdown and the HTML versions of the content. In fact, I have done similar things (with stripped down minimal HTML instead of Markdown) where I stored both the raw and formatted versions. If you want to edit the content after it is created, then you'll want the original Markdown as... | How to approach markdown storage in the db for user content? I was thinking about allowing users to edit site content with markdown, as it's simple and easy. The question now is how do I store that input - should I convert it to html on save and then store raw HTML in the database, or save the markdown text and re-pars... | TITLE:
How to approach markdown storage in the db for user content?
QUESTION:
I was thinking about allowing users to edit site content with markdown, as it's simple and easy. The question now is how do I store that input - should I convert it to html on save and then store raw HTML in the database, or save the markdow... | [
"html",
"database",
"performance",
"markdown",
"storing-information"
] | 8 | 14 | 3,195 | 1 | 0 | 2011-06-01T08:00:10.073000 | 2011-06-01T08:24:21.883000 |
6,198,006 | 6,198,195 | UITableView sorting by rank | I have got an plist with an object it is a number with rank. I want to sort by the value of the float. From the biggest number to the lowest. And I dont know how to write the function. Thank you | You should sort the array you get from your plist by the rank NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"your rank key" ascending:YES]; NSArray *sortDescriptors = [NSArray arrayWithObject:sortDescriptor]; [yourArray sortedArrayUsingDescriptors:sortDescriptors]; [sortDescriptor release]; ... | UITableView sorting by rank I have got an plist with an object it is a number with rank. I want to sort by the value of the float. From the biggest number to the lowest. And I dont know how to write the function. Thank you | TITLE:
UITableView sorting by rank
QUESTION:
I have got an plist with an object it is a number with rank. I want to sort by the value of the float. From the biggest number to the lowest. And I dont know how to write the function. Thank you
ANSWER:
You should sort the array you get from your plist by the rank NSSortDe... | [
"iphone",
"uitableview",
"sorting",
"floating-point"
] | 0 | 2 | 326 | 2 | 0 | 2011-06-01T08:00:12.160000 | 2011-06-01T08:19:24.787000 |
6,198,014 | 6,198,099 | Android: How to restart an instance? | I want to restart an instance of my activity. Is it possible? For example from an activity, I will go to another activity then when I go back to previous activity, all is new, no instance is saved. I'm kinda new to android. thanks. | Maybe this old post could help you: how do i restart an android activity | Android: How to restart an instance? I want to restart an instance of my activity. Is it possible? For example from an activity, I will go to another activity then when I go back to previous activity, all is new, no instance is saved. I'm kinda new to android. thanks. | TITLE:
Android: How to restart an instance?
QUESTION:
I want to restart an instance of my activity. Is it possible? For example from an activity, I will go to another activity then when I go back to previous activity, all is new, no instance is saved. I'm kinda new to android. thanks.
ANSWER:
Maybe this old post coul... | [
"java",
"android",
"instance",
"bundle"
] | 0 | 0 | 751 | 2 | 0 | 2011-06-01T08:00:38.070000 | 2011-06-01T08:08:47.407000 |
6,198,015 | 6,198,662 | android expandable list view | i am using expandable list but i want know position of which item is clicked by user i have used onitemclick but it doesn't show me msg.. what wrong i am doing? public void funName(){ File ringtones_directory = new File(DIRECTORY); if (!ringtones_directory.exists()) { AlertDialog.Builder ad = new AlertDialog.Builder( F... | Try this to handle when a child is clicked: exlv1.setOnChildClickListener(new OnChildClickListener() { public boolean onChildClick(ExpandableListView parent, View v, int groupPosition, int childPosition, long id) {
} }; | android expandable list view i am using expandable list but i want know position of which item is clicked by user i have used onitemclick but it doesn't show me msg.. what wrong i am doing? public void funName(){ File ringtones_directory = new File(DIRECTORY); if (!ringtones_directory.exists()) { AlertDialog.Builder ad... | TITLE:
android expandable list view
QUESTION:
i am using expandable list but i want know position of which item is clicked by user i have used onitemclick but it doesn't show me msg.. what wrong i am doing? public void funName(){ File ringtones_directory = new File(DIRECTORY); if (!ringtones_directory.exists()) { Aler... | [
"android",
"position",
"expandablelistview",
"click"
] | 0 | 1 | 880 | 1 | 0 | 2011-06-01T08:00:41.197000 | 2011-06-01T09:01:42.847000 |
6,198,016 | 6,198,106 | UNION after ORDER BY and LIMIT | My goal is to execute two different queries and then combine them. My code is: SELECT * FROM some tables WHERE... ORDER BY field1 LIMIT 0,1 UNION SELECT * FROM some tables WHERE... I get the following error: #1221 - Incorrect usage of UNION and ORDER BY It is important that ORDER BY is only for the first query. How can... | You can use parenthesis to allow the use of ORDER / LIMIT on individual queries: (SELECT * FROM some tables WHERE... ORDER BY field1 LIMIT 0, 1) UNION (SELECT * FROM some tables WHERE...) ORDER BY 1 /* optional -- applies to the UNIONed result */ LIMIT 0, 100 /* optional -- applies to the UNIONed result */ | UNION after ORDER BY and LIMIT My goal is to execute two different queries and then combine them. My code is: SELECT * FROM some tables WHERE... ORDER BY field1 LIMIT 0,1 UNION SELECT * FROM some tables WHERE... I get the following error: #1221 - Incorrect usage of UNION and ORDER BY It is important that ORDER BY is on... | TITLE:
UNION after ORDER BY and LIMIT
QUESTION:
My goal is to execute two different queries and then combine them. My code is: SELECT * FROM some tables WHERE... ORDER BY field1 LIMIT 0,1 UNION SELECT * FROM some tables WHERE... I get the following error: #1221 - Incorrect usage of UNION and ORDER BY It is important t... | [
"mysql",
"sql",
"sql-order-by",
"union"
] | 26 | 39 | 22,370 | 4 | 0 | 2011-06-01T08:00:45.890000 | 2011-06-01T08:09:10.963000 |
6,198,017 | 6,198,134 | How to blur stage | Is there any way to blur all stage. This code is not working. stage.filters = [(new BlurFilter())]; | The stage object does not support the use of filters. Wrap everything in a main container instead and set the blur on it. Ref >> http://wadhwakanu.wordpress.com/2011/01/16/error-2071-the-stage-class-does-not-implement-this-property-or-method/ | How to blur stage Is there any way to blur all stage. This code is not working. stage.filters = [(new BlurFilter())]; | TITLE:
How to blur stage
QUESTION:
Is there any way to blur all stage. This code is not working. stage.filters = [(new BlurFilter())];
ANSWER:
The stage object does not support the use of filters. Wrap everything in a main container instead and set the blur on it. Ref >> http://wadhwakanu.wordpress.com/2011/01/16/err... | [
"actionscript-3"
] | 2 | 1 | 751 | 2 | 0 | 2011-06-01T08:00:56.813000 | 2011-06-01T08:12:04.763000 |
6,198,018 | 6,198,064 | Using jQuery live with context | I wrote a plugin for jQuery but now my users are asking for the ability to run my plugin on various elements on the same page so I'm trying to rewrite it a bit. I'm having issues with my events. here is what was working. $(".jTagLabels label").live('mouseenter',function(){ $("#"+$(this).attr('rel')).css('opacity',1).fi... | Use delegate(), it's a lot cleaner and that's what it was made for, even though the resulting code could be the same. Also depending on your code context, your container variable is likely to lose its value between binding the event and triggering it. $(container).delegate(".jTagLabels label",'mouseenter',function(){ v... | Using jQuery live with context I wrote a plugin for jQuery but now my users are asking for the ability to run my plugin on various elements on the same page so I'm trying to rewrite it a bit. I'm having issues with my events. here is what was working. $(".jTagLabels label").live('mouseenter',function(){ $("#"+$(this).a... | TITLE:
Using jQuery live with context
QUESTION:
I wrote a plugin for jQuery but now my users are asking for the ability to run my plugin on various elements on the same page so I'm trying to rewrite it a bit. I'm having issues with my events. here is what was working. $(".jTagLabels label").live('mouseenter',function(... | [
"jquery"
] | 1 | 5 | 287 | 1 | 0 | 2011-06-01T08:01:03.227000 | 2011-06-01T08:05:28.543000 |
6,198,019 | 6,212,620 | Seed data import failed on jboss-javaee6-webapp | I am trying to get a basic Seam 3 webapplication to work and use the jboss-javaee6-webapp to achieve this goal. Using the manual at http://seamframework.org/Documentation/CDIQuickstartForMavenUsers. However, I am running into some problems which I haven't been able to solve for days. I have basically no experience in J... | I think it is a persistance.xml problem because you have: jdbc/__default and this is default for Glassfish AS Try this: java:/DefaultDS This is default for JBoss Do you run JBoss AS in default domain? | Seed data import failed on jboss-javaee6-webapp I am trying to get a basic Seam 3 webapplication to work and use the jboss-javaee6-webapp to achieve this goal. Using the manual at http://seamframework.org/Documentation/CDIQuickstartForMavenUsers. However, I am running into some problems which I haven't been able to sol... | TITLE:
Seed data import failed on jboss-javaee6-webapp
QUESTION:
I am trying to get a basic Seam 3 webapplication to work and use the jboss-javaee6-webapp to achieve this goal. Using the manual at http://seamframework.org/Documentation/CDIQuickstartForMavenUsers. However, I am running into some problems which I haven'... | [
"java",
"eclipse",
"java-ee-6",
"archetypes",
"seam3"
] | 2 | 1 | 925 | 3 | 0 | 2011-06-01T08:01:09.310000 | 2011-06-02T09:20:45.427000 |
6,198,027 | 6,245,576 | Sonar maven plugin fails to download the JDBC driver | I've started using the sonar maven plugin (and sonar i general). Sonar is installed on another server, and can be successfully accessed in the url http://host:8080/sonar. The configuration in the pom.xml is as follows: org.codehaus.mojo sonar-maven-plugin 1.0-beta-2 http://host:8080/sonar Edit I've switch the sonar.hos... | Well, my configuration was wrong. You shouldn't have any inside the plugin definition, but rather a block with the Sonar properties: http://host:8080/sonar jdbc:mysql://host:3306/sonar sonardb sonardbpassword com.mysql.jdbc.Driver Thanks to Freddy Mallet for pointing it out. | Sonar maven plugin fails to download the JDBC driver I've started using the sonar maven plugin (and sonar i general). Sonar is installed on another server, and can be successfully accessed in the url http://host:8080/sonar. The configuration in the pom.xml is as follows: org.codehaus.mojo sonar-maven-plugin 1.0-beta-2 ... | TITLE:
Sonar maven plugin fails to download the JDBC driver
QUESTION:
I've started using the sonar maven plugin (and sonar i general). Sonar is installed on another server, and can be successfully accessed in the url http://host:8080/sonar. The configuration in the pom.xml is as follows: org.codehaus.mojo sonar-maven-... | [
"maven-2",
"maven-plugin",
"sonarqube"
] | 2 | 4 | 7,600 | 2 | 0 | 2011-06-01T08:01:42.347000 | 2011-06-05T20:14:17.267000 |
6,198,029 | 6,199,374 | Faster Background Image in OpenGLES | I'm writing a game in Android/OpenGLES, and when I use traceview, I see that the time taken to draw my background image (using glDrawTexfOES) is quite huge. I understand of course that as the background fills the screen, it should take longer than my other sprites, but is there a faster way to draw the background image... | In most cases, I believe it's faster to do what you want by drawing and texturing a quad(well, or a triangle strip) using a texture buffer. I don't have any solid benchmarks, but it made a pretty big difference for me. Mine was a lot of smaller images(font renderer) rather than one large one, but faster is faster in my... | Faster Background Image in OpenGLES I'm writing a game in Android/OpenGLES, and when I use traceview, I see that the time taken to draw my background image (using glDrawTexfOES) is quite huge. I understand of course that as the background fills the screen, it should take longer than my other sprites, but is there a fas... | TITLE:
Faster Background Image in OpenGLES
QUESTION:
I'm writing a game in Android/OpenGLES, and when I use traceview, I see that the time taken to draw my background image (using glDrawTexfOES) is quite huge. I understand of course that as the background fills the screen, it should take longer than my other sprites, ... | [
"android",
"opengl-es",
"background-image"
] | 0 | 0 | 422 | 1 | 0 | 2011-06-01T08:01:47.637000 | 2011-06-01T09:57:50.150000 |
6,198,030 | 6,198,091 | Linq to Entities: getting data with no relation (NOT IN) | I'm trying to figure out the way to get all records from a table that have a specific column value AND that are NOT into a relational (many to many) table. Here's the model view: https://i.stack.imgur.com/mcCzZ.png I need all "testaction" with UserGroups_ID X, which can be done with: from ta in qasEntities.TestActions ... | You can use Any() to see if there are any records. Something like this: from ta in qasEntities.TestActions where ta.UserGroups_ID.Equals(selectedUsergroupsId) &&!qasEntities.TestCase.Any(x => x.UserGroups_ID.Equals(ta.UserGroups_ID) select ta What this does is that it will check if there are any TestCases with the give... | Linq to Entities: getting data with no relation (NOT IN) I'm trying to figure out the way to get all records from a table that have a specific column value AND that are NOT into a relational (many to many) table. Here's the model view: https://i.stack.imgur.com/mcCzZ.png I need all "testaction" with UserGroups_ID X, wh... | TITLE:
Linq to Entities: getting data with no relation (NOT IN)
QUESTION:
I'm trying to figure out the way to get all records from a table that have a specific column value AND that are NOT into a relational (many to many) table. Here's the model view: https://i.stack.imgur.com/mcCzZ.png I need all "testaction" with U... | [
"asp.net",
"linq-to-entities"
] | 0 | 1 | 122 | 1 | 0 | 2011-06-01T08:01:47.407000 | 2011-06-01T08:08:15.973000 |
6,198,037 | 6,198,079 | equivalent of ASP.NET MVC TempData in ASP.NET | In ASP.NET MVC, there's a TempData which can pass data one time from one page to another. What's the equivalent for this in ASP.NET? | There is no direct equivalent (that is, data that is only passed to the next page). You can use Session and clear it out on the receiving page. | equivalent of ASP.NET MVC TempData in ASP.NET In ASP.NET MVC, there's a TempData which can pass data one time from one page to another. What's the equivalent for this in ASP.NET? | TITLE:
equivalent of ASP.NET MVC TempData in ASP.NET
QUESTION:
In ASP.NET MVC, there's a TempData which can pass data one time from one page to another. What's the equivalent for this in ASP.NET?
ANSWER:
There is no direct equivalent (that is, data that is only passed to the next page). You can use Session and clear ... | [
"asp.net",
"tempdata"
] | 8 | 6 | 3,495 | 2 | 0 | 2011-06-01T08:02:24.083000 | 2011-06-01T08:07:04.203000 |
6,198,045 | 6,198,086 | Why does my linked list code result in link errors? | I'm new to linklist, and i'm having a tough time with it. I'm trying to display some values that i've appended to the nodes, But i keep getting linkerror messages. Here is what I have so far. LinkList.h -
#ifndef LINKLIST_H #define LINKLIST_H
class LinkList { private: struct ListNode { int value; ListNode *next; };
... | You declared a LinkList constructor, and a destructor, but you did not define them: LinkList::LinkList(): head(NULL) { }
LinkList::~LinkList() { // delete your memory here... } | Why does my linked list code result in link errors? I'm new to linklist, and i'm having a tough time with it. I'm trying to display some values that i've appended to the nodes, But i keep getting linkerror messages. Here is what I have so far. LinkList.h -
#ifndef LINKLIST_H #define LINKLIST_H
class LinkList { privat... | TITLE:
Why does my linked list code result in link errors?
QUESTION:
I'm new to linklist, and i'm having a tough time with it. I'm trying to display some values that i've appended to the nodes, But i keep getting linkerror messages. Here is what I have so far. LinkList.h -
#ifndef LINKLIST_H #define LINKLIST_H
class... | [
"c++"
] | 0 | 4 | 146 | 1 | 0 | 2011-06-01T08:02:56.783000 | 2011-06-01T08:07:57.960000 |
6,198,047 | 6,200,141 | Fill HTML canvas excluding arbitrary (possibly overlapping) circles | Given an HTML canvas that has already been drawn to, what's the best way to shade the whole canvas except given circular regions? (in context: shadows except where are there light sources) I was hoping it would be as simple as a rect() followed by subsequent arc() s, but AFAIK there's no way to "remove" those circular ... | You could first create the shadow image on a second canvas and knock out holes from it with globalCompositeOperation 'copy' and a transparent fillStyle. Like this: http://jsfiddle.net/mW8D3/4/ | Fill HTML canvas excluding arbitrary (possibly overlapping) circles Given an HTML canvas that has already been drawn to, what's the best way to shade the whole canvas except given circular regions? (in context: shadows except where are there light sources) I was hoping it would be as simple as a rect() followed by subs... | TITLE:
Fill HTML canvas excluding arbitrary (possibly overlapping) circles
QUESTION:
Given an HTML canvas that has already been drawn to, what's the best way to shade the whole canvas except given circular regions? (in context: shadows except where are there light sources) I was hoping it would be as simple as a rect(... | [
"html",
"canvas"
] | 0 | 1 | 410 | 1 | 0 | 2011-06-01T08:03:32.087000 | 2011-06-01T11:05:44.973000 |
6,198,049 | 6,211,281 | Which is make best performance dynamicaly added controls or drag and drop form toolbox? | I am new to software programming. So tell me Which is make best performance dynamicaly added controls or drag and drop form toolbox? and how to calculate performance? | Dynamically Added a controls make best performance then drag and drop dynamic control can be occupy less memory then drag and drop and u can also create HTML controls dynamically... and other option is you can create your own controls (User controls) also and then use it in your page | Which is make best performance dynamicaly added controls or drag and drop form toolbox? I am new to software programming. So tell me Which is make best performance dynamicaly added controls or drag and drop form toolbox? and how to calculate performance? | TITLE:
Which is make best performance dynamicaly added controls or drag and drop form toolbox?
QUESTION:
I am new to software programming. So tell me Which is make best performance dynamicaly added controls or drag and drop form toolbox? and how to calculate performance?
ANSWER:
Dynamically Added a controls make best... | [
"winforms"
] | 0 | 1 | 123 | 1 | 0 | 2011-06-01T08:03:44.780000 | 2011-06-02T06:39:04.853000 |
6,198,054 | 6,198,102 | How to get echo work from a "client" PowerShell script? | I'm running a PowerShell script, which, call another script by itself. In the first script, when I put echo, everything is OK, but I can't get any echo in the second ("client") script to show anything. How can I get echo work? I'm using PowerShell 2.0 on Windows 7 Pro, with PowerGUI. (I also tried with ISE, but it does... | You should use Write-Host directly insted of echo (witch is alias for Write-Output). | How to get echo work from a "client" PowerShell script? I'm running a PowerShell script, which, call another script by itself. In the first script, when I put echo, everything is OK, but I can't get any echo in the second ("client") script to show anything. How can I get echo work? I'm using PowerShell 2.0 on Windows 7... | TITLE:
How to get echo work from a "client" PowerShell script?
QUESTION:
I'm running a PowerShell script, which, call another script by itself. In the first script, when I put echo, everything is OK, but I can't get any echo in the second ("client") script to show anything. How can I get echo work? I'm using PowerShel... | [
".net",
"scripting",
"powershell"
] | 1 | 2 | 675 | 3 | 0 | 2011-06-01T08:04:10.997000 | 2011-06-01T08:08:54.620000 |
6,198,058 | 6,198,586 | Rails: method_missing is not called on model when using associations | My current code: class Product < ActiveRecord::Base belongs_to:category end
class Category < ActiveRecord::Base def method_missing name true end end
Category.new.ex_undefined_method #=> true Product.last.category.ex_undefined_method #=> NoMethodError: undefined method `ex_undefined_method' for # This happens because ... | Note that the AssociationProxy object only sends on methods that the target claims to respond_to?. Therefore, the fix here is to update respond_to? as well: class Category < ActiveRecord::Base def method_missing(name, *args, █) if name =~ /^handleable/ "Handled" else super end end
def respond_to?(name) if name =~ /^ha... | Rails: method_missing is not called on model when using associations My current code: class Product < ActiveRecord::Base belongs_to:category end
class Category < ActiveRecord::Base def method_missing name true end end
Category.new.ex_undefined_method #=> true Product.last.category.ex_undefined_method #=> NoMethodErro... | TITLE:
Rails: method_missing is not called on model when using associations
QUESTION:
My current code: class Product < ActiveRecord::Base belongs_to:category end
class Category < ActiveRecord::Base def method_missing name true end end
Category.new.ex_undefined_method #=> true Product.last.category.ex_undefined_metho... | [
"ruby-on-rails",
"associations",
"belongs-to",
"method-missing"
] | 2 | 8 | 3,025 | 3 | 0 | 2011-06-01T08:04:32.877000 | 2011-06-01T08:55:32.807000 |
6,198,059 | 6,198,420 | TreeList RadControl : No records to display | As I have to test some RadControls components for my company, I'm currently working on the TreeList control. Even if I only try to do basic stuff (populate the control with a database query) It doesn't work and I just can't figure out why! My previous investigation lead me to think that issue is related to DataKeyNames... | Have a look at this sample on the telerik web site. It seems it's exactly what you're trying to do. | TreeList RadControl : No records to display As I have to test some RadControls components for my company, I'm currently working on the TreeList control. Even if I only try to do basic stuff (populate the control with a database query) It doesn't work and I just can't figure out why! My previous investigation lead me to... | TITLE:
TreeList RadControl : No records to display
QUESTION:
As I have to test some RadControls components for my company, I'm currently working on the TreeList control. Even if I only try to do basic stuff (populate the control with a database query) It doesn't work and I just can't figure out why! My previous invest... | [
"vb.net",
"asp.net-ajax",
"telerik",
"rad-controls"
] | 0 | 0 | 777 | 1 | 0 | 2011-06-01T08:04:45.963000 | 2011-06-01T08:40:00.750000 |
6,198,065 | 6,198,252 | Overriding HyperLink.Text property doesn't work correctly | I'm trying to work on a sub-class of System.Web.UI.WebControls.HyperLink in C# and I want to be able to specify a default text property that will replace the text value in certain conditions. public class MyHyperLink: HyperLink { public string DefaultText { get; set; }
public override string Text { get { return string... | According to reflector, you did miss an attribute, and did not override the setter public class MyHyperLink: HyperLink { public string DefaultText { get; set; }
[PersistenceMode(PersistenceMode.InnerDefaultProperty)] public override string Text { get { return string.IsNullOrEmpty(base.Text)? this.DefaultText: base.Tex... | Overriding HyperLink.Text property doesn't work correctly I'm trying to work on a sub-class of System.Web.UI.WebControls.HyperLink in C# and I want to be able to specify a default text property that will replace the text value in certain conditions. public class MyHyperLink: HyperLink { public string DefaultText { get;... | TITLE:
Overriding HyperLink.Text property doesn't work correctly
QUESTION:
I'm trying to work on a sub-class of System.Web.UI.WebControls.HyperLink in C# and I want to be able to specify a default text property that will replace the text value in certain conditions. public class MyHyperLink: HyperLink { public string ... | [
"c#",
"asp.net",
"hyperlink",
"properties",
"overriding"
] | 0 | 1 | 361 | 3 | 0 | 2011-06-01T08:05:30.380000 | 2011-06-01T08:24:28.013000 |
6,198,082 | 6,198,148 | MySQL batch update | I have 2 tables (MySQL) data_details accounts_invoices Ideally every data_details should have an accounts_invoices id. (data_details has a foreign key with accounts_invoices's primary key) For some reason there are data_details records where there accounts_invoice_id doesn't exist in accounts_invoices table So I tried ... | Now this might be a wild guess, but I think the problem is that you update the same table you're querying. I think the work-around is to use a temporary table, like this: update data_details set account_invoice_id = 1 where account_invoice_id in ( select * from ( select d.id from data_details d left join accounts_invoi... | MySQL batch update I have 2 tables (MySQL) data_details accounts_invoices Ideally every data_details should have an accounts_invoices id. (data_details has a foreign key with accounts_invoices's primary key) For some reason there are data_details records where there accounts_invoice_id doesn't exist in accounts_invoice... | TITLE:
MySQL batch update
QUESTION:
I have 2 tables (MySQL) data_details accounts_invoices Ideally every data_details should have an accounts_invoices id. (data_details has a foreign key with accounts_invoices's primary key) For some reason there are data_details records where there accounts_invoice_id doesn't exist i... | [
"mysql",
"sql",
"sql-update",
"mysql-error-1093"
] | 5 | 4 | 6,507 | 1 | 0 | 2011-06-01T08:07:38.713000 | 2011-06-01T08:13:48.690000 |
6,198,087 | 6,198,229 | Advice for Spring Adaptation for an SAP connected intranet site | We have an intranet site that serves 50.000 users at maximum (generally only a couple of people is online at the same time). We use Eclipse, SAP Connector, J2EE 1.4, JSP, Struts 1.x, Tomcat 4.1, and SVN. 1- I want to modernize/rewrite the whole site with an easier structure and best-in-class software and techniques. Wh... | Yes You can use Spring with following module 1. For presentation tier you will have Spring MVC Upgrade the Tomcat version to latest stable version. You also use Hibernate and JPA to increase performance at database level. -- In DAO tier You can DOJO or DWR or JQuery for AJAX in presentation tier You can do aspect orien... | Advice for Spring Adaptation for an SAP connected intranet site We have an intranet site that serves 50.000 users at maximum (generally only a couple of people is online at the same time). We use Eclipse, SAP Connector, J2EE 1.4, JSP, Struts 1.x, Tomcat 4.1, and SVN. 1- I want to modernize/rewrite the whole site with a... | TITLE:
Advice for Spring Adaptation for an SAP connected intranet site
QUESTION:
We have an intranet site that serves 50.000 users at maximum (generally only a couple of people is online at the same time). We use Eclipse, SAP Connector, J2EE 1.4, JSP, Struts 1.x, Tomcat 4.1, and SVN. 1- I want to modernize/rewrite the... | [
"java",
"spring",
"jakarta-ee"
] | 1 | 1 | 292 | 1 | 0 | 2011-06-01T08:07:57.983000 | 2011-06-01T08:21:36.817000 |
6,198,089 | 6,198,234 | Append new elements from custom adapter to ListView | I've got a ListView with a 'show next results' button. The list is filled by a custom adapter extending BaseAdapter. Using it as shown below, only the new results are shown. How can I append the new results to the list? ListView listView = (ListView)findViewById(android.R.id.list);
// Show next results button View foo... | It depends on your implementation of ItemAdapter, I'd recommend holding a reference to ItemAdapter, then updating the data set behind it and then calling notifyDataSetChanged() on it. something like: ItemAdapter ia = new ItemAdapter(ItemList.this, mType, mItems); setListAdapter(ia);
footerView.setOnClickListener(new V... | Append new elements from custom adapter to ListView I've got a ListView with a 'show next results' button. The list is filled by a custom adapter extending BaseAdapter. Using it as shown below, only the new results are shown. How can I append the new results to the list? ListView listView = (ListView)findViewById(andro... | TITLE:
Append new elements from custom adapter to ListView
QUESTION:
I've got a ListView with a 'show next results' button. The list is filled by a custom adapter extending BaseAdapter. Using it as shown below, only the new results are shown. How can I append the new results to the list? ListView listView = (ListView)... | [
"android",
"listview",
"append"
] | 1 | 3 | 2,837 | 1 | 0 | 2011-06-01T08:08:13.663000 | 2011-06-01T08:22:38.673000 |
6,198,104 | 6,198,763 | Reference: What is a perfect code sample using the MySQL extension? | This is to create a community learning resource. The goal is to have examples of good code that do not repeat the awful mistakes that can so often be found in copy/pasted PHP code. I have requested it be made Community Wiki. This is not meant as a coding contest. It's not about finding the fastest or most compact way t... | My stab at it. Tried to keep it as simple as possible, while still maintaining some real-world conveniences. Handles unicode and uses loose comparison for readability. Be nice;-) '127.0.0.1', 'user' => 'my_user', 'pass' => 'my_pass', 'db' => 'my_database' );
# Connect and disable mysql error output $connection = @mysq... | Reference: What is a perfect code sample using the MySQL extension? This is to create a community learning resource. The goal is to have examples of good code that do not repeat the awful mistakes that can so often be found in copy/pasted PHP code. I have requested it be made Community Wiki. This is not meant as a codi... | TITLE:
Reference: What is a perfect code sample using the MySQL extension?
QUESTION:
This is to create a community learning resource. The goal is to have examples of good code that do not repeat the awful mistakes that can so often be found in copy/pasted PHP code. I have requested it be made Community Wiki. This is n... | [
"php",
"mysql",
"security",
"sql-injection"
] | 61 | 12 | 2,816 | 5 | 0 | 2011-06-01T08:09:03.803000 | 2011-06-01T09:10:10.053000 |
6,198,105 | 6,198,166 | Winforms retrieving data from database | I'm developing a windows form application. Could any one please advise what are the different ways I can connect to database and retrieve the data. I know one way is through Webservice? Is there any other way? I am guessing no? Any help much appreciated. | Your question is too general but let me try to answer it. In case the Data base server is across WAN you will need to expose some web service on server to expose the data from data base otherwise in case the database is in a LAN environment or on local machine you can use various data access components on.NET like ADO.... | Winforms retrieving data from database I'm developing a windows form application. Could any one please advise what are the different ways I can connect to database and retrieve the data. I know one way is through Webservice? Is there any other way? I am guessing no? Any help much appreciated. | TITLE:
Winforms retrieving data from database
QUESTION:
I'm developing a windows form application. Could any one please advise what are the different ways I can connect to database and retrieve the data. I know one way is through Webservice? Is there any other way? I am guessing no? Any help much appreciated.
ANSWER:... | [
"c#",
"sql-server",
"winforms",
"data-access"
] | 0 | 3 | 687 | 5 | 0 | 2011-06-01T08:09:10.510000 | 2011-06-01T08:15:34.037000 |
6,198,107 | 6,198,433 | python html parsing | i need do some html parsing use python.if i have a html file like bellow: 《body》 《div class="mydiv"》 《p》i want got it《/p》 《div》 《p》 good 《/p》 《a》 boy 《/a》 《/div》 《/div》 《/body》 how can i get the content of 《div class="mydiv"》,say, i want got. 《p》i want got it《/p》 《div》 《p》 good 《/p》 《a》 boy 《/a》 《/div》 i have try HTMLP... | With BeautifulSoup it is as simple as: from BeautifulSoup import BeautifulSoup html = """ i want got it good boy """
soup = BeautifulSoup(html) result = soup.findAll('div', {'class': 'mydiv'}) tag = result[0] print tag.contents [u'\n', i want got it, u'\n', good boy, u'\n'] | python html parsing i need do some html parsing use python.if i have a html file like bellow: 《body》 《div class="mydiv"》 《p》i want got it《/p》 《div》 《p》 good 《/p》 《a》 boy 《/a》 《/div》 《/div》 《/body》 how can i get the content of 《div class="mydiv"》,say, i want got. 《p》i want got it《/p》 《div》 《p》 good 《/p》 《a》 boy 《/a》 《/d... | TITLE:
python html parsing
QUESTION:
i need do some html parsing use python.if i have a html file like bellow: 《body》 《div class="mydiv"》 《p》i want got it《/p》 《div》 《p》 good 《/p》 《a》 boy 《/a》 《/div》 《/div》 《/body》 how can i get the content of 《div class="mydiv"》,say, i want got. 《p》i want got it《/p》 《div》 《p》 good 《/p... | [
"python",
"html"
] | 0 | 5 | 982 | 3 | 0 | 2011-06-01T08:09:19.287000 | 2011-06-01T08:41:11.990000 |
6,198,112 | 6,198,170 | Bind & Unbind... how to bind again when this function finished? | http://jsfiddle.net/3NRsd/ var foo = $("div").bind("click", function() { $("div").animate({"height": "500px"}, 2000); $("div").animate({"height": "50px"}, 2000); $("div").unbind(); }); | You could do: function handler() { $(this).unbind().animate({"height": "500px"}, 2000);.animate({"height": "50px"}, 2000, function(){ $(this).click(handler); // <- gets called once the animation finishes }); }
$('div').click(handler); DEMO | Bind & Unbind... how to bind again when this function finished? http://jsfiddle.net/3NRsd/ var foo = $("div").bind("click", function() { $("div").animate({"height": "500px"}, 2000); $("div").animate({"height": "50px"}, 2000); $("div").unbind(); }); | TITLE:
Bind & Unbind... how to bind again when this function finished?
QUESTION:
http://jsfiddle.net/3NRsd/ var foo = $("div").bind("click", function() { $("div").animate({"height": "500px"}, 2000); $("div").animate({"height": "50px"}, 2000); $("div").unbind(); });
ANSWER:
You could do: function handler() { $(this).u... | [
"javascript",
"jquery",
"bind",
"unbind"
] | 2 | 3 | 842 | 2 | 0 | 2011-06-01T08:09:40.963000 | 2011-06-01T08:16:10.823000 |
6,198,118 | 6,198,216 | Disabling digit grouping in a JSpinner | I needed a widget to select a TCP/UDP port, so I wrote the following: public static JSpinner makePortSpinner() { final JSpinner spinner = new JSpinner( new SpinnerNumberModel( DefaultPort, 1024, 65535, 1 ) ); spinner.setFont( Monospaced ); return spinner; }... Monospaced and DefaultPort being static constants. I would ... | Set the format of the number editor on your spinner: spinner.setEditor(new JSpinner.NumberEditor(spinner,"#")); or to be more explicit: JSpinner.NumberEditor editor = new JSpinner.NumberEditor(spinner); editor.getFormat().setGroupingUsed(false); spinner.setEditor(editor); | Disabling digit grouping in a JSpinner I needed a widget to select a TCP/UDP port, so I wrote the following: public static JSpinner makePortSpinner() { final JSpinner spinner = new JSpinner( new SpinnerNumberModel( DefaultPort, 1024, 65535, 1 ) ); spinner.setFont( Monospaced ); return spinner; }... Monospaced and Defau... | TITLE:
Disabling digit grouping in a JSpinner
QUESTION:
I needed a widget to select a TCP/UDP port, so I wrote the following: public static JSpinner makePortSpinner() { final JSpinner spinner = new JSpinner( new SpinnerNumberModel( DefaultPort, 1024, 65535, 1 ) ); spinner.setFont( Monospaced ); return spinner; }... Mo... | [
"java",
"swing",
"user-interface",
"number-formatting",
"jspinner"
] | 10 | 17 | 3,591 | 1 | 0 | 2011-06-01T08:10:48.743000 | 2011-06-01T08:20:53.170000 |
6,198,132 | 6,198,548 | PL/SQL procedure within a package | How can I use a stored PACKAGE foo on the database using PL/SQL? Say the package contains a PROCEDURE bar. How can I call it? | The procedure is called by.. In SQL*Plus: declare begin foo.bar(par1, par2, par3); end; From odbc/jdbc you typically use the following SQL: SQL_STRING = "{ call foo.bar(?,?,?) }" | PL/SQL procedure within a package How can I use a stored PACKAGE foo on the database using PL/SQL? Say the package contains a PROCEDURE bar. How can I call it? | TITLE:
PL/SQL procedure within a package
QUESTION:
How can I use a stored PACKAGE foo on the database using PL/SQL? Say the package contains a PROCEDURE bar. How can I call it?
ANSWER:
The procedure is called by.. In SQL*Plus: declare begin foo.bar(par1, par2, par3); end; From odbc/jdbc you typically use the followin... | [
"oracle",
"plsql"
] | 1 | 2 | 200 | 1 | 0 | 2011-06-01T08:11:53.413000 | 2011-06-01T08:52:15.130000 |
6,198,133 | 6,198,153 | Storing SQL Server 2005 datetime | I have a php script inserting values in to SQL Server 2005 table via SQL $date = '15 Jun 2011 00:00'; $sql = "INSERT INTO shows ( DateStart ) VALUES ( '$date')"; I have 2 issues: 1) how best to convert this date into something SQL Server understands? The default format is mm/dd/yyyy on my system but I want to present t... | Point 1: Use ISO date format YYYY-MM-DDTHH:MM:SS Note: For date only use YYYYMMDD becuase of anomalies in how SQL Server parse dates Point 2: NULLIF(value, '') | Storing SQL Server 2005 datetime I have a php script inserting values in to SQL Server 2005 table via SQL $date = '15 Jun 2011 00:00'; $sql = "INSERT INTO shows ( DateStart ) VALUES ( '$date')"; I have 2 issues: 1) how best to convert this date into something SQL Server understands? The default format is mm/dd/yyyy on ... | TITLE:
Storing SQL Server 2005 datetime
QUESTION:
I have a php script inserting values in to SQL Server 2005 table via SQL $date = '15 Jun 2011 00:00'; $sql = "INSERT INTO shows ( DateStart ) VALUES ( '$date')"; I have 2 issues: 1) how best to convert this date into something SQL Server understands? The default format... | [
"sql",
"sql-server",
"sql-server-2005",
"datetime"
] | 1 | 5 | 232 | 2 | 0 | 2011-06-01T08:12:02.983000 | 2011-06-01T08:14:20.313000 |
6,198,135 | 6,198,167 | How can I have a default value in a non required django form field? | class MyForm(forms.Form):... my_field = forms.CharField(required=False) By default, my_field will have None, if it wasn't completed. How can I make it have a default value? Is there any way I wouldn't have to use initial? I don't want it displaying the default value inside the widget. | When you pull the value from the form, set it to the default if it has no value. my_value = myform.cleaned_data['my_field'] or SOME_DEFAULT_VALUE | How can I have a default value in a non required django form field? class MyForm(forms.Form):... my_field = forms.CharField(required=False) By default, my_field will have None, if it wasn't completed. How can I make it have a default value? Is there any way I wouldn't have to use initial? I don't want it displaying the... | TITLE:
How can I have a default value in a non required django form field?
QUESTION:
class MyForm(forms.Form):... my_field = forms.CharField(required=False) By default, my_field will have None, if it wasn't completed. How can I make it have a default value? Is there any way I wouldn't have to use initial? I don't want... | [
"django-forms"
] | 0 | 2 | 156 | 1 | 0 | 2011-06-01T08:12:05.397000 | 2011-06-01T08:15:42.593000 |
6,198,145 | 6,270,940 | Code::Blocks to XCode : importing a C++ with a GUI | I currently have a project, written in C++, it uses multiple libraries, including an sqlite and a wxWidgets library, it has a Graphical User Interface, made with Interface Builder. This project was made with Code::Blocks. What I now want to do, is import this whole project into XCode to make an.app file. I know about l... | Steps taken wx-config --cppflags wx-config --libs Opening a new xcode project (cocoa) Pasting the code written (all the classes, and the interface built) Organizing the header search paths (including the output of libs) Organizing the linking Organizing the GCC other flags (including the output of cppflags here) after ... | Code::Blocks to XCode : importing a C++ with a GUI I currently have a project, written in C++, it uses multiple libraries, including an sqlite and a wxWidgets library, it has a Graphical User Interface, made with Interface Builder. This project was made with Code::Blocks. What I now want to do, is import this whole pro... | TITLE:
Code::Blocks to XCode : importing a C++ with a GUI
QUESTION:
I currently have a project, written in C++, it uses multiple libraries, including an sqlite and a wxWidgets library, it has a Graphical User Interface, made with Interface Builder. This project was made with Code::Blocks. What I now want to do, is imp... | [
"c++",
"xcode",
"import",
"interface-builder",
"codeblocks"
] | 1 | 2 | 2,039 | 1 | 0 | 2011-06-01T08:13:28.413000 | 2011-06-07T20:02:25.670000 |
6,198,154 | 6,198,248 | How to append a row in a xml using groovy | I have this xml where i'd like to add a new row Abhishek abhishek123@cjb.net Simon a@a.com I used MarkupBuilder(writer) to create this xml but now how can i append a new row element Edited: def writer = new StringWriter() def xml = new MarkupBuilder(writer) | To do this in Groovy, one solution is: import groovy.xml.StreamingMarkupBuilder
def xml = """ Abhishek abhishek123@cjb.net Simon a@a.com """
def root = new XmlSlurper().parseText( xml ) root.appendNode { row { name( 'tim' ) host( 'a@woo.com' ) } }
def outputBuilder = new StreamingMarkupBuilder() String result = outp... | How to append a row in a xml using groovy I have this xml where i'd like to add a new row Abhishek abhishek123@cjb.net Simon a@a.com I used MarkupBuilder(writer) to create this xml but now how can i append a new row element Edited: def writer = new StringWriter() def xml = new MarkupBuilder(writer) | TITLE:
How to append a row in a xml using groovy
QUESTION:
I have this xml where i'd like to add a new row Abhishek abhishek123@cjb.net Simon a@a.com I used MarkupBuilder(writer) to create this xml but now how can i append a new row element Edited: def writer = new StringWriter() def xml = new MarkupBuilder(writer)
A... | [
"java",
"xml",
"groovy"
] | 1 | 4 | 2,994 | 1 | 0 | 2011-06-01T08:14:38.297000 | 2011-06-01T08:24:01.430000 |
6,198,155 | 6,204,196 | Asp.NET MVC ModelBinder, getting Action Method | I got a custom ModelBinder and i would like to get the action. Because i want to get the Attributes of the action using reflection, the action name is not enough. my action method: [MyAttribute] public ActionResult Index([ModelBinder(typeof(MyModelBinder))] MyModel model) { } and here a typically ModelBinder public cla... | No, you cannot with 100% certainty get the current action from a model binder. The model binder is not coupled to the action, but to binding to a model. For example, you can call TryUpdateMode(model) In an filter before an action has been chosen. Also note that an action method might not even be a CLR method (see http:... | Asp.NET MVC ModelBinder, getting Action Method I got a custom ModelBinder and i would like to get the action. Because i want to get the Attributes of the action using reflection, the action name is not enough. my action method: [MyAttribute] public ActionResult Index([ModelBinder(typeof(MyModelBinder))] MyModel model) ... | TITLE:
Asp.NET MVC ModelBinder, getting Action Method
QUESTION:
I got a custom ModelBinder and i would like to get the action. Because i want to get the Attributes of the action using reflection, the action name is not enough. my action method: [MyAttribute] public ActionResult Index([ModelBinder(typeof(MyModelBinder)... | [
"asp.net-mvc",
"asp.net-mvc-2",
"asp.net-mvc-3"
] | 9 | 4 | 2,875 | 3 | 0 | 2011-06-01T08:14:40.153000 | 2011-06-01T16:03:30.693000 |
6,198,157 | 6,198,334 | Plot randomness | I am looking for help with generating this plot from a sequence of ones and zeros, in R. I am using it as one of a battery of tests to investigate whether a sequence is random or not (by looking for patterns in the noise). Note: This is not homework! E.g., > y <- rnorm(3000, 1, 2) > plot(y) >plot(y~y) My data is in thi... | One way would be side <- 100 my.zero <- matrix(sample(c(0,1), side^2, replace = TRUE), side) image(my.zero) EDIT You can play with the prob argument in sample. side <- 100 my.zero <- matrix(sample(c(0,1), side^2, replace = TRUE, prob = c(0.8, 2)), side) image(my.zero) EDIT 2 y <- rnorm(10000, 1, 2) y <- matrix(ifelse(y... | Plot randomness I am looking for help with generating this plot from a sequence of ones and zeros, in R. I am using it as one of a battery of tests to investigate whether a sequence is random or not (by looking for patterns in the noise). Note: This is not homework! E.g., > y <- rnorm(3000, 1, 2) > plot(y) >plot(y~y) M... | TITLE:
Plot randomness
QUESTION:
I am looking for help with generating this plot from a sequence of ones and zeros, in R. I am using it as one of a battery of tests to investigate whether a sequence is random or not (by looking for patterns in the noise). Note: This is not homework! E.g., > y <- rnorm(3000, 1, 2) > pl... | [
"r",
"random",
"plot"
] | 2 | 3 | 262 | 1 | 0 | 2011-06-01T08:14:48.533000 | 2011-06-01T08:31:47.030000 |
6,198,164 | 6,198,309 | JSON encoded formatter function name | I'm using jqgrid for which I create column definitions on server as dynamic objects and serialize them using Json.Encode: html.Raw(System.Web.Helpers.Json.Encode(ColumnDefinition); I have problem with applying custom formatter, as my serialized column definition is: {"name":"Icon","index":"Icon","hidden":false,"formatt... | It seems to me that you have the same or close problem as described here. You will have to replace the string values of the formatter properties to the function reference. Pragmatic way is to search for the strings like "iconFormatter" (search for all custom formatters which you use) and replace there to the correspond... | JSON encoded formatter function name I'm using jqgrid for which I create column definitions on server as dynamic objects and serialize them using Json.Encode: html.Raw(System.Web.Helpers.Json.Encode(ColumnDefinition); I have problem with applying custom formatter, as my serialized column definition is: {"name":"Icon","... | TITLE:
JSON encoded formatter function name
QUESTION:
I'm using jqgrid for which I create column definitions on server as dynamic objects and serialize them using Json.Encode: html.Raw(System.Web.Helpers.Json.Encode(ColumnDefinition); I have problem with applying custom formatter, as my serialized column definition is... | [
"javascript",
"jqgrid",
"json"
] | 1 | 1 | 537 | 1 | 0 | 2011-06-01T08:15:21.470000 | 2011-06-01T08:29:26.970000 |
6,198,168 | 6,199,163 | Projecting a list of lists efficiently in F# | I have to do projection of a list of lists which returns all combinations with each element from each list. For example: projection([[1]; [2; 3]]) = [[1; 2]; [1; 3]]. projection([[1]; [2; 3]; [4; 5]]) = [[1; 2; 4]; [1; 2; 5]; [1; 3; 4]; [1; 3; 5]]. I come up with a function: let projection lss0 = let rec projectionUtil... | First of all, try to avoid list concatenation (@) whenever possible, since it's O(N) instead of O(1) prepend. I'd start with a (relatively) easy to follow plan of how to compute the cartesian outer product of lists. Prepend each element of the first list to each sublist in the cartesian product of the remaining lists. ... | Projecting a list of lists efficiently in F# I have to do projection of a list of lists which returns all combinations with each element from each list. For example: projection([[1]; [2; 3]]) = [[1; 2]; [1; 3]]. projection([[1]; [2; 3]; [4; 5]]) = [[1; 2; 4]; [1; 2; 5]; [1; 3; 4]; [1; 3; 5]]. I come up with a function:... | TITLE:
Projecting a list of lists efficiently in F#
QUESTION:
I have to do projection of a list of lists which returns all combinations with each element from each list. For example: projection([[1]; [2; 3]]) = [[1; 2]; [1; 3]]. projection([[1]; [2; 3]; [4; 5]]) = [[1; 2; 4]; [1; 2; 5]; [1; 3; 4]; [1; 3; 5]]. I come u... | [
"performance",
"list",
"f#"
] | 11 | 17 | 2,534 | 6 | 0 | 2011-06-01T08:15:49.813000 | 2011-06-01T09:40:28.553000 |
6,198,169 | 6,198,212 | How to configure java on Linux machine? | I am installing java to my Linux machine. Downloading the jre and jdk and extracting them did not help only - I assume some environmental variables are also needed. What all path variables are needed to be set? With which values? Expecting the java installs itself to? | Depending on your distribution it may be easiest to install from your package manager. On Ubuntu, for example, you can do: sudo aptitude install open-jdk Otherwise, usually the sun (oracle) version of java comes with a.bin file which you need to make executable and run as root in order to get java properly installed. Y... | How to configure java on Linux machine? I am installing java to my Linux machine. Downloading the jre and jdk and extracting them did not help only - I assume some environmental variables are also needed. What all path variables are needed to be set? With which values? Expecting the java installs itself to? | TITLE:
How to configure java on Linux machine?
QUESTION:
I am installing java to my Linux machine. Downloading the jre and jdk and extracting them did not help only - I assume some environmental variables are also needed. What all path variables are needed to be set? With which values? Expecting the java installs itse... | [
"linux",
"ubuntu",
"java"
] | 0 | 2 | 22,868 | 4 | 0 | 2011-06-01T08:15:56.307000 | 2011-06-01T08:20:36.197000 |
6,198,171 | 6,198,219 | how to put phone call functionality in iphone application | I am making an application in which there is a text field to enter phone number, now I want whenever user put number on that text field, there must be a button get generate to call on that particular number. Anyone know about this functionality, then please help me. Thanks alot. | Assume self.textField is a UITextField where you can enter the number. Then add the following event listener listener to your 'call' button: - (IBAction)makeCall{ NSURL *target = [[[NSURL alloc] initWithString:[NSString stringWithFormat:@"tel:%@", self.textField.text]] autorelease]; [[UIApplication sharedApplication] o... | how to put phone call functionality in iphone application I am making an application in which there is a text field to enter phone number, now I want whenever user put number on that text field, there must be a button get generate to call on that particular number. Anyone know about this functionality, then please help... | TITLE:
how to put phone call functionality in iphone application
QUESTION:
I am making an application in which there is a text field to enter phone number, now I want whenever user put number on that text field, there must be a button get generate to call on that particular number. Anyone know about this functionality... | [
"iphone",
"cocoa-touch",
"phone-call"
] | 0 | 4 | 1,044 | 1 | 0 | 2011-06-01T08:16:16.313000 | 2011-06-01T08:21:03.663000 |
6,198,175 | 6,198,303 | jquery remove/add select options after cloning select list | I need to be able to clone a drop down list and filter only those options that were NOT yet selected in the group of select lists. For example, having the following: Some service Another one One more When i click the "clone" button it would clone the select list with ONLY those options that have NOT been yet selected. ... | This seems to do what you want: http://jsfiddle.net/infernalbadger/SKVSu/1/ $('#clone').click(function() { var original = $('select.selService:eq(0)'); var allSelects = $('select.selService'); var clone = original.clone();
$('option', clone).filter(function(i) { return allSelects.find('option:selected[value="' + $(thi... | jquery remove/add select options after cloning select list I need to be able to clone a drop down list and filter only those options that were NOT yet selected in the group of select lists. For example, having the following: Some service Another one One more When i click the "clone" button it would clone the select lis... | TITLE:
jquery remove/add select options after cloning select list
QUESTION:
I need to be able to clone a drop down list and filter only those options that were NOT yet selected in the group of select lists. For example, having the following: Some service Another one One more When i click the "clone" button it would cl... | [
"javascript",
"jquery",
"jquery-selectors"
] | 1 | 3 | 3,857 | 1 | 0 | 2011-06-01T08:16:30.957000 | 2011-06-01T08:28:47.827000 |
6,198,177 | 6,201,476 | Sugar CRM, Getting auto increment value in the custom field | I am using Sugar Professional 6 and also checking the same in community version. In project module, I have project Name which should generate automatically from another field called MSO with the prefix and auto increment number. For ex. MSO Code- Xyz Project Name should be- Xyz1 For next record MSO Code- Abcd Project N... | I would definately make it using logic hooks on the project module save action. Create a logic_hooks.php in custom/modules/ myModule / Create file.php in /custom/modules/ myModule /logic_hooks/ For more info see: http://developers.sugarcrm.com/docs/OS/6.1/-docs-Developer_Guides-Sugar_Developer_Guide_6.1.0-Chapter%204%2... | Sugar CRM, Getting auto increment value in the custom field I am using Sugar Professional 6 and also checking the same in community version. In project module, I have project Name which should generate automatically from another field called MSO with the prefix and auto increment number. For ex. MSO Code- Xyz Project N... | TITLE:
Sugar CRM, Getting auto increment value in the custom field
QUESTION:
I am using Sugar Professional 6 and also checking the same in community version. In project module, I have project Name which should generate automatically from another field called MSO with the prefix and auto increment number. For ex. MSO C... | [
"php",
"mysql",
"sugarcrm"
] | 0 | 3 | 3,249 | 2 | 0 | 2011-06-01T08:16:47.940000 | 2011-06-01T12:55:54.107000 |
6,198,186 | 6,198,236 | Drop down list for iPhone application | How can I add drop-down list to my iPhone application via Interface builder in Xcode 4. I can't see any object like drop-down list controller or something like that? | I belive the control you might want is the UIPicker ( Here's an image, its at the bottom ). This is the control that pops up when you select a dropdown list in safari on iOS. You can select it in the object picker in the interface editing area. There is no dropdown list controller as such, as far as I know. | Drop down list for iPhone application How can I add drop-down list to my iPhone application via Interface builder in Xcode 4. I can't see any object like drop-down list controller or something like that? | TITLE:
Drop down list for iPhone application
QUESTION:
How can I add drop-down list to my iPhone application via Interface builder in Xcode 4. I can't see any object like drop-down list controller or something like that?
ANSWER:
I belive the control you might want is the UIPicker ( Here's an image, its at the bottom ... | [
"objective-c",
"xcode",
"ios4",
"interface-builder",
"drop-down-menu"
] | 0 | 2 | 11,061 | 5 | 0 | 2011-06-01T08:17:49.647000 | 2011-06-01T08:22:40.560000 |
6,198,188 | 6,198,478 | Iterating over EnumMap#entrySet | Enumerating over Map#entrySet doesn't work as expected for all Map implementations, specially for EnumMap, IdentityHashMap and here is the sample code from Josh Bloch's puzzler presentation (Puzzle 5) - public class Size {
private enum Sex { MALE, FEMALE }
public static void main(String[] args) { printSize(new HashMa... | Have a look at the EnumMap.EntryIterator.next() implementation. This should be enough to figure out the problem. A clue is that the resulting set is: [FEMALE=2, FEMALE=2] which is not the correct result. The effect you see is due to the EnumMap.EntryIterator.hashCode() implementation (which is the Map.Entry here). It's... | Iterating over EnumMap#entrySet Enumerating over Map#entrySet doesn't work as expected for all Map implementations, specially for EnumMap, IdentityHashMap and here is the sample code from Josh Bloch's puzzler presentation (Puzzle 5) - public class Size {
private enum Sex { MALE, FEMALE }
public static void main(Strin... | TITLE:
Iterating over EnumMap#entrySet
QUESTION:
Enumerating over Map#entrySet doesn't work as expected for all Map implementations, specially for EnumMap, IdentityHashMap and here is the sample code from Josh Bloch's puzzler presentation (Puzzle 5) - public class Size {
private enum Sex { MALE, FEMALE }
public stat... | [
"java",
"collections",
"enums",
"dictionary"
] | 10 | 10 | 5,348 | 3 | 0 | 2011-06-01T08:18:03.880000 | 2011-06-01T08:44:58.293000 |
6,198,194 | 6,198,300 | How to see count of project downloads on GitHub? | Possible Duplicate: Github: Can I see the number of downloads for a repo? Can anybody tell where can I found the number of downloads of my project on GitHub? | You can find answer on the github support. There are technical limitations, we tried this in the past and it had a negative impact on performance. If we find a solution, we'll re-implement it. https://help.github.com/articles/getting-the-download-count-for-your-releases/ | How to see count of project downloads on GitHub? Possible Duplicate: Github: Can I see the number of downloads for a repo? Can anybody tell where can I found the number of downloads of my project on GitHub? | TITLE:
How to see count of project downloads on GitHub?
QUESTION:
Possible Duplicate: Github: Can I see the number of downloads for a repo? Can anybody tell where can I found the number of downloads of my project on GitHub?
ANSWER:
You can find answer on the github support. There are technical limitations, we tried t... | [
"github"
] | 90 | 80 | 51,418 | 3 | 0 | 2011-06-01T08:19:18.040000 | 2011-06-01T08:28:34.490000 |
6,198,196 | 6,198,307 | Do you know any video tutorials focused purely on Closures in JavaScript? | I am having a problem to really get the point when it comes to 'closures' in JavaScript. Do you know any video tutorials focused purely on defining closures in JavaScript with simple and clear examples? Thanks! | Have you tried: Stuart Langridge: Secrets of JavaScript Closures: http://vimeo.com/1967261 | Do you know any video tutorials focused purely on Closures in JavaScript? I am having a problem to really get the point when it comes to 'closures' in JavaScript. Do you know any video tutorials focused purely on defining closures in JavaScript with simple and clear examples? Thanks! | TITLE:
Do you know any video tutorials focused purely on Closures in JavaScript?
QUESTION:
I am having a problem to really get the point when it comes to 'closures' in JavaScript. Do you know any video tutorials focused purely on defining closures in JavaScript with simple and clear examples? Thanks!
ANSWER:
Have you... | [
"javascript",
"closures"
] | 2 | 1 | 148 | 2 | 0 | 2011-06-01T08:19:26.173000 | 2011-06-01T08:29:04.253000 |
6,198,199 | 6,198,985 | PHP 5.3 Exception sanity check - does PHP really print inner exception message? | I think this is a little weird. I'm running a script, which runs a program. I store the latest output in a variable. If the program or my script for different reasons cause an exception in the script, I catch the exception, append the error log, and rethrow it. A few levels above I catch it again, log the total message... | Turns out after all that, I guess it's expected behaviour. What PHP appears to do is work backwards up the exception stack when it has the chance to display it. See the following output: Rudis-Mac-Pro:~ rudi$ php ex.php PHP Fatal error: Uncaught exception 'Exception' with message 'I'm an inner exception' in /Users/rudi... | PHP 5.3 Exception sanity check - does PHP really print inner exception message? I think this is a little weird. I'm running a script, which runs a program. I store the latest output in a variable. If the program or my script for different reasons cause an exception in the script, I catch the exception, append the error... | TITLE:
PHP 5.3 Exception sanity check - does PHP really print inner exception message?
QUESTION:
I think this is a little weird. I'm running a script, which runs a program. I store the latest output in a variable. If the program or my script for different reasons cause an exception in the script, I catch the exception... | [
"exception",
"php-5.3"
] | 1 | 2 | 1,066 | 1 | 0 | 2011-06-01T08:19:45.580000 | 2011-06-01T09:26:43.833000 |
6,198,206 | 6,198,272 | Theme.Dialog activity displayed from Broadcast Receiver | I am using Theme.Dialog activity to display user a reminder whenever Alarm triggers, It has two buttons OK and Skip, now I want user to press any one of these buttons whenever this reminder activated and displayed on screen, so that reports can be generated. But If user mistakenly presses the back button or Home button... | As per Android architecture you can handle back button but not Home so what you can do is override the onPause() method of you activity and dismiss your alarm there, as per your requirement to keep the activity in front unless one of the button you supplied is not used is not possible | Theme.Dialog activity displayed from Broadcast Receiver I am using Theme.Dialog activity to display user a reminder whenever Alarm triggers, It has two buttons OK and Skip, now I want user to press any one of these buttons whenever this reminder activated and displayed on screen, so that reports can be generated. But I... | TITLE:
Theme.Dialog activity displayed from Broadcast Receiver
QUESTION:
I am using Theme.Dialog activity to display user a reminder whenever Alarm triggers, It has two buttons OK and Skip, now I want user to press any one of these buttons whenever this reminder activated and displayed on screen, so that reports can b... | [
"java",
"android"
] | 0 | 1 | 113 | 1 | 0 | 2011-06-01T08:20:10.293000 | 2011-06-01T08:26:18.653000 |
6,198,217 | 6,198,395 | Moving object from vector A to B in 2d environment with in increments of percents | I know coordinates of vectors A and B. How can I count first point between these two vectors? First vector X is 1% of the distance between vectors A and B. So first I will move object in vector A 1% closer to vector B. So I need to calculate vector X that is new vector for object, until it reaches vector B. | You want lerp ing. For reference, the basic formula is: x = A + t * (B - A) Where t is between 0 and 1. (Anything outside that range makes it an extra polation.) Check that x = A when t = 0 and x = B when t = 1. Note that my answer doesn't mention vectors or 2D. | Moving object from vector A to B in 2d environment with in increments of percents I know coordinates of vectors A and B. How can I count first point between these two vectors? First vector X is 1% of the distance between vectors A and B. So first I will move object in vector A 1% closer to vector B. So I need to calcul... | TITLE:
Moving object from vector A to B in 2d environment with in increments of percents
QUESTION:
I know coordinates of vectors A and B. How can I count first point between these two vectors? First vector X is 1% of the distance between vectors A and B. So first I will move object in vector A 1% closer to vector B. S... | [
"javascript",
"vector",
"linear-interpolation"
] | 6 | 19 | 10,667 | 2 | 0 | 2011-06-01T08:20:58.217000 | 2011-06-01T08:38:39.247000 |
6,198,218 | 6,198,341 | Which javascript library should I use? | I'll try to present my problem clearly, but I'm bit of a novice in programming so try to bear with me. I'm currently working on a piece of map which I eventually need to get up and running on a website. I'm working on the file in Adobe Illustrator and I have several layers to the map. What I need is an intuitive, graph... | Raphael JS is a very good Javascript vector-handling library, you may find it useful. By the way, this question has a link to a tutorial on it. | Which javascript library should I use? I'll try to present my problem clearly, but I'm bit of a novice in programming so try to bear with me. I'm currently working on a piece of map which I eventually need to get up and running on a website. I'm working on the file in Adobe Illustrator and I have several layers to the ... | TITLE:
Which javascript library should I use?
QUESTION:
I'll try to present my problem clearly, but I'm bit of a novice in programming so try to bear with me. I'm currently working on a piece of map which I eventually need to get up and running on a website. I'm working on the file in Adobe Illustrator and I have seve... | [
"javascript"
] | 1 | 0 | 252 | 4 | 0 | 2011-06-01T08:21:02.533000 | 2011-06-01T08:32:24.270000 |
6,198,222 | 6,198,258 | Discard changes in one single line | I've noticed that in Tower (Git client for the Mac) the user can discard changes even line by line. I wonder how could this be done using the command line? or maybe is something special of Tower? I frequently find myself in this case: @@ -391,7 +392,7 @@ extern BOOL validateReceiptAtPath(NSString *path);
NSURL *url = ... | This is called interactive staging and can be done using git add -i or git add -p. See the git-add manpage, pro git and the Git Community Book for more information. EDIT: To interactively unstage a file, you can use: git checkout -p HEAD Also see this SO question: Undo part of unstaged changes in git | Discard changes in one single line I've noticed that in Tower (Git client for the Mac) the user can discard changes even line by line. I wonder how could this be done using the command line? or maybe is something special of Tower? I frequently find myself in this case: @@ -391,7 +392,7 @@ extern BOOL validateReceiptAtP... | TITLE:
Discard changes in one single line
QUESTION:
I've noticed that in Tower (Git client for the Mac) the user can discard changes even line by line. I wonder how could this be done using the command line? or maybe is something special of Tower? I frequently find myself in this case: @@ -391,7 +392,7 @@ extern BOOL ... | [
"git"
] | 30 | 35 | 18,328 | 4 | 0 | 2011-06-01T08:21:12.553000 | 2011-06-01T08:25:11.743000 |
6,198,224 | 6,198,255 | How to refer to enclosing instance from C++ inner class? | In C++, an object refers to itself via this. But how does an instance of an inner class refer to the instance of its enclosing class? class Zoo { class Bear { void runAway() { EscapeService::helpEscapeFrom ( this, /* the Bear */??? /* I need a pointer to the Bear's Zoo here */); } }; }; EDIT My understanding of how non... | Unlike Java, inner classes in C++ do not have an implicit reference to an instance of their enclosing class. You can simulate this by passing an instance, there are two ways: pass to the method: class Zoo { class Bear { void runAway( Zoo & zoo) { EscapeService::helpEscapeFrom ( this, /* the Bear */ zoo ); } }; }; pass ... | How to refer to enclosing instance from C++ inner class? In C++, an object refers to itself via this. But how does an instance of an inner class refer to the instance of its enclosing class? class Zoo { class Bear { void runAway() { EscapeService::helpEscapeFrom ( this, /* the Bear */??? /* I need a pointer to the Bear... | TITLE:
How to refer to enclosing instance from C++ inner class?
QUESTION:
In C++, an object refers to itself via this. But how does an instance of an inner class refer to the instance of its enclosing class? class Zoo { class Bear { void runAway() { EscapeService::helpEscapeFrom ( this, /* the Bear */??? /* I need a p... | [
"c++",
"this",
"inner-classes"
] | 14 | 19 | 9,589 | 7 | 0 | 2011-06-01T08:21:17.550000 | 2011-06-01T08:25:00.043000 |
6,198,230 | 6,198,393 | Python: How to implement a static list in a class referencing all created items and an easy way to delete the items? | I have a class that stores all created references in a static list like this: class A: _List = []
def __init__(self): A._List.append(self)
def __del__(self): A._List.remove(self) Now if I do the following: a = A() del a a is not deleted, since it is still referenced to in the list. But the reference would be destroye... | You can use weakref.WeakValueDictionary (or weakref.WeakKeyDictionary ), it would automatcally remove any elements that do not exist anymore: class A(object): _instances = weakref.WeakValueDictionary() _next_id = functools.partial(next, itertools.count())
def __init__(self): self._instances[self._next_id()] = self | Python: How to implement a static list in a class referencing all created items and an easy way to delete the items? I have a class that stores all created references in a static list like this: class A: _List = []
def __init__(self): A._List.append(self)
def __del__(self): A._List.remove(self) Now if I do the follow... | TITLE:
Python: How to implement a static list in a class referencing all created items and an easy way to delete the items?
QUESTION:
I have a class that stores all created references in a static list like this: class A: _List = []
def __init__(self): A._List.append(self)
def __del__(self): A._List.remove(self) Now ... | [
"python",
"list",
"static",
"destructor"
] | 2 | 5 | 803 | 2 | 0 | 2011-06-01T08:21:58.243000 | 2011-06-01T08:38:32.853000 |
6,198,239 | 6,198,332 | MySQL join empty rows | I'm trying to construct a simple query in for getting users with particular meta fields (this is in Wordpress, but doesn't matter cause it's raw sql) A simple query i did looks like this SELECT * FROM wp_sb_users u LEFT OUTER JOIN wp_sb_usermeta m ON (u.ID=m.user_id) LEFT OUTER JOIN wp_sb_usermeta mm ON (u.ID=mm.user_i... | SELECT * FROM wp_sb_users u LEFT OUTER JOIN wp_sb_usermeta m ON (u.ID=m.user_id and m.meta_key = "autostatus") LEFT OUTER JOIN wp_sb_usermeta mm ON (u.ID=mm.user_id and mm.meta_key = "first_name") LEFT OUTER JOIN wp_sb_usermeta mmm ON (u.ID=mmm.user_id and mmm.meta_key = "last_name") | MySQL join empty rows I'm trying to construct a simple query in for getting users with particular meta fields (this is in Wordpress, but doesn't matter cause it's raw sql) A simple query i did looks like this SELECT * FROM wp_sb_users u LEFT OUTER JOIN wp_sb_usermeta m ON (u.ID=m.user_id) LEFT OUTER JOIN wp_sb_usermeta... | TITLE:
MySQL join empty rows
QUESTION:
I'm trying to construct a simple query in for getting users with particular meta fields (this is in Wordpress, but doesn't matter cause it's raw sql) A simple query i did looks like this SELECT * FROM wp_sb_users u LEFT OUTER JOIN wp_sb_usermeta m ON (u.ID=m.user_id) LEFT OUTER J... | [
"mysql",
"select",
"join",
"where-clause"
] | 2 | 4 | 7,807 | 1 | 0 | 2011-06-01T08:23:01.837000 | 2011-06-01T08:31:45.127000 |
6,198,240 | 6,198,462 | Does using small datatypes (for example short instead of int) reduce memory usage? | My question is basically about how the C# compiler handles memory allocation of small datatypes. I do know that for example operators like add are defined on int and not on short and thus computations will be executed as if the shorts are int members. Assuming the following: There's no business logic/validation logic a... | From a memory-only perspective, using short instead of int will be better. The simple reason is that a short variable needs only half the size of an int variable in memory. The CLR does not expand short to int in memory. Nevertheless this reduced memory consumption might and probably will decrease runtime performance o... | Does using small datatypes (for example short instead of int) reduce memory usage? My question is basically about how the C# compiler handles memory allocation of small datatypes. I do know that for example operators like add are defined on int and not on short and thus computations will be executed as if the shorts ar... | TITLE:
Does using small datatypes (for example short instead of int) reduce memory usage?
QUESTION:
My question is basically about how the C# compiler handles memory allocation of small datatypes. I do know that for example operators like add are defined on int and not on short and thus computations will be executed a... | [
"c#",
"types",
"memory-management",
"short"
] | 18 | 12 | 5,302 | 5 | 0 | 2011-06-01T08:23:07.547000 | 2011-06-01T08:43:47.700000 |
6,198,245 | 6,198,520 | use actionscript file in flex library | i want make own flex library and in this library use own actionscript file which will i use in more component in this library..this file contents eg only code public function computeSum(a:Number, b:Number):Number { return a + b; } but when i can this create just when i click File-New-Actionscript File (filename - OK) i... | You should encapsulate it on class, in order to use it with import directive, else u could use it with include Another approach is to create a "helper" class, or so called "singleton" class. - a class having only 1 instance, created statically. on this class u can expose the library functions which u do need and use th... | use actionscript file in flex library i want make own flex library and in this library use own actionscript file which will i use in more component in this library..this file contents eg only code public function computeSum(a:Number, b:Number):Number { return a + b; } but when i can this create just when i click File-N... | TITLE:
use actionscript file in flex library
QUESTION:
i want make own flex library and in this library use own actionscript file which will i use in more component in this library..this file contents eg only code public function computeSum(a:Number, b:Number):Number { return a + b; } but when i can this create just w... | [
"apache-flex",
"actionscript-3",
"mxml"
] | 1 | 1 | 479 | 3 | 0 | 2011-06-01T08:23:56.080000 | 2011-06-01T08:49:04.303000 |
6,198,246 | 6,198,316 | Unpacking Multiple ViewData Results | So I want to display results from multiple queries from the same controller. I have a controller method like this in mind: public ActionResult Index() { string tmp_username = Membership.GetUser().ToString(); ViewData["lemons"] = lemondb.lemon.Where(p => p.user == tmp_username).ToList(); ViewData["sugar" ] = lemondb.sug... | I think this is a simple C# issue. You should cast the object from the ViewData to List, where you have to replace T with the element type of your list. Check the type of the lemondb.lemon property to find out your element type. If the type is LemonTrader.Models.Message then try: @foreach (var action in (List )ViewData... | Unpacking Multiple ViewData Results So I want to display results from multiple queries from the same controller. I have a controller method like this in mind: public ActionResult Index() { string tmp_username = Membership.GetUser().ToString(); ViewData["lemons"] = lemondb.lemon.Where(p => p.user == tmp_username).ToList... | TITLE:
Unpacking Multiple ViewData Results
QUESTION:
So I want to display results from multiple queries from the same controller. I have a controller method like this in mind: public ActionResult Index() { string tmp_username = Membership.GetUser().ToString(); ViewData["lemons"] = lemondb.lemon.Where(p => p.user == tm... | [
"entity-framework",
"asp.net-mvc-3",
"viewdata"
] | 0 | 2 | 1,264 | 1 | 0 | 2011-06-01T08:24:00.697000 | 2011-06-01T08:30:04.580000 |
6,198,251 | 6,198,292 | how to call child method from parent reference? | I have a superclass called DataItem and it has multiple children and the children have children too. I dynamically set the object type but in the end the type reference is DataItem. Here is the code I use to determine the class type: private DataItem getDataItemUponType(DataSection parent,Element el) { String style = g... | You're trying to break the idea of the abstraction: you should be fine with DataItem. It should have all the methods you would actually want to invoke. That's the main idea: Have an interface to describe the communication and hide the implementation. Try to reconsider your design. | how to call child method from parent reference? I have a superclass called DataItem and it has multiple children and the children have children too. I dynamically set the object type but in the end the type reference is DataItem. Here is the code I use to determine the class type: private DataItem getDataItemUponType(D... | TITLE:
how to call child method from parent reference?
QUESTION:
I have a superclass called DataItem and it has multiple children and the children have children too. I dynamically set the object type but in the end the type reference is DataItem. Here is the code I use to determine the class type: private DataItem get... | [
"java",
"inheritance",
"polymorphism",
"subclass"
] | 1 | 5 | 5,763 | 4 | 0 | 2011-06-01T08:24:23.430000 | 2011-06-01T08:27:44.800000 |
6,198,254 | 6,212,970 | gnuplot epslatex functionality in matplotlib | I am used to plot data with gnuplot, so I can easily put the figures in a LaTeX document, using the epslatex terminal. For example: file = "data.dat"
set terminal epslatex set output "figure1.tex"
plot file This way, two files are generated: one.eps file, which contains the graphics, and one.tex file, which contains ... | Update: matplotlib 1.2 introduced a new PGF/TikZ backend, and I have successfully used it for the exact purpose stated in this question: make LaTeX / XeTeX render the text of the plot. In the documentation there are some nice examples of plotting using the PGF backend, including custom preambles, custom fonts and full ... | gnuplot epslatex functionality in matplotlib I am used to plot data with gnuplot, so I can easily put the figures in a LaTeX document, using the epslatex terminal. For example: file = "data.dat"
set terminal epslatex set output "figure1.tex"
plot file This way, two files are generated: one.eps file, which contains th... | TITLE:
gnuplot epslatex functionality in matplotlib
QUESTION:
I am used to plot data with gnuplot, so I can easily put the figures in a LaTeX document, using the epslatex terminal. For example: file = "data.dat"
set terminal epslatex set output "figure1.tex"
plot file This way, two files are generated: one.eps file,... | [
"latex",
"matplotlib",
"gnuplot",
"eps"
] | 11 | 5 | 2,038 | 1 | 0 | 2011-06-01T08:24:54.347000 | 2011-06-02T09:56:17.747000 |
6,198,265 | 6,199,085 | how to make an iframe scroll to specific item | HI, I have an iframe (in my domain) and i am looking for a plugin or any other way that i will be able to do that the iframe window will scroll somewhere in side him ( to a specific div), with a click on a button out side of the iframe. any ideas? any one for help?? | iframe s can be scrolled like any other scrollable element. But you need to be aware that it's a nested document (so offsets are relative to the top/left corner of the iframe + if you want the position of a div in the iframe, you must use $("#iFrame").contents().find("#someDiv") ) | how to make an iframe scroll to specific item HI, I have an iframe (in my domain) and i am looking for a plugin or any other way that i will be able to do that the iframe window will scroll somewhere in side him ( to a specific div), with a click on a button out side of the iframe. any ideas? any one for help?? | TITLE:
how to make an iframe scroll to specific item
QUESTION:
HI, I have an iframe (in my domain) and i am looking for a plugin or any other way that i will be able to do that the iframe window will scroll somewhere in side him ( to a specific div), with a click on a button out side of the iframe. any ideas? any one ... | [
"jquery",
"iframe",
"html",
"scroll"
] | 3 | 2 | 2,173 | 1 | 0 | 2011-06-01T08:25:53.390000 | 2011-06-01T09:33:38.757000 |
6,198,277 | 6,199,565 | What do the colours mean in the TortoiseGit log window? | What do the red and flesh coloured bars represent? | If you are talking about the log dialog: the red are the local current branches the flesh ones are the remote branches the green ones are for tags non-current local branches the yellow ones are for tags Oran 's answer (upvoted) has the complete list of color codes. | What do the colours mean in the TortoiseGit log window? What do the red and flesh coloured bars represent? | TITLE:
What do the colours mean in the TortoiseGit log window?
QUESTION:
What do the red and flesh coloured bars represent?
ANSWER:
If you are talking about the log dialog: the red are the local current branches the flesh ones are the remote branches the green ones are for tags non-current local branches the yellow o... | [
"version-control",
"tortoisegit"
] | 21 | 12 | 13,782 | 4 | 0 | 2011-06-01T08:26:47.093000 | 2011-06-01T10:13:50.687000 |
6,198,282 | 6,198,313 | How to populate a dropdownlist with all countries? | Possible Duplicate: Where can I get a list of all countries/cities to populate a listbox? I'm trying to fill my dropdownlist with all world countries from windows, is there any way to make my dropdownlist get all countries from windows? Or do anybody have a XML with all the list so I can use it? | Update 8/9/2016: List of Countries Just did a quick search and found this site: http://madskristensen.net.web7.reliabledomainspace.com/post/XML-country-list.aspx. Here's the direct link to the file: http://cid-247fb0008340dbcd.office.live.com/self.aspx/workstion/countries.xml Update: Code to populate your drop down lis... | How to populate a dropdownlist with all countries? Possible Duplicate: Where can I get a list of all countries/cities to populate a listbox? I'm trying to fill my dropdownlist with all world countries from windows, is there any way to make my dropdownlist get all countries from windows? Or do anybody have a XML with al... | TITLE:
How to populate a dropdownlist with all countries?
QUESTION:
Possible Duplicate: Where can I get a list of all countries/cities to populate a listbox? I'm trying to fill my dropdownlist with all world countries from windows, is there any way to make my dropdownlist get all countries from windows? Or do anybody ... | [
"asp.net",
"vb.net"
] | 1 | 4 | 4,516 | 1 | 0 | 2011-06-01T08:26:57.897000 | 2011-06-01T08:29:43.287000 |
6,198,284 | 6,198,335 | loading a returned value from php into a js variable using ajax and jquery | Basically all i wanna do is something like this. var myVar = $.load("phpscript.php","var=one"); phpscript.php Right now i am doing this the most idiotic way as i cannot find out how to do this the proper way. what i am doing currently is making my phpscript return a hidden field with the value return " | $.get("phpscript.php", { 'var': 'one' }, function(resp) { alert(resp); // '1'
}); and a test PHP script: | loading a returned value from php into a js variable using ajax and jquery Basically all i wanna do is something like this. var myVar = $.load("phpscript.php","var=one"); phpscript.php Right now i am doing this the most idiotic way as i cannot find out how to do this the proper way. what i am doing currently is making ... | TITLE:
loading a returned value from php into a js variable using ajax and jquery
QUESTION:
Basically all i wanna do is something like this. var myVar = $.load("phpscript.php","var=one"); phpscript.php Right now i am doing this the most idiotic way as i cannot find out how to do this the proper way. what i am doing cu... | [
"php",
"javascript",
"jquery",
"ajax"
] | 1 | 2 | 3,625 | 2 | 0 | 2011-06-01T08:27:05.963000 | 2011-06-01T08:31:49.370000 |
6,198,291 | 6,214,501 | Debugging rails web service | I have an android app as client and a rails REST webservice.Rails application is running on the local host.I have installed the fast debugger on Netbeans.I am using WEBrick server right now. I am using ruby 1.9.2 and rails 3.0.1 version and my netbeans IDE is 6.9. When i run my application I have found that the applica... | It worked when i changed the ruby platform from 1.9.2 to 1.8.7-p174. P.S.:Sometimes the gem paths set by netbeans would be wrong.Please check it and correct it if it is wrong. | Debugging rails web service I have an android app as client and a rails REST webservice.Rails application is running on the local host.I have installed the fast debugger on Netbeans.I am using WEBrick server right now. I am using ruby 1.9.2 and rails 3.0.1 version and my netbeans IDE is 6.9. When i run my application I... | TITLE:
Debugging rails web service
QUESTION:
I have an android app as client and a rails REST webservice.Rails application is running on the local host.I have installed the fast debugger on Netbeans.I am using WEBrick server right now. I am using ruby 1.9.2 and rails 3.0.1 version and my netbeans IDE is 6.9. When i ru... | [
"ruby-on-rails-3",
"debugging",
"netbeans-6.9"
] | 0 | 0 | 519 | 2 | 0 | 2011-06-01T08:27:44.107000 | 2011-06-02T12:28:55.460000 |
6,198,294 | 6,198,325 | Iterating json array in javascript | after looking through a lot of similar questions on SO, I still can't iterate my json structure. How can I reach the value (key) of my inner array? var data = {"User1":{"Service1":2,"Service2":1},"User2":{"Service3":1}}
for(var user in data) { document.write(user + ': ')
for(var service in data[user]){ document.write... | var data = { User1: { Service1: 2, Service2: 1 }, User2: { Service3: 1 } }; for (var user in data) { console.log("User: " + user); for (var service in data[user]) { console.log("\tService: " + service + "; value: " + data[user][service]); } } Replace console.log with document.write or whatever. | Iterating json array in javascript after looking through a lot of similar questions on SO, I still can't iterate my json structure. How can I reach the value (key) of my inner array? var data = {"User1":{"Service1":2,"Service2":1},"User2":{"Service3":1}}
for(var user in data) { document.write(user + ': ')
for(var ser... | TITLE:
Iterating json array in javascript
QUESTION:
after looking through a lot of similar questions on SO, I still can't iterate my json structure. How can I reach the value (key) of my inner array? var data = {"User1":{"Service1":2,"Service2":1},"User2":{"Service3":1}}
for(var user in data) { document.write(user + ... | [
"javascript",
"arrays",
"json",
"loops"
] | 1 | 8 | 8,328 | 2 | 0 | 2011-06-01T08:27:46.737000 | 2011-06-01T08:31:00.713000 |
6,198,297 | 6,198,364 | jquery mouseover slide down mouseout slide up | I made a slide down effect to my menu. But i cant make it if on mouse over slide down and out slide up $('nav.main_menu li').mouseover(function() { $('nav.main_menu li:hover ul.sub-menu').slideDown(); }); tried with this either $(document).ready(function(){ $("nav.main_menu li").hover(function () { $("nav.main_menu li:... | You should stay in the scope of your element (by using $(this)). Try something like this: $(document).ready(function(){ $("nav.main_menu li").hover(function(){ $(this).children("ul").slideDown(500); },function(){ $(this).children("ul").slideUp(300); }); }); | jquery mouseover slide down mouseout slide up I made a slide down effect to my menu. But i cant make it if on mouse over slide down and out slide up $('nav.main_menu li').mouseover(function() { $('nav.main_menu li:hover ul.sub-menu').slideDown(); }); tried with this either $(document).ready(function(){ $("nav.main_menu... | TITLE:
jquery mouseover slide down mouseout slide up
QUESTION:
I made a slide down effect to my menu. But i cant make it if on mouse over slide down and out slide up $('nav.main_menu li').mouseover(function() { $('nav.main_menu li:hover ul.sub-menu').slideDown(); }); tried with this either $(document).ready(function()... | [
"javascript",
"jquery"
] | 0 | 1 | 5,390 | 1 | 0 | 2011-06-01T08:28:09.527000 | 2011-06-01T08:34:37.777000 |
6,198,314 | 6,203,547 | Phonegap WEB-APP without xCode | I'm building a simple web app for iOS that will not be published to the AppStore. For infrastructure limits (and my boss!), I can't use xCode anyway to build the app in a native way. The only NATIVE functionality required by the web app should be a simple "Add to contacts". I've tried to implement it with phonegap, but... | I don't think there's a way for you to add a contact directly, using only a web app. PhoneGap was made for this sort of thing, allowing you to access a device's features (like Contacts, Camera, GPS, etc). But if your company's project specifications don't allow for an app... I don't know that there's a way to do this d... | Phonegap WEB-APP without xCode I'm building a simple web app for iOS that will not be published to the AppStore. For infrastructure limits (and my boss!), I can't use xCode anyway to build the app in a native way. The only NATIVE functionality required by the web app should be a simple "Add to contacts". I've tried to ... | TITLE:
Phonegap WEB-APP without xCode
QUESTION:
I'm building a simple web app for iOS that will not be published to the AppStore. For infrastructure limits (and my boss!), I can't use xCode anyway to build the app in a native way. The only NATIVE functionality required by the web app should be a simple "Add to contact... | [
"iphone",
"xcode",
"ios",
"web-applications",
"cordova"
] | 0 | 2 | 821 | 1 | 0 | 2011-06-01T08:29:44.163000 | 2011-06-01T15:18:39.597000 |
6,198,317 | 6,198,357 | How to access any other web application's TextBox? | How to communicate between my two web projects. 1) Firstly; You should look below pic which has got ddlCustomer(Dropdownlist) i will select a Customer. 2) i have a iframe which has a page i Want to write this customer to add this textbox... | You can't do that with the server side controls. Only by javascript code to refresh the iframe. | How to access any other web application's TextBox? How to communicate between my two web projects. 1) Firstly; You should look below pic which has got ddlCustomer(Dropdownlist) i will select a Customer. 2) i have a iframe which has a page i Want to write this customer to add this textbox... | TITLE:
How to access any other web application's TextBox?
QUESTION:
How to communicate between my two web projects. 1) Firstly; You should look below pic which has got ddlCustomer(Dropdownlist) i will select a Customer. 2) i have a iframe which has a page i Want to write this customer to add this textbox...
ANSWER:
Y... | [
"c#",
"javascript",
".net",
"asp.net",
"iframe"
] | 1 | 1 | 157 | 1 | 0 | 2011-06-01T08:30:23.490000 | 2011-06-01T08:34:05.923000 |
6,198,319 | 6,198,342 | Android: How to ignore or disable savedInstanceState? | I want to ignore or disable savedInstanceState so that the state of current activity won't save when I go to the next activity. public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); | Just this: public void onCreate(Bundle savedInstanceState){ super.onCreate(null); | Android: How to ignore or disable savedInstanceState? I want to ignore or disable savedInstanceState so that the state of current activity won't save when I go to the next activity. public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); | TITLE:
Android: How to ignore or disable savedInstanceState?
QUESTION:
I want to ignore or disable savedInstanceState so that the state of current activity won't save when I go to the next activity. public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState);
ANSWER:
Just this: public void onC... | [
"java",
"android",
"instance",
"state"
] | 23 | 22 | 11,537 | 4 | 0 | 2011-06-01T08:30:26.603000 | 2011-06-01T08:32:30.913000 |
6,198,320 | 6,198,427 | How to use "Partition By" or "Max"? | I've the following table (my_data): year | X | Y -----+-----+----- 2010 | A | 10 2011 | A | 20 2011 | B | 99 2009 | C | 30 2010 | C | 40 what is the best / smallest SQL statement to retrieve only the data related to the highest year and grouped by 'X', like this: year | X | Y -----+-----+----- 2011 | A | 20 2011 | B | ... | select year, x,y from ( select year, x, y, max(year) over(partition by x) max_year from my data ) where year = max_year | How to use "Partition By" or "Max"? I've the following table (my_data): year | X | Y -----+-----+----- 2010 | A | 10 2011 | A | 20 2011 | B | 99 2009 | C | 30 2010 | C | 40 what is the best / smallest SQL statement to retrieve only the data related to the highest year and grouped by 'X', like this: year | X | Y -----+-... | TITLE:
How to use "Partition By" or "Max"?
QUESTION:
I've the following table (my_data): year | X | Y -----+-----+----- 2010 | A | 10 2011 | A | 20 2011 | B | 99 2009 | C | 30 2010 | C | 40 what is the best / smallest SQL statement to retrieve only the data related to the highest year and grouped by 'X', like this: ye... | [
"sql",
"oracle",
"max"
] | 22 | 28 | 56,899 | 11 | 0 | 2011-06-01T08:30:37.887000 | 2011-06-01T08:40:29.293000 |
6,198,326 | 6,198,671 | Google Maps load issues on PHP page | I'm connecting a Google Map to a MySQL database to list distributors all over the world, and I seem to be having a few issues. Sometimes the page itself will not load at all in Firefox (v4 on Mac). It's temperamental on my machine (FF v3.6 Mac) and a Windows machine (FF v4 Win 7), ok in Safari/Opera, doesn't load at al... | Ideally you should wrap the code that loads the map inside a document ready or window load event. I notice that your code is not nested properly inside the GBrowserIsCompatible() block so please fix that. As far as I remember, Google maps API v2 requires you to call the setCenter() method before doing any operations on... | Google Maps load issues on PHP page I'm connecting a Google Map to a MySQL database to list distributors all over the world, and I seem to be having a few issues. Sometimes the page itself will not load at all in Firefox (v4 on Mac). It's temperamental on my machine (FF v3.6 Mac) and a Windows machine (FF v4 Win 7), ok... | TITLE:
Google Maps load issues on PHP page
QUESTION:
I'm connecting a Google Map to a MySQL database to list distributors all over the world, and I seem to be having a few issues. Sometimes the page itself will not load at all in Firefox (v4 on Mac). It's temperamental on my machine (FF v3.6 Mac) and a Windows machine... | [
"php",
"mysql",
"google-maps"
] | 1 | 3 | 1,197 | 3 | 0 | 2011-06-01T08:31:01.067000 | 2011-06-01T09:02:43.627000 |
6,198,328 | 6,199,479 | Flex itemrenderer disable rollover but keep alternating colors | Is there a way to customize the rollover and selected colors of an item renderer without losing the alternating background colors? When i set the autoDrawBackground flag to false the roll over effects stops but for some reason the alternating background is also not drawn. I would like to create a renderer which draws a... | You could use the 'itemIndex' property of the ItemRenderer class to draw the background. For instance: override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { backgroundFill.color = itemIndex % 2? 0xff0000: 0x00ff00; super.updateDisplayList(unscaledWidth, unscaledHeight); } wou... | Flex itemrenderer disable rollover but keep alternating colors Is there a way to customize the rollover and selected colors of an item renderer without losing the alternating background colors? When i set the autoDrawBackground flag to false the roll over effects stops but for some reason the alternating background is ... | TITLE:
Flex itemrenderer disable rollover but keep alternating colors
QUESTION:
Is there a way to customize the rollover and selected colors of an item renderer without losing the alternating background colors? When i set the autoDrawBackground flag to false the roll over effects stops but for some reason the alternat... | [
"apache-flex",
"effects",
"itemrenderer",
"rollover"
] | 1 | 2 | 2,078 | 2 | 0 | 2011-06-01T08:31:07.017000 | 2011-06-01T10:07:16.837000 |
6,198,340 | 6,198,417 | How can I style this span for a quote without causing this layout problem? | jsFiddle I am trying to format a quote so that it appears a certain way within a post. Here is the CSS:.inner_quote { background:RGBA(255,250,205,.4); margin-left:50px; width:200px; position:absolute; } The problem is that because I am doing position:absolute; there is no space allocated for the quote between the befor... | You have two options here: Remove position: absolute and change the tag to a tag Remove the position: absolute and add the property display: block within the.inner_quote css tag Enjoy. | How can I style this span for a quote without causing this layout problem? jsFiddle I am trying to format a quote so that it appears a certain way within a post. Here is the CSS:.inner_quote { background:RGBA(255,250,205,.4); margin-left:50px; width:200px; position:absolute; } The problem is that because I am doing pos... | TITLE:
How can I style this span for a quote without causing this layout problem?
QUESTION:
jsFiddle I am trying to format a quote so that it appears a certain way within a post. Here is the CSS:.inner_quote { background:RGBA(255,250,205,.4); margin-left:50px; width:200px; position:absolute; } The problem is that beca... | [
"html",
"css"
] | 0 | 2 | 68 | 2 | 0 | 2011-06-01T08:32:24.223000 | 2011-06-01T08:39:47.067000 |
6,198,348 | 6,198,460 | Disabling form-submit w/ Enter-key in Master Page | On most of my webapps pages using the Master Page, the first button is a "close window"-button that will by default be executed when the enterkey is pressed. In these scenarios, I want nothing to happen instead. I have made this work with a very ugly solution: I create an invisible button on the Masterpage and set it a... | Set the Close-Button's UseSubmitBehavior -Property to False. | Disabling form-submit w/ Enter-key in Master Page On most of my webapps pages using the Master Page, the first button is a "close window"-button that will by default be executed when the enterkey is pressed. In these scenarios, I want nothing to happen instead. I have made this work with a very ugly solution: I create ... | TITLE:
Disabling form-submit w/ Enter-key in Master Page
QUESTION:
On most of my webapps pages using the Master Page, the first button is a "close window"-button that will by default be executed when the enterkey is pressed. In these scenarios, I want nothing to happen instead. I have made this work with a very ugly s... | [
"c#",
"asp.net"
] | 2 | 4 | 3,352 | 1 | 0 | 2011-06-01T08:33:17.500000 | 2011-06-01T08:43:43.347000 |
6,198,358 | 6,198,389 | How to create copy of same object with different reference? | friends, i am facing a problem i have phoneContacts list with name and phone numbers in it. i want to copy it in two different static lists so that i can use it to other activities. i am using following code but it displays me last list references in both while retrieving data any one guide me how can i take separate c... | In this case you would need to make a deep copy of the list, i.e., a copy that doesn't copy references, but actually copies the object the references are pointing at. Collections.copy " copies all of the elements from one list into another ". As usual with Java however, the elements of a list are not objects but refere... | How to create copy of same object with different reference? friends, i am facing a problem i have phoneContacts list with name and phone numbers in it. i want to copy it in two different static lists so that i can use it to other activities. i am using following code but it displays me last list references in both whil... | TITLE:
How to create copy of same object with different reference?
QUESTION:
friends, i am facing a problem i have phoneContacts list with name and phone numbers in it. i want to copy it in two different static lists so that i can use it to other activities. i am using following code but it displays me last list refer... | [
"java",
"android"
] | 7 | 10 | 7,279 | 3 | 0 | 2011-06-01T08:34:09.247000 | 2011-06-01T08:37:52.600000 |
6,198,369 | 6,198,824 | Python: Closing and removing files | I'm trying to unzip a file, and read one of the extracted files, and delete the extracted files. Files extracted (e.g. we got file1 and file2) Read file1, and close it. with open(file1, 'r') as f: data = f.readline() f.close() Do something with the "data". Remove the files extracted. os.remove(file1) Everything went fi... | The errors you see are not errors as Python would report them. They mean something other than Python tried to open these files, although it's hard to tell what from your little snippet. If you're simply trying to retrieve some data from a zip file, there isn't really a reason to extract them to disk. You can simply rea... | Python: Closing and removing files I'm trying to unzip a file, and read one of the extracted files, and delete the extracted files. Files extracted (e.g. we got file1 and file2) Read file1, and close it. with open(file1, 'r') as f: data = f.readline() f.close() Do something with the "data". Remove the files extracted. ... | TITLE:
Python: Closing and removing files
QUESTION:
I'm trying to unzip a file, and read one of the extracted files, and delete the extracted files. Files extracted (e.g. we got file1 and file2) Read file1, and close it. with open(file1, 'r') as f: data = f.readline() f.close() Do something with the "data". Remove the... | [
"python",
"file"
] | 0 | 2 | 5,654 | 2 | 0 | 2011-06-01T08:34:56.127000 | 2011-06-01T09:15:16.513000 |
6,198,370 | 6,199,265 | javascript checkbox foreach problem in codeigniter | hi Im trying to incorporate a checkbox into my jquery table.. table data will be populated from a database.. under the table is buttons delete, edit, and add buttons.. I have a script that will check if a checkbox or tick or not.. so that when someone tries to delete a row and he isnt checked any checkbox, an alert wil... | I tried out your code locally and after a while I got a soloution: Change your javascript as follow: function validateForm() { var checkboxes = document.forms["list"]["checkID"]; if (checkboxes.length == undefined) { if (checkboxes.checked) { return true; } } else { for (var i = 0; i < checkboxes.length; i++) { if (che... | javascript checkbox foreach problem in codeigniter hi Im trying to incorporate a checkbox into my jquery table.. table data will be populated from a database.. under the table is buttons delete, edit, and add buttons.. I have a script that will check if a checkbox or tick or not.. so that when someone tries to delete a... | TITLE:
javascript checkbox foreach problem in codeigniter
QUESTION:
hi Im trying to incorporate a checkbox into my jquery table.. table data will be populated from a database.. under the table is buttons delete, edit, and add buttons.. I have a script that will check if a checkbox or tick or not.. so that when someone... | [
"php",
"javascript",
"jquery",
"codeigniter",
"checkbox"
] | 0 | 1 | 2,179 | 2 | 0 | 2011-06-01T08:35:17.737000 | 2011-06-01T09:48:36.967000 |
6,198,372 | 6,198,504 | Most Pythonic way to provide global configuration variables in config.py? | In my endless quest in over-complicating simple stuff, I am researching the most 'Pythonic' way to provide global configuration variables inside the typical ' config.py ' found in Python egg packages. The traditional way (aah, good ol' #define!) is as follows: MYSQL_PORT = 3306 MYSQL_DATABASE = 'mydb' MYSQL_DATABASE_TA... | I did that once. Ultimately I found my simplified basicconfig.py adequate for my needs. You can pass in a namespace with other objects for it to reference if you need to. You can also pass in additional defaults from your code. It also maps attribute and mapping style syntax to the same configuration object. | Most Pythonic way to provide global configuration variables in config.py? In my endless quest in over-complicating simple stuff, I am researching the most 'Pythonic' way to provide global configuration variables inside the typical ' config.py ' found in Python egg packages. The traditional way (aah, good ol' #define!) ... | TITLE:
Most Pythonic way to provide global configuration variables in config.py?
QUESTION:
In my endless quest in over-complicating simple stuff, I am researching the most 'Pythonic' way to provide global configuration variables inside the typical ' config.py ' found in Python egg packages. The traditional way (aah, g... | [
"global-variables",
"python",
"config",
"egg"
] | 159 | 5 | 192,178 | 8 | 0 | 2011-06-01T08:35:24.757000 | 2011-06-01T08:47:28.643000 |
6,198,375 | 6,199,771 | How do I draw on a persistent canvas and paint it inside a view? | I'm writing a small painting app for iOS. I'm subclassing a UIView ad performing computations inside its drawRect: method. It's been all good until I started having lots of objects (actually polylines), then performance started to degrade. - (void)drawRect:(CGRect)rect { [super drawRect:rect];
CGContextRef imageContex... | It looks like at least part of the problem is that you retain _image but you never release it. Each time you assign a new value to _image, you're leaking the previous image, and that'll fill up memory very quickly. Beyond that, you should probably be using a CGLayer for your offscreen drawing rather than a bitmap. You ... | How do I draw on a persistent canvas and paint it inside a view? I'm writing a small painting app for iOS. I'm subclassing a UIView ad performing computations inside its drawRect: method. It's been all good until I started having lots of objects (actually polylines), then performance started to degrade. - (void)drawRec... | TITLE:
How do I draw on a persistent canvas and paint it inside a view?
QUESTION:
I'm writing a small painting app for iOS. I'm subclassing a UIView ad performing computations inside its drawRect: method. It's been all good until I started having lots of objects (actually polylines), then performance started to degrad... | [
"ios",
"image",
"drawing",
"cgcontext",
"persistent"
] | 0 | 1 | 3,813 | 1 | 0 | 2011-06-01T08:35:37.903000 | 2011-06-01T10:33:00.670000 |
6,198,376 | 6,199,138 | how to get the size of varchar in the oracle AssociativeArray type | I have a stored procedure in which I defined a type: type AssocArrayVarchar2_t is table if varchar(10) index by binary_integer; Is there any way to get the size of this varchar type (in this case, it is 10) in the C# code? (I am using ODP.net and I want to give it to the OracleParameter.ArrayBindSize property). | Not if it is just a locally declared type. Well not without scanning and parsing ALL_SOURCE. You are better off defining the type as TABLE OF table.column%TYPE and then you can pick that table/column type from ALL_TAB_COLUMNS. It also ties your variable to the associated database structure | how to get the size of varchar in the oracle AssociativeArray type I have a stored procedure in which I defined a type: type AssocArrayVarchar2_t is table if varchar(10) index by binary_integer; Is there any way to get the size of this varchar type (in this case, it is 10) in the C# code? (I am using ODP.net and I want... | TITLE:
how to get the size of varchar in the oracle AssociativeArray type
QUESTION:
I have a stored procedure in which I defined a type: type AssocArrayVarchar2_t is table if varchar(10) index by binary_integer; Is there any way to get the size of this varchar type (in this case, it is 10) in the C# code? (I am using ... | [
".net",
"oracle",
"associative-array",
"odp.net",
"varchar"
] | 1 | 1 | 169 | 1 | 0 | 2011-06-01T08:35:47.933000 | 2011-06-01T09:38:23.067000 |
6,198,379 | 6,198,650 | Array of a type with a parameter in Ocaml | I have a homework exercise to do in Ocaml... My teacher said that we must use these 2 types: type 'a zapis = Prazen | Zapis of string * 'a;; type 'a asocpolje = 'a zapis array;; My problem is that when I create an array: # let a = Array.make 5 Prazen;; val a: '_a zapis array = [|Prazen; Prazen; Prazen; Prazen; Prazen|]... | Until you add anything to the array the type is not fully defined. This is reflected in the type indicated for the array: val a: '_a zapis array = [|Prazen; Prazen; Prazen; Prazen; Prazen|] If you look closely you will see that the 'a you gave as type parameter has become a '_a (note the _ ). This type means "some type... | Array of a type with a parameter in Ocaml I have a homework exercise to do in Ocaml... My teacher said that we must use these 2 types: type 'a zapis = Prazen | Zapis of string * 'a;; type 'a asocpolje = 'a zapis array;; My problem is that when I create an array: # let a = Array.make 5 Prazen;; val a: '_a zapis array = ... | TITLE:
Array of a type with a parameter in Ocaml
QUESTION:
I have a homework exercise to do in Ocaml... My teacher said that we must use these 2 types: type 'a zapis = Prazen | Zapis of string * 'a;; type 'a asocpolje = 'a zapis array;; My problem is that when I create an array: # let a = Array.make 5 Prazen;; val a: ... | [
"arrays",
"types",
"ocaml"
] | 9 | 11 | 743 | 2 | 0 | 2011-06-01T08:36:25.020000 | 2011-06-01T09:00:47.660000 |
6,198,381 | 6,198,421 | Making one application in different languages | How can you make one application for multiple languages? I've heard that Apple rejects applications that only contain different languages. So how can you change your images, text and icons for a specific country or language? I submitted three applications to App Store. However, their differences was only within the lan... | Localization to different languages is fully supported and plainly accepted by Apple. Look here: Internationalization and Localization, and specifically at this sample: International Mountains. You cannot have two apps published if their only difference is the language. This is against a provision in the App Store rule... | Making one application in different languages How can you make one application for multiple languages? I've heard that Apple rejects applications that only contain different languages. So how can you change your images, text and icons for a specific country or language? I submitted three applications to App Store. Howe... | TITLE:
Making one application in different languages
QUESTION:
How can you make one application for multiple languages? I've heard that Apple rejects applications that only contain different languages. So how can you change your images, text and icons for a specific country or language? I submitted three applications ... | [
"iphone",
"image",
"icons",
"country"
] | 2 | 4 | 3,556 | 3 | 0 | 2011-06-01T08:36:35.703000 | 2011-06-01T08:40:01.077000 |
6,198,387 | 6,198,500 | Grant Select, Insert, Update to a Tablespace | I've got a lot of tables in a tablespace, nearly 100. I have to grant Select, Insert, Update privileges on all those tables to a user. Is it possible? When I write: GRANT USE OF TABLESPACE MYTABLESPACE TO USERNAME I get oracle error "invalid or missing privilege" | Use the data dictionary view dba_tables (resp. all_tables, if you cannot access dba_tables): declare l_SQL varchar2(4000); begin for cur in ( select * from dba_tables where tablespace_name = 'mytablespace') loop l_sql:= 'grant select, insert, update on ' || cur.owner || '.' || cur.table_name || ' to myuser'; --dbms_out... | Grant Select, Insert, Update to a Tablespace I've got a lot of tables in a tablespace, nearly 100. I have to grant Select, Insert, Update privileges on all those tables to a user. Is it possible? When I write: GRANT USE OF TABLESPACE MYTABLESPACE TO USERNAME I get oracle error "invalid or missing privilege" | TITLE:
Grant Select, Insert, Update to a Tablespace
QUESTION:
I've got a lot of tables in a tablespace, nearly 100. I have to grant Select, Insert, Update privileges on all those tables to a user. Is it possible? When I write: GRANT USE OF TABLESPACE MYTABLESPACE TO USERNAME I get oracle error "invalid or missing priv... | [
"oracle",
"select",
"insert",
"sql-grant",
"tablespace"
] | 8 | 9 | 94,577 | 2 | 0 | 2011-06-01T08:37:28.193000 | 2011-06-01T08:46:32.630000 |
6,198,394 | 6,198,456 | Nested Form Alternative | i doing some shopping cart ui in html. I would like to avoid nested form but any solution which allow me to route request to two different handler is preferable with the data included. There are two requests are delete item and check out. I wonder what is the alternative solution to nested form. Please help. Thanks. | You can't have nested forms in HTML, so you have to use an alternative. The form that you post doesn't have to be located where the information that you want to post is located. You can use Javascript to copy the information from some fields in the page into hidden fields inside a form somewhere else on the page, and p... | Nested Form Alternative i doing some shopping cart ui in html. I would like to avoid nested form but any solution which allow me to route request to two different handler is preferable with the data included. There are two requests are delete item and check out. I wonder what is the alternative solution to nested form.... | TITLE:
Nested Form Alternative
QUESTION:
i doing some shopping cart ui in html. I would like to avoid nested form but any solution which allow me to route request to two different handler is preferable with the data included. There are two requests are delete item and check out. I wonder what is the alternative soluti... | [
"html",
"forms",
"nested"
] | 2 | 2 | 1,104 | 1 | 0 | 2011-06-01T08:38:37.827000 | 2011-06-01T08:43:02.210000 |
6,198,397 | 6,198,672 | Qt: opening qrc pdf with the poppler library | I'm having a bit of trouble with my function for displaying pdf's with the poppler library. The code below is the function in which the problem occurs. const QString &file is the path to the file int page is the page on which it has to open When i set file to a real path (e.g. "/Users/User/Documents/xxx.pdf"), it is no... | I've also tried first making a QFile out of it, opening it and doing readAll, then loading the QByteArray received by doingPoppler::Document::loadFromData(the qbytearray), but it errors already when opening the QFile in ReadOnly mode. QFile f; f.setFileName(":/skin/AppIcon16.png"); f.open(QIODevice::ReadOnly); QByteArr... | Qt: opening qrc pdf with the poppler library I'm having a bit of trouble with my function for displaying pdf's with the poppler library. The code below is the function in which the problem occurs. const QString &file is the path to the file int page is the page on which it has to open When i set file to a real path (e.... | TITLE:
Qt: opening qrc pdf with the poppler library
QUESTION:
I'm having a bit of trouble with my function for displaying pdf's with the poppler library. The code below is the function in which the problem occurs. const QString &file is the path to the file int page is the page on which it has to open When i set file ... | [
"qt",
"poppler"
] | 1 | 1 | 947 | 1 | 0 | 2011-06-01T08:38:47.570000 | 2011-06-01T09:02:45.507000 |
6,198,409 | 6,198,466 | How to clone a <tr> element without data but only the structure by using jQuery? | Is there a quick way to clone a element without its content in cells? Basically to have a pure element having only the same structure as the original? | If you want a deep clone of the element without the text content, you can write something like: var $cloned = $("tr").clone().children().text("").end(); | How to clone a <tr> element without data but only the structure by using jQuery? Is there a quick way to clone a element without its content in cells? Basically to have a pure element having only the same structure as the original? | TITLE:
How to clone a <tr> element without data but only the structure by using jQuery?
QUESTION:
Is there a quick way to clone a element without its content in cells? Basically to have a pure element having only the same structure as the original?
ANSWER:
If you want a deep clone of the element without the text cont... | [
"javascript",
"jquery",
"dom",
"html-table",
"clone"
] | 7 | 12 | 2,466 | 1 | 0 | 2011-06-01T08:39:26.437000 | 2011-06-01T08:43:59.497000 |
6,198,412 | 6,207,805 | How to force prebuild script to run at each compile | We currently use Delphi 2009 and GIT to develop an application. We have set up a prebuild script to generate a version number and build ID using information from git and compile this as a resource that is included in the project. The problem is that this script doesn't run on a regular compile. This means that the othe... | Pre build actions do run before every compile. You state in a comment that the actions sometimes don't run when you press F9. That makes sense because F9, or Run, only invokes a compile if source is deemed to have changed. A BeforeCompile notifier plug in will behave in exactly the same way. Your solution is to make su... | How to force prebuild script to run at each compile We currently use Delphi 2009 and GIT to develop an application. We have set up a prebuild script to generate a version number and build ID using information from git and compile this as a resource that is included in the project. The problem is that this script doesn'... | TITLE:
How to force prebuild script to run at each compile
QUESTION:
We currently use Delphi 2009 and GIT to develop an application. We have set up a prebuild script to generate a version number and build ID using information from git and compile this as a resource that is included in the project. The problem is that ... | [
"delphi",
"delphi-2009"
] | 5 | 0 | 1,141 | 2 | 0 | 2011-06-01T08:39:29.700000 | 2011-06-01T21:16:07.140000 |
6,198,423 | 6,198,825 | How to convert the online documentation with html links to pdf? | There are many documentaion on internet or user guides which have no pdf. They have the table of contents and links. Is there any way that i can convert them to pdf for printing for offline reading EDIT: IF i can get some script code where i can give the http address of the wiki documentaion and that script generats th... | Try this popular addon for Firefox: https://addons.mozilla.org/en-US/firefox/addon/pdf-download/ | How to convert the online documentation with html links to pdf? There are many documentaion on internet or user guides which have no pdf. They have the table of contents and links. Is there any way that i can convert them to pdf for printing for offline reading EDIT: IF i can get some script code where i can give the h... | TITLE:
How to convert the online documentation with html links to pdf?
QUESTION:
There are many documentaion on internet or user guides which have no pdf. They have the table of contents and links. Is there any way that i can convert them to pdf for printing for offline reading EDIT: IF i can get some script code wher... | [
"html",
"pdf",
"documentation"
] | 0 | 0 | 2,166 | 1 | 0 | 2011-06-01T08:40:08.283000 | 2011-06-01T09:15:33.693000 |
6,198,425 | 6,198,704 | difficulty with form action and unique ids | I have this code in a foreach that lists uniquecode links: this is what I get when I view the page source: KUZELJA 000 RC ALANZIM 000 RC the problem is when the action fires and page goes to messageSent and I view page source again $id_to is NOT the id of the link I clicked on. It takes the first link's id regardless o... | The problem is indeed the non-unique ids. Try appending $to_id to the form ids, so that they are unique (e.g. ). And then update showMessageArea function to do this: var message_area = document.getElementById('message_area_'+this.id); This way you will be operating on the desired form element. As a refactoring suggesti... | difficulty with form action and unique ids I have this code in a foreach that lists uniquecode links: this is what I get when I view the page source: KUZELJA 000 RC ALANZIM 000 RC the problem is when the action fires and page goes to messageSent and I view page source again $id_to is NOT the id of the link I clicked on... | TITLE:
difficulty with form action and unique ids
QUESTION:
I have this code in a foreach that lists uniquecode links: this is what I get when I view the page source: KUZELJA 000 RC ALANZIM 000 RC the problem is when the action fires and page goes to messageSent and I view page source again $id_to is NOT the id of the... | [
"php",
"html"
] | 5 | 2 | 290 | 4 | 0 | 2011-06-01T08:40:18.360000 | 2011-06-01T09:04:59.587000 |
6,198,455 | 6,198,491 | Header file declaration in iPhone | What is the difference between them:- Approach 1:- @interface EffortView: UIView {
} @property (nonatomic, retain) UIView *homeView; @end Approach 2:- @interface EffortView: UIView { UIView *homeView; } @property (nonatomic, retain) UIView *homeView; @end I have synthesized the properties in both cases. Both of them w... | The first approach won't work on 32-bit Mac OS X runtimes because each property must have a corresponding instance variable. 64-bit and iOS runtimes automatically create the instance variable for you, so in that case, it is enough to use the second approach. The bottom line is: if you are 100% sure that you won't ever ... | Header file declaration in iPhone What is the difference between them:- Approach 1:- @interface EffortView: UIView {
} @property (nonatomic, retain) UIView *homeView; @end Approach 2:- @interface EffortView: UIView { UIView *homeView; } @property (nonatomic, retain) UIView *homeView; @end I have synthesized the proper... | TITLE:
Header file declaration in iPhone
QUESTION:
What is the difference between them:- Approach 1:- @interface EffortView: UIView {
} @property (nonatomic, retain) UIView *homeView; @end Approach 2:- @interface EffortView: UIView { UIView *homeView; } @property (nonatomic, retain) UIView *homeView; @end I have synt... | [
"iphone"
] | 2 | 3 | 130 | 1 | 0 | 2011-06-01T08:43:01.553000 | 2011-06-01T08:45:55.337000 |
6,198,461 | 6,198,588 | Adding new users to a database and generating them unique passwords | I currently have a large user database where every user has a unique password. All the passwords are md5 encrypted. The way I originally set it up was by converting the list of user details to SQL by saving the excel sheet I had as a CSV, and then converting that to SQL at csv2sql.com. I then used sql to create the uni... | You could import your csv into a temporary table, do your modifications there, and then insert into users (...) select... from temp_users You could add a column 'unencrypted password' to your user table, import the csv, so that the unencrypted pw is in that column, and then run update users set password = md5(unencrypt... | Adding new users to a database and generating them unique passwords I currently have a large user database where every user has a unique password. All the passwords are md5 encrypted. The way I originally set it up was by converting the list of user details to SQL by saving the excel sheet I had as a CSV, and then conv... | TITLE:
Adding new users to a database and generating them unique passwords
QUESTION:
I currently have a large user database where every user has a unique password. All the passwords are md5 encrypted. The way I originally set it up was by converting the list of user details to SQL by saving the excel sheet I had as a ... | [
"mysql",
"database",
"passwords"
] | 0 | 1 | 1,455 | 1 | 0 | 2011-06-01T08:43:46.020000 | 2011-06-01T08:55:41.133000 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.