PostId
int64
13
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
3
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-33
210k
OwnerUndeletedAnswerCountAtPostTime
int64
0
5.77k
Title
stringlengths
10
250
BodyMarkdown
stringlengths
12
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
47
30.1k
OpenStatus_id
int64
0
4
7,033,618
08/11/2011 22:20:15
145,129
07/25/2009 23:20:39
163
3
How to Handle Long Registration Forms
I am putting together a registration form which has about 30 fields (no kidding). What is the current philosophy on layout? Put all elements on one form or break them up into a series of steps based on topic? Thanks
user-experience
null
null
null
null
08/17/2011 17:54:02
not constructive
How to Handle Long Registration Forms === I am putting together a registration form which has about 30 fields (no kidding). What is the current philosophy on layout? Put all elements on one form or break them up into a series of steps based on topic? Thanks
4
7,989,713
11/03/2011 02:42:39
211,528
11/15/2009 17:19:49
1,701
10
Programmatically run webinspector on a page on Chrome and dump the output to a file
Is it possible to make chrome load a webpage and make it dump the output of the webinspector for that page ... all via commandline?
google-chrome
google-chrome-devtools
null
null
null
null
open
Programmatically run webinspector on a page on Chrome and dump the output to a file === Is it possible to make chrome load a webpage and make it dump the output of the webinspector for that page ... all via commandline?
0
6,241,125
06/05/2011 05:09:43
784,491
06/05/2011 05:09:43
1
0
wpf menu control problem finding property
the following is the code for menu that I downloaded(i put the link below). I cant find background color and font family and other property. Please help me http://gallery.expression.microsoft.com/PopupMenu
wpf
null
null
null
null
06/05/2011 11:32:11
too localized
wpf menu control problem finding property === the following is the code for menu that I downloaded(i put the link below). I cant find background color and font family and other property. Please help me http://gallery.expression.microsoft.com/PopupMenu
3
9,051,901
01/29/2012 08:28:27
553,303
09/24/2010 22:11:52
113
4
Live HTML5 grayscale
I need to use this script for a website gallery: http://webdesignerwall.com/tutorials/html5-grayscale-image-hover/ This works great for images already loaded: $(window).load(function(){ $('.item img').each(function(){ this.src = grayscale(this.src); }); }); function grayscale(src){ //blabla }; **The problem is that I load next images with ajax, and the effect is not applied to new ajax elements.** Thank you!
jquery
ajax
live
null
null
null
open
Live HTML5 grayscale === I need to use this script for a website gallery: http://webdesignerwall.com/tutorials/html5-grayscale-image-hover/ This works great for images already loaded: $(window).load(function(){ $('.item img').each(function(){ this.src = grayscale(this.src); }); }); function grayscale(src){ //blabla }; **The problem is that I load next images with ajax, and the effect is not applied to new ajax elements.** Thank you!
0
8,700,241
01/02/2012 11:27:11
665,497
03/18/2011 04:28:42
35
2
PHP-CLI Maximum limit
I don't know how to frame my question, so i would be using an example here. for ($i = 0; $i < 1000; $i++) { exec('/usr/bin/php /PATH/TO/PHP/FILE SOME_ARGS > /dev/null 2>/dev/null &') } The above code will create 1000 concurrent php processes, Assuming it would be executed in a shared hosting environment what are the probability that all processes wont complete and why. I hope i have made my query clear.
php
null
null
null
null
01/02/2012 11:57:08
off topic
PHP-CLI Maximum limit === I don't know how to frame my question, so i would be using an example here. for ($i = 0; $i < 1000; $i++) { exec('/usr/bin/php /PATH/TO/PHP/FILE SOME_ARGS > /dev/null 2>/dev/null &') } The above code will create 1000 concurrent php processes, Assuming it would be executed in a shared hosting environment what are the probability that all processes wont complete and why. I hope i have made my query clear.
2
2,280,404
02/17/2010 12:08:21
218,540
11/25/2009 11:52:30
314
5
What is proper way of verifying your C# WinForms code works in Visual Studio 2008?
I'm writing an application in WinForms c# that is over 90k lines big. I am not very experienced coder and after some lines of code (depending if it's something new or something I've done before a lot of times) i start my project with F5 in Visual Studio to verify that the things I've done work as i wanted it to. For example: if data from SQL gets populated in ListView correctly if sorting ListView works as expected (newly integrated feature) If docx generating works and the docx is created with proper formatting If counting is done right Is this the proper way of doing it? Or are there better ways? For now starting up my app is like 5-10 seconds so it's not a big deal, but maybe there's a better way then doing it the way I do it. I am coding this app alone on one computer.
c#
winforms
.net
discussion
null
04/05/2012 15:04:21
too localized
What is proper way of verifying your C# WinForms code works in Visual Studio 2008? === I'm writing an application in WinForms c# that is over 90k lines big. I am not very experienced coder and after some lines of code (depending if it's something new or something I've done before a lot of times) i start my project with F5 in Visual Studio to verify that the things I've done work as i wanted it to. For example: if data from SQL gets populated in ListView correctly if sorting ListView works as expected (newly integrated feature) If docx generating works and the docx is created with proper formatting If counting is done right Is this the proper way of doing it? Or are there better ways? For now starting up my app is like 5-10 seconds so it's not a big deal, but maybe there's a better way then doing it the way I do it. I am coding this app alone on one computer.
3
9,976,831
04/02/2012 12:52:48
1,194,178
02/07/2012 08:32:59
47
0
How to send a file to the server using eclipse plugins?
I m doing a eclipse plugin project to create an IDE for a particular language. To run the script,i need to send the script to the server and the server should run that script.. **The problem is i m not able to send the script to the server**(I have connected to the server and also done with the authentication process).I connected to the server using **"org.apache.commons.net.telnet.TelnetClient"** plugin.. Can anyone help me in doing this? Thanks in advance...
java
eclipse
eclipse-plugin
null
null
null
open
How to send a file to the server using eclipse plugins? === I m doing a eclipse plugin project to create an IDE for a particular language. To run the script,i need to send the script to the server and the server should run that script.. **The problem is i m not able to send the script to the server**(I have connected to the server and also done with the authentication process).I connected to the server using **"org.apache.commons.net.telnet.TelnetClient"** plugin.. Can anyone help me in doing this? Thanks in advance...
0
2,734,640
04/29/2010 03:39:34
302,933
03/26/2010 23:17:51
33
0
How to get the row and column of button clicked, in the grid event handler?
Once the added button in grid is clicked, how to find which row and column the button is located in the grid event handler, like click event or some other events? Not the button click event handler #region Grid event handler setup myGrid.MouseEnter += new MouseEventHandler(myGrid_MouseEnter); myGrid.MouseLeave += new MouseEventHandler(myGrid_MouseLeave); myGrid.MouseDown += new MouseButtonEventHandler(myGrid_MouseDown); myGrid.MouseUp += new MouseButtonEventHandler(myGrid_MouseUp); #endregion Thanks I notice that Boyan has some solution for the button click event handler case http://stackoverflow.com/questions/363100/in-wpf-how-can-i-determine-what-column-row-in-a-grid-a-control-is In the Click event handler for the button you say: int row; Button btn = sender as Button; if (btn != null) { row = Grid.GetRow(btn); // And you have the row number... } else { // A nasty error occurred... }
c#
wpf
wpf-controls
null
null
null
open
How to get the row and column of button clicked, in the grid event handler? === Once the added button in grid is clicked, how to find which row and column the button is located in the grid event handler, like click event or some other events? Not the button click event handler #region Grid event handler setup myGrid.MouseEnter += new MouseEventHandler(myGrid_MouseEnter); myGrid.MouseLeave += new MouseEventHandler(myGrid_MouseLeave); myGrid.MouseDown += new MouseButtonEventHandler(myGrid_MouseDown); myGrid.MouseUp += new MouseButtonEventHandler(myGrid_MouseUp); #endregion Thanks I notice that Boyan has some solution for the button click event handler case http://stackoverflow.com/questions/363100/in-wpf-how-can-i-determine-what-column-row-in-a-grid-a-control-is In the Click event handler for the button you say: int row; Button btn = sender as Button; if (btn != null) { row = Grid.GetRow(btn); // And you have the row number... } else { // A nasty error occurred... }
0
589,793
02/26/2009 09:24:34
71,305
02/26/2009 09:24:34
1
0
php or java ajax
Two php files i wnat to open in same window. for example first page is of 10 lines and it contain multiple reference(post,http)to another php file. When clicking that link I want the result should display below section on the same page . Please help me
php
null
null
null
null
01/22/2012 15:10:49
not a real question
php or java ajax === Two php files i wnat to open in same window. for example first page is of 10 lines and it contain multiple reference(post,http)to another php file. When clicking that link I want the result should display below section on the same page . Please help me
1
734,657
04/09/2009 15:09:25
89,058
04/09/2009 13:03:42
3
0
jQuery plus/minus or expand/collapse on a list
Anyone want to have a crack at emulating what the BBC have done on their homepage boxed contents with the PLUS / MINUS icons showing/hiding elements in a list. [http://www.bbc.co.uk/][1] I've tried to do this but so far the effect isn't exactly right. Or, is there a plugin or something which would allow you to do a similar thing? [1]: http://www.bbc.co.uk/
jquery
expand
collapsed
show
hide
null
open
jQuery plus/minus or expand/collapse on a list === Anyone want to have a crack at emulating what the BBC have done on their homepage boxed contents with the PLUS / MINUS icons showing/hiding elements in a list. [http://www.bbc.co.uk/][1] I've tried to do this but so far the effect isn't exactly right. Or, is there a plugin or something which would allow you to do a similar thing? [1]: http://www.bbc.co.uk/
0
6,563,752
07/03/2011 15:26:45
484,772
10/23/2010 00:08:15
1,240
119
Learn about a javascript object
I have an `[object Object]` being passed as an argument through a jQuery function and I want to learn more about it. I don't want to know anything about this specific situation (unless there is no solution) but how to replicate something like php's `var_dump()`.
javascript
null
null
null
null
null
open
Learn about a javascript object === I have an `[object Object]` being passed as an argument through a jQuery function and I want to learn more about it. I don't want to know anything about this specific situation (unless there is no solution) but how to replicate something like php's `var_dump()`.
0
4,650,493
01/10/2011 19:11:25
199,318
10/29/2009 23:46:24
7
0
How can I send regularly scheduled emails without setting up a cron job?
I'm setting up a subscription site using PHP that will allow admins to set up schedules (monthly, weekly, daily, all down to the minute) for when emails will be sent out to subscribers. Is there a plugin, extension, or even a library, that allows me to send these emails based on a predetermined schedule? I thought of setting a cron script to check every minute for pending emails, but with amount of traffic I'm estimating for my site I'm worried that it would put too much of a strain on my servers. It would also be nice if this plugin, extension, etc, could provide analytic data in return. But that's definitely not vital.
php
email
smtp
cron
scheduled-tasks
null
open
How can I send regularly scheduled emails without setting up a cron job? === I'm setting up a subscription site using PHP that will allow admins to set up schedules (monthly, weekly, daily, all down to the minute) for when emails will be sent out to subscribers. Is there a plugin, extension, or even a library, that allows me to send these emails based on a predetermined schedule? I thought of setting a cron script to check every minute for pending emails, but with amount of traffic I'm estimating for my site I'm worried that it would put too much of a strain on my servers. It would also be nice if this plugin, extension, etc, could provide analytic data in return. But that's definitely not vital.
0
9,312,581
02/16/2012 13:59:35
1,128,618
01/03/2012 20:12:57
87
2
Open source BI Tool
Is there any BI tool available for free/open-source? I am sure they cannot compare to the level of SAP or Oracle but I just want to know if some of you have deployed it and can comment on the performance.
c++
oracle
sap
null
null
02/16/2012 21:44:54
off topic
Open source BI Tool === Is there any BI tool available for free/open-source? I am sure they cannot compare to the level of SAP or Oracle but I just want to know if some of you have deployed it and can comment on the performance.
2
6,086,529
05/22/2011 06:58:58
375,551
06/24/2010 17:59:59
738
39
How to check user is "logged in" in asp.net c# ?
I am using form authentication with below method in my ASP.NET C# app FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, true); Now if I want to check weather user is logged in or not, how can I check it? And How can I get the user name of logged in user?
forms-authentication
null
null
null
null
null
open
How to check user is "logged in" in asp.net c# ? === I am using form authentication with below method in my ASP.NET C# app FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, true); Now if I want to check weather user is logged in or not, how can I check it? And How can I get the user name of logged in user?
0
2,387,691
03/05/2010 15:10:57
277,016
02/19/2010 14:15:30
1
0
SSL iframe is embedded on other web site
Iframe from domain with SSLcertificate will be embedded on other site (foo.com). 1) must foo.com have SSL cerificate? 2) if foo.com has SSL certificate, will it be an security error? foo.com has SSL certificate for foo.com, but iframe domain has other SSL certificate. 3)if foo.com hasn't got SSL certificate, will it be an security error?
ssl
iframe
domain
security
null
null
open
SSL iframe is embedded on other web site === Iframe from domain with SSLcertificate will be embedded on other site (foo.com). 1) must foo.com have SSL cerificate? 2) if foo.com has SSL certificate, will it be an security error? foo.com has SSL certificate for foo.com, but iframe domain has other SSL certificate. 3)if foo.com hasn't got SSL certificate, will it be an security error?
0
3,880,762
10/07/2010 10:33:25
468,949
10/07/2010 10:24:53
1
0
C# Magic Wand Tool
I want to write a function that work like magic wand tool dynamic in C# . Can I do ? Thanks
image-processing
null
null
null
null
10/07/2010 13:45:10
not a real question
C# Magic Wand Tool === I want to write a function that work like magic wand tool dynamic in C# . Can I do ? Thanks
1
789,093
04/25/2009 15:09:26
84,291
03/29/2009 15:32:24
280
21
Documentation on creating a programming language
Can you point to what you think is the best **documentation** on **creating a new programming language** (--apart from the Dragon book, which I know of already). I am interested in both scripting language and general programming language design. Are there any *online walk-throughs* by language designers, or any *blog posts or articles* describing the process and the tools (parser generators, gc libraries, etc) that they used? Is there any book that describes the various stages of creating a programming language, preferably by its creator? You can also recommend generic books about language design (like issues with garbage collection, concurrency, generic programming, etc...) Something having to do with LLVM would be especially appreciated. (I have used the Dragon Book in the past to design and implement a very basic compiler of a C++ like language for a university course. That was about 10 years ago). Please, no "why would one want to design a new language" answers.
documentation
compiler
language-design
null
null
null
open
Documentation on creating a programming language === Can you point to what you think is the best **documentation** on **creating a new programming language** (--apart from the Dragon book, which I know of already). I am interested in both scripting language and general programming language design. Are there any *online walk-throughs* by language designers, or any *blog posts or articles* describing the process and the tools (parser generators, gc libraries, etc) that they used? Is there any book that describes the various stages of creating a programming language, preferably by its creator? You can also recommend generic books about language design (like issues with garbage collection, concurrency, generic programming, etc...) Something having to do with LLVM would be especially appreciated. (I have used the Dragon Book in the past to design and implement a very basic compiler of a C++ like language for a university course. That was about 10 years ago). Please, no "why would one want to design a new language" answers.
0
6,710,248
07/15/2011 16:32:40
190,940
10/15/2009 22:54:48
34
0
MYSQL for video websites
Is MySQL the right database for searching and indexing video content. This is for a website like youtube.com I was thinking of using mongodb.
mysql
video
youtube
null
null
07/16/2011 07:28:34
not a real question
MYSQL for video websites === Is MySQL the right database for searching and indexing video content. This is for a website like youtube.com I was thinking of using mongodb.
1
10,237,132
04/19/2012 21:34:10
1,110,437
12/21/2011 18:39:46
200
2
Load balancing: Is there a way to tell from the client side, which server is currently being targeted by the load balancer?
We have a load balanced website. It connects to 6 different servers. Is there any way (ping or otherwise) to determine which server the load is being passed to by the load balancer?
website
load-balancing
null
null
null
null
open
Load balancing: Is there a way to tell from the client side, which server is currently being targeted by the load balancer? === We have a load balanced website. It connects to 6 different servers. Is there any way (ping or otherwise) to determine which server the load is being passed to by the load balancer?
0
5,503,520
03/31/2011 17:02:24
630,412
02/23/2011 15:06:48
6
0
Popover and tableview transparent
In my Ipad application I use a popover but I'm not able to make it transparent. The popover has a tableview inside; my code is: UIViewController* popoverContent = [[UIViewController alloc] init]; UIView* popoverView = [[UIView alloc] initWithFrame:CGRectMake(600, 800, 100, 100)]; popoverView.backgroundColor = [UIColor greenColor]; popoverContent.view = zoneViewController.view; self.popoverController = [[UIPopoverController alloc] initWithContentViewController:popoverContent]; [self.popoverController presentPopoverFromRect:CGRectMake(1200, -200, 50, 375) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionDown animated:TRUE]; [[[popoverController contentViewController] view] setAlpha:0.25f]; I'm able to make transparent only the tableview, but popover remains black...why??
objective-c
xcode
uitableview
uipopovercontroller
alpha
null
open
Popover and tableview transparent === In my Ipad application I use a popover but I'm not able to make it transparent. The popover has a tableview inside; my code is: UIViewController* popoverContent = [[UIViewController alloc] init]; UIView* popoverView = [[UIView alloc] initWithFrame:CGRectMake(600, 800, 100, 100)]; popoverView.backgroundColor = [UIColor greenColor]; popoverContent.view = zoneViewController.view; self.popoverController = [[UIPopoverController alloc] initWithContentViewController:popoverContent]; [self.popoverController presentPopoverFromRect:CGRectMake(1200, -200, 50, 375) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionDown animated:TRUE]; [[[popoverController contentViewController] view] setAlpha:0.25f]; I'm able to make transparent only the tableview, but popover remains black...why??
0
11,137,824
06/21/2012 12:09:22
43,681
12/05/2008 15:32:45
16,373
520
Why does Spring Integration have several XML schemas, and which one should I use?
To use Spring Integration in a Spring XML configuration file, I need to declare the `si` namespace, and provide the schema location of the XML Schema: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration" xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> However, according to the docs, there are two schemas to choose from: > From now on, users must always declare the latest XML schema > (currently version 2.1). Alternatively, they can use the version-less > schema. Generally, the best option is to use version-less namespaces, > as these will automatically use the latest available version of Spring > Integration. from: http://static.springsource.org/spring-integration/reference/htmlsingle/#2.1-schema-updated Why is there both `spring-integration.xsd` and `spring-integration-2.1.xsd`? I checked both, and the latter is almost three times as large as the former. So why do the docs say that it's better to use the version-less schema? What are the consequences of using either one or the other? Or is it just a bug that `spring-integration.xsd` and `spring-integration-2.1.xsd` are different?
spring
xml-schema
spring-integration
null
null
null
open
Why does Spring Integration have several XML schemas, and which one should I use? === To use Spring Integration in a Spring XML configuration file, I need to declare the `si` namespace, and provide the schema location of the XML Schema: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:int="http://www.springframework.org/schema/integration" xsi:schemaLocation="http://www.springframework.org/schema/integration http://www.springframework.org/schema/integration/spring-integration.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> However, according to the docs, there are two schemas to choose from: > From now on, users must always declare the latest XML schema > (currently version 2.1). Alternatively, they can use the version-less > schema. Generally, the best option is to use version-less namespaces, > as these will automatically use the latest available version of Spring > Integration. from: http://static.springsource.org/spring-integration/reference/htmlsingle/#2.1-schema-updated Why is there both `spring-integration.xsd` and `spring-integration-2.1.xsd`? I checked both, and the latter is almost three times as large as the former. So why do the docs say that it's better to use the version-less schema? What are the consequences of using either one or the other? Or is it just a bug that `spring-integration.xsd` and `spring-integration-2.1.xsd` are different?
0
8,642,943
12/27/2011 09:21:34
943,041
09/13/2011 17:07:28
1
0
Facebook app page migration
I just migrated my app page https://apps.facebook.com/my_social_cooking/ but as I had no page created before the app page migrated to app. Can I somehow remigrate my app likes to new page. regards
migration
page
applicationpage
null
null
12/28/2011 08:05:49
not a real question
Facebook app page migration === I just migrated my app page https://apps.facebook.com/my_social_cooking/ but as I had no page created before the app page migrated to app. Can I somehow remigrate my app likes to new page. regards
1
7,890,729
10/25/2011 14:18:56
1,003,252
10/19/2011 13:35:07
15
0
create A Form in jquery (mostly) [contactable] ?
I just need a little help fomr someone to help explain the HTML within this JQ plugin. plugin and demo are here: [plugin](http://anygoogle.com/contactable/jquery.contactable.js) & [Demo](http://theodin.co.uk/blog/ajax/contactable-jquery-plugin.html/) its called **"Contactable"** the person/people made a pop-out form using javascript, most of the html is in the js and *one* < div > is used to call the form on a html file. Essentually it allows for a non invasive form to be placed on to a page. **can anyone help explain the html part of the coding** thanks
javascript
jquery
html
forms
validation
11/08/2011 08:11:16
not a real question
create A Form in jquery (mostly) [contactable] ? === I just need a little help fomr someone to help explain the HTML within this JQ plugin. plugin and demo are here: [plugin](http://anygoogle.com/contactable/jquery.contactable.js) & [Demo](http://theodin.co.uk/blog/ajax/contactable-jquery-plugin.html/) its called **"Contactable"** the person/people made a pop-out form using javascript, most of the html is in the js and *one* < div > is used to call the form on a html file. Essentually it allows for a non invasive form to be placed on to a page. **can anyone help explain the html part of the coding** thanks
1
11,745,228
07/31/2012 16:54:45
455,226
09/22/2010 15:36:09
11
2
jQuery Click not working in Safari when using iframe
I have a silly problem that's plaguing me right now. Here's the situation. I have a modal box that loads a webpage. At the end of the webpage, there is a button that's supposed to close the modal box. The approach I've used works in FF, IE, Chrome but not Safari. I guess its kind of a hack... $('#agree').click(function(){ $('#choice_4_1', window.parent.document).attr('checked', 'checked'); $('#choice_4_1', window.parent.document).removeAttr('disabled'); $('.piro_close', window.parent.document).click(); // The above line works in all browsers mentioned before except Safari. }); I know this isn't the optimal way to do this. Is there a way that I can access the JavaScript object in the parent window to do accomplish this. I looked at the class that is responsible for creating the modal window and there is a 'close_all' function in it. However, being that I am not a javascript expert, I'm not sure how to access that object and how to get it to fire that event. I'm assuming that method would be the preferred one, instead of firing a click event on the "click button" like I'm doing. Any suggestions would be helpful! And thanks!
jquery
events
click
null
null
null
open
jQuery Click not working in Safari when using iframe === I have a silly problem that's plaguing me right now. Here's the situation. I have a modal box that loads a webpage. At the end of the webpage, there is a button that's supposed to close the modal box. The approach I've used works in FF, IE, Chrome but not Safari. I guess its kind of a hack... $('#agree').click(function(){ $('#choice_4_1', window.parent.document).attr('checked', 'checked'); $('#choice_4_1', window.parent.document).removeAttr('disabled'); $('.piro_close', window.parent.document).click(); // The above line works in all browsers mentioned before except Safari. }); I know this isn't the optimal way to do this. Is there a way that I can access the JavaScript object in the parent window to do accomplish this. I looked at the class that is responsible for creating the modal window and there is a 'close_all' function in it. However, being that I am not a javascript expert, I'm not sure how to access that object and how to get it to fire that event. I'm assuming that method would be the preferred one, instead of firing a click event on the "click button" like I'm doing. Any suggestions would be helpful! And thanks!
0
10,393,585
05/01/2012 04:35:43
1,362,524
04/28/2012 07:11:26
1
0
How to adfd application icon on the contact screen panel Android
I want to add application icon on the android contact screen. Please advice how to achieve it.
android
null
null
null
null
05/01/2012 13:22:08
not a real question
How to adfd application icon on the contact screen panel Android === I want to add application icon on the android contact screen. Please advice how to achieve it.
1
2,484,669
03/20/2010 20:31:44
298,151
03/20/2010 20:18:11
1
0
Returning a dynamically created array from function
I'm trying to create a function that would dynamically allocate an array, sets the values of the elements, and returns the size of the array. The array variable is a pointer that is declared outside the function and passed as a parameter. Here is the code: #include <cstdlib> #include <iostream> using namespace std; int doArray(int *arr) { int sz = 10; arr = (int*) malloc(sizeof(int) * sz); for (int i=0; i<sz; i++) { arr[i] = i * 5; } return sz; } int main(int argc, char *argv[]) { int *arr = NULL; int size = doArray(arr); for (int i=0; i<size; i++) { cout << arr[i] << endl; } return 0; } For some reason, the program terminates on the first iteration of the for loop in main()! Am I doing something wrong?
c++
gcc
null
null
null
null
open
Returning a dynamically created array from function === I'm trying to create a function that would dynamically allocate an array, sets the values of the elements, and returns the size of the array. The array variable is a pointer that is declared outside the function and passed as a parameter. Here is the code: #include <cstdlib> #include <iostream> using namespace std; int doArray(int *arr) { int sz = 10; arr = (int*) malloc(sizeof(int) * sz); for (int i=0; i<sz; i++) { arr[i] = i * 5; } return sz; } int main(int argc, char *argv[]) { int *arr = NULL; int size = doArray(arr); for (int i=0; i<size; i++) { cout << arr[i] << endl; } return 0; } For some reason, the program terminates on the first iteration of the for loop in main()! Am I doing something wrong?
0
2,718,517
04/27/2010 03:29:28
115,751
06/02/2009 03:26:38
471
14
How to keep g++ from taking header file from /usr/include?
I am building using zlib.h which I have a local copy to v1.2.5, but in /usr/include/zlib.h there is v1.2.1.2. If I omit adding -I/my/path/to/zlib to my make I get error from using old version which doesn't have Z_FIXED: g++ -g -Werror -Wredundant-decls -D_FILE_OFFSET_BITS=64 -c -o ARCH.linux_26_i86/debug/sysParam.o sysParam.cpp sysParam.cpp: In member function `std::string CSysParamAccess::getCompressionStrategyName() const': sysParam.cpp:1816: error: `Z_FIXED' was not declared in this scope sysParam.cpp: In member function `bool CSysParamAccess::setCompressionStrategy(const std::string&, paramSource)': sysParam.cpp:1849: error: `Z_FIXED' was not declared in this scope Alternatively, if I add the include path to the zlib z1.2.5 I am using, I get double defines, it seems as if the zlib.h is included twice with two different sets of -D values, but I don't see how that is happening: g++ -g -Werror -Wredundant-decls -I../../src/zlib-1.2.5 -D_FILE_OFFSET_BITS=64 -c -o ARCH.linux_26_i86/debug/sysParam.o sysParam.cpp In file included from sysParam.cpp:24: ../../src/zlib-1.2.5/zlib.h:1582: warning: redundant redeclaration of `void* gzopen64(const char*, const char*)' in same scope ../../src/zlib-1.2.5/zlib.h:1566: warning: previous declaration of `void* gzopen64(const char*, const char*)' ../../src/zlib-1.2.5/zlib.h:1583: warning: redundant redeclaration of `long long int gzseek64(void*, long long int, int)' in same scope ../../src/zlib-1.2.5/zlib.h:1567: warning: previous declaration of `off64_t gzseek64(void*, off64_t, int)' ../../src/zlib-1.2.5/zlib.h:1584: warning: redundant redeclaration of `long long int gztell64(void*)' in same scope ../../src/zlib-1.2.5/zlib.h:1568: warning: previous declaration of `off64_t gztell64(void*)' ../../src/zlib-1.2.5/zlib.h:1585: warning: redundant redeclaration of `long long int gzoffset64(void*)' in same scope ../../src/zlib-1.2.5/zlib.h:1569: warning: previous declaration of `off64_t gzoffset64(void*)' ../../src/zlib-1.2.5/zlib.h:1586: warning: redundant redeclaration of `uLong adler32_combine64(uLong, uLong, long long int)' in same scope ../../src/zlib-1.2.5/zlib.h:1570: warning: previous declaration of `uLong adler32_combine64(uLong, uLong, off64_t)' ../../src/zlib-1.2.5/zlib.h:1587: warning: redundant redeclaration of `uLong crc32_combine64(uLong, uLong, long long int)' in same scope ../../src/zlib-1.2.5/zlib.h:1571: warning: previous declaration of `uLong crc32_combine64(uLong, uLong, off64_t)' Here some of the relavent lines from zlib.h referred to above: // This would be line 1558 of zlib.h /* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or * change the regular functions to 64 bits if _FILE_OFFSET_BITS is 64 (if * both are true, the application gets the *64 functions, and the regular * functions are changed to 64 bits) -- in case these are set on systems * without large file support, _LFS64_LARGEFILE must also be true */ #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int)); ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile)); ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile)); ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t)); ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t)); #endif #if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0 # define gzopen gzopen64 # define gzseek gzseek64 # define gztell gztell64 # define gzoffset gzoffset64 # define adler32_combine adler32_combine64 # define crc32_combine crc32_combine64 # ifdef _LARGEFILE64_SOURCE ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int)); ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile)); ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile)); ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t)); ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t)); # endif #else ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *)); ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int)); ZEXTERN z_off_t ZEXPORT gztell OF((gzFile)); ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile)); ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t)); ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t)); #endif // This would be line 1597 of zlib.h I'm not sure how to track this down further. I tried moving the include of zlib.h to the top and bottom of the includes list of the cpp file, but it made no difference. An excerpt of passing -E to g++ shows in part: extern int inflateInit2_ (z_streamp strm, int windowBits, const char *version, int stream_size); extern int inflateBackInit_ (z_streamp strm, int windowBits, unsigned char *window, const char *version, int stream_size); # 1566 "../../src/zlib-1.2.5/zlib.h" extern gzFile gzopen64 (const char *, const char *); extern off64_t gzseek64 (gzFile, off64_t, int); extern off64_t gztell64 (gzFile); extern off64_t gzoffset64 (gzFile); extern uLong adler32_combine64 (uLong, uLong, off64_t); extern uLong crc32_combine64 (uLong, uLong, off64_t); # 1582 "../../src/zlib-1.2.5/zlib.h" extern gzFile gzopen64 (const char *, const char *); extern long long gzseek64 (gzFile, long long, int); extern long long gztell64 (gzFile); extern long long gzoffset64 (gzFile); extern uLong adler32_combine64 (uLong, uLong, long long); extern uLong crc32_combine64 (uLong, uLong, long long); # 1600 "../../src/zlib-1.2.5/zlib.h" struct internal_state {int dummy;}; Not sure why lines 1566 and 1582 are coming out together in the CPP output, but hence the warning about duplicate declarations.
zlib
header-files
preprocessor
g++
null
null
open
How to keep g++ from taking header file from /usr/include? === I am building using zlib.h which I have a local copy to v1.2.5, but in /usr/include/zlib.h there is v1.2.1.2. If I omit adding -I/my/path/to/zlib to my make I get error from using old version which doesn't have Z_FIXED: g++ -g -Werror -Wredundant-decls -D_FILE_OFFSET_BITS=64 -c -o ARCH.linux_26_i86/debug/sysParam.o sysParam.cpp sysParam.cpp: In member function `std::string CSysParamAccess::getCompressionStrategyName() const': sysParam.cpp:1816: error: `Z_FIXED' was not declared in this scope sysParam.cpp: In member function `bool CSysParamAccess::setCompressionStrategy(const std::string&, paramSource)': sysParam.cpp:1849: error: `Z_FIXED' was not declared in this scope Alternatively, if I add the include path to the zlib z1.2.5 I am using, I get double defines, it seems as if the zlib.h is included twice with two different sets of -D values, but I don't see how that is happening: g++ -g -Werror -Wredundant-decls -I../../src/zlib-1.2.5 -D_FILE_OFFSET_BITS=64 -c -o ARCH.linux_26_i86/debug/sysParam.o sysParam.cpp In file included from sysParam.cpp:24: ../../src/zlib-1.2.5/zlib.h:1582: warning: redundant redeclaration of `void* gzopen64(const char*, const char*)' in same scope ../../src/zlib-1.2.5/zlib.h:1566: warning: previous declaration of `void* gzopen64(const char*, const char*)' ../../src/zlib-1.2.5/zlib.h:1583: warning: redundant redeclaration of `long long int gzseek64(void*, long long int, int)' in same scope ../../src/zlib-1.2.5/zlib.h:1567: warning: previous declaration of `off64_t gzseek64(void*, off64_t, int)' ../../src/zlib-1.2.5/zlib.h:1584: warning: redundant redeclaration of `long long int gztell64(void*)' in same scope ../../src/zlib-1.2.5/zlib.h:1568: warning: previous declaration of `off64_t gztell64(void*)' ../../src/zlib-1.2.5/zlib.h:1585: warning: redundant redeclaration of `long long int gzoffset64(void*)' in same scope ../../src/zlib-1.2.5/zlib.h:1569: warning: previous declaration of `off64_t gzoffset64(void*)' ../../src/zlib-1.2.5/zlib.h:1586: warning: redundant redeclaration of `uLong adler32_combine64(uLong, uLong, long long int)' in same scope ../../src/zlib-1.2.5/zlib.h:1570: warning: previous declaration of `uLong adler32_combine64(uLong, uLong, off64_t)' ../../src/zlib-1.2.5/zlib.h:1587: warning: redundant redeclaration of `uLong crc32_combine64(uLong, uLong, long long int)' in same scope ../../src/zlib-1.2.5/zlib.h:1571: warning: previous declaration of `uLong crc32_combine64(uLong, uLong, off64_t)' Here some of the relavent lines from zlib.h referred to above: // This would be line 1558 of zlib.h /* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or * change the regular functions to 64 bits if _FILE_OFFSET_BITS is 64 (if * both are true, the application gets the *64 functions, and the regular * functions are changed to 64 bits) -- in case these are set on systems * without large file support, _LFS64_LARGEFILE must also be true */ #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0 ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int)); ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile)); ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile)); ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t)); ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t)); #endif #if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0 # define gzopen gzopen64 # define gzseek gzseek64 # define gztell gztell64 # define gzoffset gzoffset64 # define adler32_combine adler32_combine64 # define crc32_combine crc32_combine64 # ifdef _LARGEFILE64_SOURCE ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *)); ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int)); ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile)); ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile)); ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t)); ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t)); # endif #else ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *)); ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int)); ZEXTERN z_off_t ZEXPORT gztell OF((gzFile)); ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile)); ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t)); ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t)); #endif // This would be line 1597 of zlib.h I'm not sure how to track this down further. I tried moving the include of zlib.h to the top and bottom of the includes list of the cpp file, but it made no difference. An excerpt of passing -E to g++ shows in part: extern int inflateInit2_ (z_streamp strm, int windowBits, const char *version, int stream_size); extern int inflateBackInit_ (z_streamp strm, int windowBits, unsigned char *window, const char *version, int stream_size); # 1566 "../../src/zlib-1.2.5/zlib.h" extern gzFile gzopen64 (const char *, const char *); extern off64_t gzseek64 (gzFile, off64_t, int); extern off64_t gztell64 (gzFile); extern off64_t gzoffset64 (gzFile); extern uLong adler32_combine64 (uLong, uLong, off64_t); extern uLong crc32_combine64 (uLong, uLong, off64_t); # 1582 "../../src/zlib-1.2.5/zlib.h" extern gzFile gzopen64 (const char *, const char *); extern long long gzseek64 (gzFile, long long, int); extern long long gztell64 (gzFile); extern long long gzoffset64 (gzFile); extern uLong adler32_combine64 (uLong, uLong, long long); extern uLong crc32_combine64 (uLong, uLong, long long); # 1600 "../../src/zlib-1.2.5/zlib.h" struct internal_state {int dummy;}; Not sure why lines 1566 and 1582 are coming out together in the CPP output, but hence the warning about duplicate declarations.
0
2,085,642
01/18/2010 11:31:22
205,428
11/07/2009 04:02:40
4
0
push notification
hi any one help to implement Push notification in iphone! Any sample application, please send those links. It's very urgent.
iphone-simulator
null
null
null
null
03/01/2011 13:40:38
not a real question
push notification === hi any one help to implement Push notification in iphone! Any sample application, please send those links. It's very urgent.
1
10,508,678
05/09/2012 01:20:28
1,368,417
05/01/2012 19:02:49
3
0
issue with 2 jquery functions on same page
I have no idea how to use javascript but I'm running into an issue where I have a slider on the homepage and i have a function for a pop up. The problem is that every time i open the pop up the slideshow images open up with the pop up and cover it. This is what I have http://jsfiddle.net/kD4ZB/ the problem occurs when you click contact. Thank you very much
javascript
jquery
html
css
null
05/09/2012 01:28:50
not a real question
issue with 2 jquery functions on same page === I have no idea how to use javascript but I'm running into an issue where I have a slider on the homepage and i have a function for a pop up. The problem is that every time i open the pop up the slideshow images open up with the pop up and cover it. This is what I have http://jsfiddle.net/kD4ZB/ the problem occurs when you click contact. Thank you very much
1
11,131,584
06/21/2012 04:41:02
919,545
08/30/2011 10:51:44
4,028
303
What is wrong with this code..(Animating the view up)?
I am not sure why is this happening.. I am trying to animate my view up when the user starts typing in a text field. but the code works only for landscape left orientation but not landscape right... these methods are called in both orientation... here is the code.. - (void)keyboardWasShown:(NSNotification *)aNotification { if ( keyboardShown ) return; NSTimeInterval animationDuration = 0.3; CGRect frame = self.view.frame; frame.size.width += 150; [UIView beginAnimations:@"ResizeForKeyboard" context:nil]; [UIView setAnimationDuration:animationDuration]; self.view.frame = frame; [UIView commitAnimations]; keyboardShown = YES; } - (void)keyboardWasHidden:(NSNotification *)aNotification { NSTimeInterval animationDuration = 0.3; CGRect frame = self.view.frame; frame.size.width -= 150; [UIView beginAnimations:@"ResizeForKeyboard" context:nil]; [UIView setAnimationDuration:animationDuration]; self.view.frame = frame; [UIView commitAnimations]; keyboardShown = NO; } as of now I have just hardcoded the values..
iphone
objective-c
ios
uikeyboard
null
06/26/2012 19:17:24
too localized
What is wrong with this code..(Animating the view up)? === I am not sure why is this happening.. I am trying to animate my view up when the user starts typing in a text field. but the code works only for landscape left orientation but not landscape right... these methods are called in both orientation... here is the code.. - (void)keyboardWasShown:(NSNotification *)aNotification { if ( keyboardShown ) return; NSTimeInterval animationDuration = 0.3; CGRect frame = self.view.frame; frame.size.width += 150; [UIView beginAnimations:@"ResizeForKeyboard" context:nil]; [UIView setAnimationDuration:animationDuration]; self.view.frame = frame; [UIView commitAnimations]; keyboardShown = YES; } - (void)keyboardWasHidden:(NSNotification *)aNotification { NSTimeInterval animationDuration = 0.3; CGRect frame = self.view.frame; frame.size.width -= 150; [UIView beginAnimations:@"ResizeForKeyboard" context:nil]; [UIView setAnimationDuration:animationDuration]; self.view.frame = frame; [UIView commitAnimations]; keyboardShown = NO; } as of now I have just hardcoded the values..
3
11,003,452
06/12/2012 19:25:40
1,157,444
01/19/2012 00:38:16
244
28
Pure virtual overload operator in Boost.Python wrapper
I'm writing a wrapper class for an abstract base class, the base class has a couple of pure virtual methods and an overloaded operator, if I compile with the overloaded operator I get the following error: cannot allocate an object of abstract type Even though I implement the overloaded operator in my wrapper class, somehow Boost.Python still insists that it is not implemented, any clue ? This is what my code looks like: //abstract base class class Test { public: virtual void start() = 0; virtual void stop() = 0; virtual bool operator==(const Test rhs) = 0; }; //wrapper class struct TestWrapper: Test, wrapper<Test> { public: void start() { this->get_override("start")(); } void stop() { this->get_override("stop")(); } bool operator==(const Test& rhs) { return this->get_override("operator==")(rhs); } }; //boost python module class_<TestWrapper, boost::noncopyable>("Test") .def("start", pure_virtual(&Test::start) ) .def("stop", pure_virtual(&Test::stop) ) .def("operator==", pure_virtual(&Test::operator==)) ; Edit: I'm not even sure this is the right way to do this, I haven't seen any examples like this in the docs.
c++
boost-python
null
null
null
null
open
Pure virtual overload operator in Boost.Python wrapper === I'm writing a wrapper class for an abstract base class, the base class has a couple of pure virtual methods and an overloaded operator, if I compile with the overloaded operator I get the following error: cannot allocate an object of abstract type Even though I implement the overloaded operator in my wrapper class, somehow Boost.Python still insists that it is not implemented, any clue ? This is what my code looks like: //abstract base class class Test { public: virtual void start() = 0; virtual void stop() = 0; virtual bool operator==(const Test rhs) = 0; }; //wrapper class struct TestWrapper: Test, wrapper<Test> { public: void start() { this->get_override("start")(); } void stop() { this->get_override("stop")(); } bool operator==(const Test& rhs) { return this->get_override("operator==")(rhs); } }; //boost python module class_<TestWrapper, boost::noncopyable>("Test") .def("start", pure_virtual(&Test::start) ) .def("stop", pure_virtual(&Test::stop) ) .def("operator==", pure_virtual(&Test::operator==)) ; Edit: I'm not even sure this is the right way to do this, I haven't seen any examples like this in the docs.
0
8,507,540
12/14/2011 15:59:39
1,018,369
10/28/2011 13:11:12
5
0
How to make sure my websites look good cross browser
I enjoy making websites. I spend all my free time on them. But when i test them in other browsers and computers they look different. I have been given advice such as use margin: 0 auto; to make a main wrap which always stays centered. But anyone else have any good tips and places to expand what i know? This is mainly about layout. Not really bothered about how different buttons look because of different browsers not displaying shadowing and graidents. Thhanks guys!
html
design
web
null
null
12/14/2011 20:58:58
not a real question
How to make sure my websites look good cross browser === I enjoy making websites. I spend all my free time on them. But when i test them in other browsers and computers they look different. I have been given advice such as use margin: 0 auto; to make a main wrap which always stays centered. But anyone else have any good tips and places to expand what i know? This is mainly about layout. Not really bothered about how different buttons look because of different browsers not displaying shadowing and graidents. Thhanks guys!
1
5,004,002
02/15/2011 13:07:08
578,576
01/17/2011 13:26:15
1
2
Is fclose needed when fopen has failed ?
consider the below code snippet. { .... FILE *fptr = fopen("file_that_does_not_exist","r"); ... } here, if fopen fails, do we still need to call fclose() for some cleanup ??
c++
c
null
null
null
null
open
Is fclose needed when fopen has failed ? === consider the below code snippet. { .... FILE *fptr = fopen("file_that_does_not_exist","r"); ... } here, if fopen fails, do we still need to call fclose() for some cleanup ??
0
5,686,421
04/16/2011 12:21:25
625,454
02/20/2011 17:45:27
53
0
Cloud Computing reference guide
i am a fresher, I want to study about cloud computing, so i and need a material which covers all the topics mentioned below. > Basics of cloud computing (what is cloud computing in detail) > How does it works > Real time usage > Advantages and disadvantages Suggest me a material or a link which covers all the topics mentioned above.
cloud
computing
null
null
null
04/16/2011 22:28:06
not a real question
Cloud Computing reference guide === i am a fresher, I want to study about cloud computing, so i and need a material which covers all the topics mentioned below. > Basics of cloud computing (what is cloud computing in detail) > How does it works > Real time usage > Advantages and disadvantages Suggest me a material or a link which covers all the topics mentioned above.
1
10,486,469
05/07/2012 17:35:35
1,295,718
03/27/2012 13:55:38
25
0
How can I limit the size of an individual field for an apache log?
**History/Explanation**: I am using apache2 on a Linux server. The logs are becoming huge (11 Meg an hour roughly). **Problem**: Referring URL's within the site can be up to about 3kb in size. (I know it is bad... I didn't make them.) A lot of parameters are passed via the GET method. **Needed**: Is there a way to truncate the just the referrer field for the apache access log? Is there a way to just show the TLD of the referrer in the apache access log? I know I can create a custom "access" log, and just not include the referrer, however I want to track the TLD (Top Level Domain) of incoming traffic. Any help appreciated. Thanks
logging
apache2
null
null
null
null
open
How can I limit the size of an individual field for an apache log? === **History/Explanation**: I am using apache2 on a Linux server. The logs are becoming huge (11 Meg an hour roughly). **Problem**: Referring URL's within the site can be up to about 3kb in size. (I know it is bad... I didn't make them.) A lot of parameters are passed via the GET method. **Needed**: Is there a way to truncate the just the referrer field for the apache access log? Is there a way to just show the TLD of the referrer in the apache access log? I know I can create a custom "access" log, and just not include the referrer, however I want to track the TLD (Top Level Domain) of incoming traffic. Any help appreciated. Thanks
0
8,026,834
11/06/2011 11:57:24
612,949
02/11/2011 11:24:08
23
8
Shopping-cart script as nearly as Payvment
I would like to know if there are any shopping cart scripts which looks as nearly as Payvment Payvment on facebook https://apps.facebook.com/payvment/ I want to know if the features it uses (mostly AJAX) can be accomplished via shopping cart script.
php
null
null
null
null
11/06/2011 22:41:45
off topic
Shopping-cart script as nearly as Payvment === I would like to know if there are any shopping cart scripts which looks as nearly as Payvment Payvment on facebook https://apps.facebook.com/payvment/ I want to know if the features it uses (mostly AJAX) can be accomplished via shopping cart script.
2
4,311,261
11/30/2010 06:55:18
518,103
11/23/2010 22:27:21
117
11
Of these four libraries, which are you most likely to use?
I'm trying to pick out my next hackery project. It'll likely be one of the following: - A sparse radix trie Implementation with extremely fast set operations - A really good soft heap implementation - A bloomier filter implementation - A collection of small financial algorithms, such as deriving total returns given a set of dividends and minimal information about them. But I can't choose. So I thought I'd put my fate in the hands of my peers. Which of those four would you find most useful? Most interesting to work on? Which do you think is the most needed?
c++
algorithm
data-structures
boost
computational-finance
11/30/2010 08:42:29
not a real question
Of these four libraries, which are you most likely to use? === I'm trying to pick out my next hackery project. It'll likely be one of the following: - A sparse radix trie Implementation with extremely fast set operations - A really good soft heap implementation - A bloomier filter implementation - A collection of small financial algorithms, such as deriving total returns given a set of dividends and minimal information about them. But I can't choose. So I thought I'd put my fate in the hands of my peers. Which of those four would you find most useful? Most interesting to work on? Which do you think is the most needed?
1
7,352,672
09/08/2011 18:20:40
935,477
09/08/2011 18:20:40
1
0
Wrong cumulative count for dimension level
I have a dimension hierarchy like this: Year -> Month Name -> Date. I'm trying to get a cumulative count of items, so I created a calculated measure using this expression: SUM(null:[Dim Date].[Hierarchy], [Measures].[ParentCount]) It works great for the year level, but I don't understand why i'm getting wrong value for Month and Date. I've post an image resuming the problem (Sorry I can't include it on the post because i'm a new user on stackoverflow) http://i.imgur.com/TpPaH.jpg Like I said, the count for the Year Level is good. What's wrong with the other one? SSAS/MDX is new to me.. I guess something is missing in my calculated measure, or maybe it's my hierarchy .. Thanks!
sql-server-2008
ssas
mdx
null
null
null
open
Wrong cumulative count for dimension level === I have a dimension hierarchy like this: Year -> Month Name -> Date. I'm trying to get a cumulative count of items, so I created a calculated measure using this expression: SUM(null:[Dim Date].[Hierarchy], [Measures].[ParentCount]) It works great for the year level, but I don't understand why i'm getting wrong value for Month and Date. I've post an image resuming the problem (Sorry I can't include it on the post because i'm a new user on stackoverflow) http://i.imgur.com/TpPaH.jpg Like I said, the count for the Year Level is good. What's wrong with the other one? SSAS/MDX is new to me.. I guess something is missing in my calculated measure, or maybe it's my hierarchy .. Thanks!
0
6,710,297
07/15/2011 16:36:25
845,785
07/15/2011 04:04:56
1
0
How to configure others attributes on GoogleMaps?
I'm using your gem and really enjoying it, but, I missed setting some properties, such as: scrollwheel zoomControl zoomControlOptions When we will have this options? Thanks a lot, Luciano Brazil
gmaps4rails
null
null
null
null
null
open
How to configure others attributes on GoogleMaps? === I'm using your gem and really enjoying it, but, I missed setting some properties, such as: scrollwheel zoomControl zoomControlOptions When we will have this options? Thanks a lot, Luciano Brazil
0
7,725,445
10/11/2011 11:39:31
989,402
10/11/2011 11:34:15
1
0
I need to implement a snow falls in my android live walpaper
similar to in this link http://www.livewallpapers.org/snow-globe-1106/#video I had a thought creating it using GIF images.But the problem is that the application uses much more memory,and some times device hangs out.Need solution for this..
android
null
null
null
null
10/11/2011 11:50:44
not a real question
I need to implement a snow falls in my android live walpaper === similar to in this link http://www.livewallpapers.org/snow-globe-1106/#video I had a thought creating it using GIF images.But the problem is that the application uses much more memory,and some times device hangs out.Need solution for this..
1
4,078,925
11/02/2010 15:01:00
137,839
07/14/2009 04:42:22
253
13
Problem with multiprocessing python 2.6
I'm trying to build a simple program that will fire off a load of processes, and if the main process is killed, the sub processes will die. My code looks like this: import time def test_proc(name, conn): x = 0 while True: print x x += 1 conn.poll() from multiprocessing import Process, Pipe proc_name= ['a', 'b', 'c'] procs = [] for p in proc_name: parent_conn, child_conn = Pipe() p = Process(target=test_proc, args=(p, child_conn)) procs.append(p) p.start() while True: print [(p.is_alive(), 'Pid %s' %(p.pid)) for p in procs] time.sleep(1) It works, but if I remove the print x on line 5 it doesn't. The processes will continue to run, why? Also, I'd love to know if this is the right way of doing what I'm trying to achieve.
python
multiprocessing
null
null
null
null
open
Problem with multiprocessing python 2.6 === I'm trying to build a simple program that will fire off a load of processes, and if the main process is killed, the sub processes will die. My code looks like this: import time def test_proc(name, conn): x = 0 while True: print x x += 1 conn.poll() from multiprocessing import Process, Pipe proc_name= ['a', 'b', 'c'] procs = [] for p in proc_name: parent_conn, child_conn = Pipe() p = Process(target=test_proc, args=(p, child_conn)) procs.append(p) p.start() while True: print [(p.is_alive(), 'Pid %s' %(p.pid)) for p in procs] time.sleep(1) It works, but if I remove the print x on line 5 it doesn't. The processes will continue to run, why? Also, I'd love to know if this is the right way of doing what I'm trying to achieve.
0
7,034,822
08/12/2011 01:41:25
890,993
08/12/2011 01:41:25
1
0
C# - application will only access settings in DLL in Debug -
I have a console application and a windows form application that reference a DLL. The DLL has settings that are modified when used. At the moment, I have messageboxes to show me the DLL properties as it is called. When I run it in Debug mode, everything works as expected. However, when I execute either one of the apps which call the functions in the DLLs - the DLL's settings return the default value. Can anyone enlighten me on where I'm going wrong?
c#
dll
settings
null
null
null
open
C# - application will only access settings in DLL in Debug - === I have a console application and a windows form application that reference a DLL. The DLL has settings that are modified when used. At the moment, I have messageboxes to show me the DLL properties as it is called. When I run it in Debug mode, everything works as expected. However, when I execute either one of the apps which call the functions in the DLLs - the DLL's settings return the default value. Can anyone enlighten me on where I'm going wrong?
0
3,738,322
09/17/2010 19:24:16
427,869
08/04/2010 12:20:48
25
0
Getting error when trying to handle ActiveX event
I have a two ActiveX servers I need to handle it's events. the first one I got to work with no problems but with the second one I get a error once I try to assign a new event. The one that works the code is below: public delegate void ICwGetXEvents_OnCommandExEventHandler(uint CommandW, uint CommandL, string CommandText); public CwGet.CwGetXClass ax_CwGet; //event public void CwGetXEvents_OnCommandExEventHandler(uint CommandW, uint CommandL, string CommandText) { if (CommandL == 4) { //some code } } //ok here is how I assign the controls and event: ax_CwGet = new CwGetXClass(); ax_CwGet.OnCommandEx += CwGetXEvents_OnCommandExEventHandler; Ok with the second control(by the way it was created by the same company) I try the same thing: public delegate void ITrueTtyXEvents_OnCallsignEventHandler(string Call); public truetty.TrueTtyXClass ax_truetty; //event public void TrueTtyXEvents_OnCallsignEventHandler(string Call) { //somecode } ax_truetty = new TrueTtyXClass(); ax_truetty.OnCallsign+= TrueTtyXEvents_OnCallsignEventHandler; However when I create the new ActiveX object which works but when I go to assign the event I get this error: "An outgoing call cannot be made since the application is dispatching an input-synchronous call. (Exception from HRESULT: 0x8001010D (RPC_E_CANTCALLOUT_ININPUTSYNCCALL))" was wondering if anyone go point me in the right direction.. Mike
c#
com
activex
null
null
null
open
Getting error when trying to handle ActiveX event === I have a two ActiveX servers I need to handle it's events. the first one I got to work with no problems but with the second one I get a error once I try to assign a new event. The one that works the code is below: public delegate void ICwGetXEvents_OnCommandExEventHandler(uint CommandW, uint CommandL, string CommandText); public CwGet.CwGetXClass ax_CwGet; //event public void CwGetXEvents_OnCommandExEventHandler(uint CommandW, uint CommandL, string CommandText) { if (CommandL == 4) { //some code } } //ok here is how I assign the controls and event: ax_CwGet = new CwGetXClass(); ax_CwGet.OnCommandEx += CwGetXEvents_OnCommandExEventHandler; Ok with the second control(by the way it was created by the same company) I try the same thing: public delegate void ITrueTtyXEvents_OnCallsignEventHandler(string Call); public truetty.TrueTtyXClass ax_truetty; //event public void TrueTtyXEvents_OnCallsignEventHandler(string Call) { //somecode } ax_truetty = new TrueTtyXClass(); ax_truetty.OnCallsign+= TrueTtyXEvents_OnCallsignEventHandler; However when I create the new ActiveX object which works but when I go to assign the event I get this error: "An outgoing call cannot be made since the application is dispatching an input-synchronous call. (Exception from HRESULT: 0x8001010D (RPC_E_CANTCALLOUT_ININPUTSYNCCALL))" was wondering if anyone go point me in the right direction.. Mike
0
8,034,182
11/07/2011 08:26:43
1,001,425
10/18/2011 15:03:36
1
0
Prestashop product review module
i am currently creating a webstore with prestashop and i would like a free product review module, but i could not find any. Can you point me to such a module? Thanks in advance!
module
prestashop
null
null
null
03/07/2012 20:24:26
not constructive
Prestashop product review module === i am currently creating a webstore with prestashop and i would like a free product review module, but i could not find any. Can you point me to such a module? Thanks in advance!
4
10,220,567
04/19/2012 01:49:24
1,080,093
12/04/2011 13:36:09
425
26
what is the main purpose of post() method of View
what is the main purpose of the post method which are associated with views such as imageview,textview etc. new View(Context).post(runnable) An example will be appreciated :)
android
null
null
null
null
null
open
what is the main purpose of post() method of View === what is the main purpose of the post method which are associated with views such as imageview,textview etc. new View(Context).post(runnable) An example will be appreciated :)
0
11,203,339
06/26/2012 08:20:27
851,835
07/19/2011 11:19:09
259
0
org-mode wrongly take * in a math equation as mark of bold font
I wrote the following line in org-mode, which contains two equations. $(Z^{*}_{m}, \cdot m)$ $(Z^{*}_{m}, \cdot m)$ But the org-mode didn't identify them as equations. Instead, it highlight the part between the two `*`s, i.e. `}_{m}, \cdot m)$ $(Z^{`, making this part bold. Is this a bug of org-mode or my own mistake?
emacs
org-mode
null
null
null
null
open
org-mode wrongly take * in a math equation as mark of bold font === I wrote the following line in org-mode, which contains two equations. $(Z^{*}_{m}, \cdot m)$ $(Z^{*}_{m}, \cdot m)$ But the org-mode didn't identify them as equations. Instead, it highlight the part between the two `*`s, i.e. `}_{m}, \cdot m)$ $(Z^{`, making this part bold. Is this a bug of org-mode or my own mistake?
0
1,336,883
08/26/2009 19:15:26
45,956
12/13/2008 11:39:15
2,165
84
what are the limitations of wpf web browser control?
What are the limitations of WPF web browser control? Is it good enough for a real-life browser implementation? And is it a fully managed implementation?
c#
.net
wpf
null
null
null
open
what are the limitations of wpf web browser control? === What are the limitations of WPF web browser control? Is it good enough for a real-life browser implementation? And is it a fully managed implementation?
0
6,504,183
06/28/2011 09:13:48
418,507
08/12/2010 14:15:38
198
0
error: ContentType matching query does not exist.
In Django 1.3 doesn't work next example: <pre> try: object = ContentType.objects.get(model="test").get_object_for_this_type(pk=object_id) except: raise Http404 </pre> Why ?
django
null
null
null
null
null
open
error: ContentType matching query does not exist. === In Django 1.3 doesn't work next example: <pre> try: object = ContentType.objects.get(model="test").get_object_for_this_type(pk=object_id) except: raise Http404 </pre> Why ?
0
8,192,334
11/19/2011 06:22:56
1,010,245
10/24/2011 04:39:44
1
0
Refreshing token without refreshing page
My app is a Flash game, so having to refresh the page every two hours to get a new access token really isn't very practical. However, I would prefer not to have to ask for offline access. What I need is a way to refresh the access token after it expires so that the user can continue submitting scores and what not but without having to reload the game to do so. Tetris Battle does it (you can open a new page, log out of Facebook, log back in, and it will still function just fine), yet I haven't been able to find any solution to this. Here's what I've tried: -AJAX -Popup + cookie -Iframe -file_get_contents Any other suggestions?
javascript
facebook
refresh
access-token
null
null
open
Refreshing token without refreshing page === My app is a Flash game, so having to refresh the page every two hours to get a new access token really isn't very practical. However, I would prefer not to have to ask for offline access. What I need is a way to refresh the access token after it expires so that the user can continue submitting scores and what not but without having to reload the game to do so. Tetris Battle does it (you can open a new page, log out of Facebook, log back in, and it will still function just fine), yet I haven't been able to find any solution to this. Here's what I've tried: -AJAX -Popup + cookie -Iframe -file_get_contents Any other suggestions?
0
140,312
09/26/2008 15:40:53
8,167
09/15/2008 15:18:16
191
21
Tutorial for Windows Shell Extensions
I've been postponing this part of the project because I haven't found any particular helpful example/tutorial for these 2 aspects of Shell Extensions: 1. Return information for the Hint when you hover over a file. 2. Context pop-up menu with extension context, if it makes sense. Cheers.
windows
tutorials
shell-extensions
null
null
07/04/2012 15:50:16
not constructive
Tutorial for Windows Shell Extensions === I've been postponing this part of the project because I haven't found any particular helpful example/tutorial for these 2 aspects of Shell Extensions: 1. Return information for the Hint when you hover over a file. 2. Context pop-up menu with extension context, if it makes sense. Cheers.
4
11,132,350
06/21/2012 05:59:44
1,057,261
11/21/2011 06:28:47
463
52
How to set size of the seekbar thumb in xml in android
Can anyone tell me how I can set the size (height, width) of the thumb in seekbar. I googled and found this to be done only through code. But I want this to set in xml only.
android
null
null
null
null
null
open
How to set size of the seekbar thumb in xml in android === Can anyone tell me how I can set the size (height, width) of the thumb in seekbar. I googled and found this to be done only through code. But I want this to set in xml only.
0
11,422,752
07/10/2012 22:05:39
722,271
04/24/2011 01:38:34
30
0
Large IRQ value in windows for MSI
For [MSI][1](Message Signaled Interrupts), [the IRQ value in the Windows Device Manager is large or negative][2]. Why is this so? [1]: http://en.wikipedia.org/wiki/Message_Signaled_Interrupts [2]: http://social.technet.microsoft.com/Forums/en-CA/winservergen/thread/e43c2c97-6e87-40c9-81f2-d1de219fb55b
windows
device-driver
interrupt
null
null
null
open
Large IRQ value in windows for MSI === For [MSI][1](Message Signaled Interrupts), [the IRQ value in the Windows Device Manager is large or negative][2]. Why is this so? [1]: http://en.wikipedia.org/wiki/Message_Signaled_Interrupts [2]: http://social.technet.microsoft.com/Forums/en-CA/winservergen/thread/e43c2c97-6e87-40c9-81f2-d1de219fb55b
0
9,222,434
02/10/2012 03:48:42
937,963
09/10/2011 07:44:29
8
0
Initialize Java Array in one line
I am doing a conversion from C++ to Java. Do anyone know how to convert it in Java typedef struct { int id; char *old_end; char *new_end; int old_offset; int new_offset; int min_root_size; int func; } RuleList; static RuleList step1a_rules[] = { 101, "sses", "ss", 3, 1, -1, _NULL, 102, "ies", "i", 2, 0, -1, _NULL, 103, "ss", "ss", 1, 1, -1, _NULL, 104, "s", _LAMBDA, 0, -1, -1, _NULL, 000, NULL, NULL, 0, 0, 0, _NULL, }; Thank
java
c++
syntax
null
null
02/10/2012 13:20:46
too localized
Initialize Java Array in one line === I am doing a conversion from C++ to Java. Do anyone know how to convert it in Java typedef struct { int id; char *old_end; char *new_end; int old_offset; int new_offset; int min_root_size; int func; } RuleList; static RuleList step1a_rules[] = { 101, "sses", "ss", 3, 1, -1, _NULL, 102, "ies", "i", 2, 0, -1, _NULL, 103, "ss", "ss", 1, 1, -1, _NULL, 104, "s", _LAMBDA, 0, -1, -1, _NULL, 000, NULL, NULL, 0, 0, 0, _NULL, }; Thank
3
11,629,052
07/24/2012 10:37:18
1,491,207
06/29/2012 12:54:48
13
0
Android: Autorestart application when OS kills it
friends. I have to do next thing: We are writing special application for our customers. As we know, OS kills application sometimes (f.e low memory). So question is: Can i handle moment when OS killing it. I've read about onDestroy() event, but some people says, that event doesnt fired. Is it true? Common question, can i handle OS killing application some way and restart it again. I know, that is not good idea, but customers asks us about functionality like this. Thank you for your help!
android
null
null
null
null
null
open
Android: Autorestart application when OS kills it === friends. I have to do next thing: We are writing special application for our customers. As we know, OS kills application sometimes (f.e low memory). So question is: Can i handle moment when OS killing it. I've read about onDestroy() event, but some people says, that event doesnt fired. Is it true? Common question, can i handle OS killing application some way and restart it again. I know, that is not good idea, but customers asks us about functionality like this. Thank you for your help!
0
11,542,775
07/18/2012 13:40:18
463,192
09/30/2010 19:11:36
1,048
34
Server.MapPath not refreshing after changing the directory of an ASP.NET application
I have 2 ASP.NET applications. Let's say App1 and App2. From App1, when I call Server.MapPath("/App2") I get the physical path of the App2 application. When I change the path of App2 in IIS and I call Server.MapPath("/App2") again from App1, I get the same result. I have to restart App1 for it to notice then change. Is there something I can do about this without restarting App1?
asp.net
.net
iis
null
null
null
open
Server.MapPath not refreshing after changing the directory of an ASP.NET application === I have 2 ASP.NET applications. Let's say App1 and App2. From App1, when I call Server.MapPath("/App2") I get the physical path of the App2 application. When I change the path of App2 in IIS and I call Server.MapPath("/App2") again from App1, I get the same result. I have to restart App1 for it to notice then change. Is there something I can do about this without restarting App1?
0
8,321,466
11/30/2011 05:15:39
1,029,404
11/04/2011 09:28:43
39
0
A UI component becomes null in the handler of the UI thread
In my Android application, I have UI thread and a child thread. The child thread sends messages to the UI thread that need to be printed on a TextView. I initialize the TextView in the UI thread, I spawn the child thread, the child thread sends messages to the UI thread but the UI thread fails in handleMessage(). After debugging, I have found that the TextView is null in the HandleMessage(). Below I show the code of the UI and child threads. Could you please tell me what I am doing wrong? **In the UI thread:** public class Example extends Activity { public TextView mMatchesText; public Handler mHandler; private ServerConnection conn; private String mProfile; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mMatchesText = (TextView) Example.this.findViewById(R.id.matches); mMatchesText.setText("Matches:\n"); /*this text appears when I run the app*/ Example.this.runOnUiThread(new Runnable() { public void run() { if(mMatchesText == null) Log.e("MY APP", "Before creating thread: mMatchesText is null"); else Log.e("MY APP", "Before creating thread: mMatchesText is not null"); mProfile = FileReader.readFileAsString(getApplicationContext(), "profile.txt")); conn = new ServerConnection(mProfile); if(mMatchesText == null) Log.e("MY APP", "After creating thread: mMatchesText is null"); else Log.e("MY APP", "After creating thread: mMatchesText is not null"); } }); } Handler mHandler = new Handler(){ public void handleMessage(Message msg) { Log.e("MY APP", "In handler: Thread = " + Thread.currentThread().getName()); if(mMatchesText == null) Log.e("MY APP", "In handler: mMatchesText is null"); else Log.e("MY APP", "In handler: mMatchesText is not null"); Log.e("MY APP", "In handler: " + (String)msg.obj); mMatchesText.setText((String)msg.obj); } }; **Note that the TextView is not null before and after spawning the child thread. In the Handler, the message is received correctly but the TextView is null even though it is the UI thread that's executing the handler.** **In the child thread:** public class ServerConnection extends Example implements Runnable { /* constructor */ public ServerConnection() { runner = new Thread(this); runner.start(); } public void run() { String fromServer; /** Establish connection to the server */ /** Wait for messages from the server */ while((fromServer = inFromServer.readLine()) != null) { Message toMain = mHandler.obtainMessage(); toMain.obj = fromServer; mHandler.sendMessage(toMain); } } } Could you please help me.
android
android-widget
null
null
null
null
open
A UI component becomes null in the handler of the UI thread === In my Android application, I have UI thread and a child thread. The child thread sends messages to the UI thread that need to be printed on a TextView. I initialize the TextView in the UI thread, I spawn the child thread, the child thread sends messages to the UI thread but the UI thread fails in handleMessage(). After debugging, I have found that the TextView is null in the HandleMessage(). Below I show the code of the UI and child threads. Could you please tell me what I am doing wrong? **In the UI thread:** public class Example extends Activity { public TextView mMatchesText; public Handler mHandler; private ServerConnection conn; private String mProfile; public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mMatchesText = (TextView) Example.this.findViewById(R.id.matches); mMatchesText.setText("Matches:\n"); /*this text appears when I run the app*/ Example.this.runOnUiThread(new Runnable() { public void run() { if(mMatchesText == null) Log.e("MY APP", "Before creating thread: mMatchesText is null"); else Log.e("MY APP", "Before creating thread: mMatchesText is not null"); mProfile = FileReader.readFileAsString(getApplicationContext(), "profile.txt")); conn = new ServerConnection(mProfile); if(mMatchesText == null) Log.e("MY APP", "After creating thread: mMatchesText is null"); else Log.e("MY APP", "After creating thread: mMatchesText is not null"); } }); } Handler mHandler = new Handler(){ public void handleMessage(Message msg) { Log.e("MY APP", "In handler: Thread = " + Thread.currentThread().getName()); if(mMatchesText == null) Log.e("MY APP", "In handler: mMatchesText is null"); else Log.e("MY APP", "In handler: mMatchesText is not null"); Log.e("MY APP", "In handler: " + (String)msg.obj); mMatchesText.setText((String)msg.obj); } }; **Note that the TextView is not null before and after spawning the child thread. In the Handler, the message is received correctly but the TextView is null even though it is the UI thread that's executing the handler.** **In the child thread:** public class ServerConnection extends Example implements Runnable { /* constructor */ public ServerConnection() { runner = new Thread(this); runner.start(); } public void run() { String fromServer; /** Establish connection to the server */ /** Wait for messages from the server */ while((fromServer = inFromServer.readLine()) != null) { Message toMain = mHandler.obtainMessage(); toMain.obj = fromServer; mHandler.sendMessage(toMain); } } } Could you please help me.
0
6,949,649
08/04/2011 23:05:48
184,046
10/04/2009 20:35:01
6,082
42
Inserting missing entries when doing a GROUP BY?
I am trying to use `GROUP BY` on my table to group my entries according to weeks. However, if there are no entries in certain week, how can I insert a 0 as opposed to a missing entry? CREATE TABLE #TEMP (startdate datetime) INSERT INTO #TEMP VALUES('2011-02-01') INSERT INTO #TEMP VALUES('2011-02-02') INSERT INTO #TEMP VALUES('2011-02-03') INSERT INTO #TEMP VALUES('2011-02-04') INSERT INTO #TEMP VALUES('2011-02-05') INSERT INTO #TEMP VALUES('2011-02-18') INSERT INTO #TEMP VALUES('2011-02-19') INSERT INTO #TEMP VALUES('2011-02-20') INSERT INTO #TEMP VALUES('2011-02-21') SELECT DATEPART(YEAR,startdate) AS 'AYear', DATEPART(wk,startdate) AS 'AWeek', COUNT(*) FROM #TEMP GROUP BY DATEPART(YEAR,startdate),DATEPART(wk,startdate) ORDER BY 1,2 DROP TABLE #TEMP I am getting: AYear AWeek (No column name) 2011 6 5 2011 8 2 2011 9 2 but I want this: AYear AWeek (No column name) 2011 6 5 2011 7 0 2011 8 2 2011 9 2 Any suggestions on how to do this?
sql
sql-server
sql-server-2008
query
null
null
open
Inserting missing entries when doing a GROUP BY? === I am trying to use `GROUP BY` on my table to group my entries according to weeks. However, if there are no entries in certain week, how can I insert a 0 as opposed to a missing entry? CREATE TABLE #TEMP (startdate datetime) INSERT INTO #TEMP VALUES('2011-02-01') INSERT INTO #TEMP VALUES('2011-02-02') INSERT INTO #TEMP VALUES('2011-02-03') INSERT INTO #TEMP VALUES('2011-02-04') INSERT INTO #TEMP VALUES('2011-02-05') INSERT INTO #TEMP VALUES('2011-02-18') INSERT INTO #TEMP VALUES('2011-02-19') INSERT INTO #TEMP VALUES('2011-02-20') INSERT INTO #TEMP VALUES('2011-02-21') SELECT DATEPART(YEAR,startdate) AS 'AYear', DATEPART(wk,startdate) AS 'AWeek', COUNT(*) FROM #TEMP GROUP BY DATEPART(YEAR,startdate),DATEPART(wk,startdate) ORDER BY 1,2 DROP TABLE #TEMP I am getting: AYear AWeek (No column name) 2011 6 5 2011 8 2 2011 9 2 but I want this: AYear AWeek (No column name) 2011 6 5 2011 7 0 2011 8 2 2011 9 2 Any suggestions on how to do this?
0
11,720,370
07/30/2012 11:15:33
568,280
01/08/2011 19:49:20
3
0
node mongo TypeError: boolean is not a function
db.open(... throws the following error TypeError: boolean is not a function The res function returns a function so not sure what I'm doing wrong here... var db = new Db('test', new Server('localhost', 27017, {auto_reconnect: true}, {})); function res(win) { return function(err,result){ if( err ) { util.debug('mongo:err='+err); db.close(); } else { util.debug('mongo:ok, about to call function'); win(result); } } } exports.saveCreditCheck = function(req, res){ util.debug('*** in saveCreditCheck ***'); db.open(res(function(){ util.debug('mongo:ok'); })); }; BTW, this works fine.. db.open(function(){ util.debug('mongo:ok'); });
node.js
mongodb
null
null
null
07/31/2012 14:20:10
too localized
node mongo TypeError: boolean is not a function === db.open(... throws the following error TypeError: boolean is not a function The res function returns a function so not sure what I'm doing wrong here... var db = new Db('test', new Server('localhost', 27017, {auto_reconnect: true}, {})); function res(win) { return function(err,result){ if( err ) { util.debug('mongo:err='+err); db.close(); } else { util.debug('mongo:ok, about to call function'); win(result); } } } exports.saveCreditCheck = function(req, res){ util.debug('*** in saveCreditCheck ***'); db.open(res(function(){ util.debug('mongo:ok'); })); }; BTW, this works fine.. db.open(function(){ util.debug('mongo:ok'); });
3
6,998,208
08/09/2011 14:54:28
861,588
07/25/2011 12:43:44
3
0
Arkanoid in C#, help needed
I have searched on web, but dint find any tips how to do it. IDE to be used in Microsoft Visual Studio. What project type must I choose to make Arkanoid game?
c#
null
null
null
null
08/09/2011 15:02:26
not a real question
Arkanoid in C#, help needed === I have searched on web, but dint find any tips how to do it. IDE to be used in Microsoft Visual Studio. What project type must I choose to make Arkanoid game?
1
7,096,659
08/17/2011 16:59:19
896,750
08/16/2011 13:20:31
1
0
Mac os X snow leopard error?
After not able to install Mac OS X lion i tried to install Mac os X snow leopard on VMware workstation but got this error : **system config file '/com.apple.boot.plist' not found.**
osx
osx-snow-leopard
null
null
null
08/17/2011 17:08:53
off topic
Mac os X snow leopard error? === After not able to install Mac OS X lion i tried to install Mac os X snow leopard on VMware workstation but got this error : **system config file '/com.apple.boot.plist' not found.**
2
4,832,997
01/28/2011 20:58:37
413,169
08/06/2010 14:44:45
25
0
Debug Mode: See what is in SqlCommand
I'd like to see what is about to be sent to the SQL Server from my SqlCommand before SQLCmd.ExecuteNonQuery() runs. I'm trying to debug because I am receiving the following error: ***System.FormatException: Failed to convert parameter value from a String to a Int32.*** Normally, I would use SQL Server Profiler to view what is being sent to SQL Server, but my statement is not making it that far. Is there a way to determine what it is trying to convert? I am having problems determining which parameter is causing the error.
asp.net
sql
vb.net
null
null
null
open
Debug Mode: See what is in SqlCommand === I'd like to see what is about to be sent to the SQL Server from my SqlCommand before SQLCmd.ExecuteNonQuery() runs. I'm trying to debug because I am receiving the following error: ***System.FormatException: Failed to convert parameter value from a String to a Int32.*** Normally, I would use SQL Server Profiler to view what is being sent to SQL Server, but my statement is not making it that far. Is there a way to determine what it is trying to convert? I am having problems determining which parameter is causing the error.
0
9,797,057
03/21/2012 00:36:23
574,212
01/13/2011 12:29:54
16
2
Pass image from javascript via Android javascript interface
My app loads a small HTML document that contains one image in a webview. How can I fetch this image and use it as a Bitmap object in my app? I'm already using a JavaScriptInterface together with my webview for getting some other information, like passing booleans. Is it possible to pass an image aswell via the JavaScriptIterface? Is it a good idéa or is there a better way?
javascript
android
android-webview
null
null
null
open
Pass image from javascript via Android javascript interface === My app loads a small HTML document that contains one image in a webview. How can I fetch this image and use it as a Bitmap object in my app? I'm already using a JavaScriptInterface together with my webview for getting some other information, like passing booleans. Is it possible to pass an image aswell via the JavaScriptIterface? Is it a good idéa or is there a better way?
0
2,775,297
05/05/2010 17:09:27
326,541
04/27/2010 03:58:46
77
0
When is a webapp called Beta, alpha, pre-alpha, or none
I've come across many apps on the web that call themselves Beta. I've come across other apps that had an alpha designation. I've even come across some that called themselves pre-alpha, whatever that means (if you know please clarify). Then I've come across some really bad webapps that shouldn't have left the developer's computer and they didn't have any beta designations. I've also seen some well built apps that called themselves Beta, including Stack Exchange (the mother site of SO) which I believe is very full featured to be called a Beta. I'm a little confused. It seems people are doing it at their whims. Is there an established rule or a checklist that can help decide what stage an app is in (beta, alpha, pre-alpha, or none)? P.S. Please feel free to retag as appropriate.
language-agnostic
ria
null
null
null
12/10/2011 22:07:39
not constructive
When is a webapp called Beta, alpha, pre-alpha, or none === I've come across many apps on the web that call themselves Beta. I've come across other apps that had an alpha designation. I've even come across some that called themselves pre-alpha, whatever that means (if you know please clarify). Then I've come across some really bad webapps that shouldn't have left the developer's computer and they didn't have any beta designations. I've also seen some well built apps that called themselves Beta, including Stack Exchange (the mother site of SO) which I believe is very full featured to be called a Beta. I'm a little confused. It seems people are doing it at their whims. Is there an established rule or a checklist that can help decide what stage an app is in (beta, alpha, pre-alpha, or none)? P.S. Please feel free to retag as appropriate.
4
9,974,502
04/02/2012 10:11:20
1,194,466
02/07/2012 11:02:53
45
0
Paypal Api through Zend Framework
i am implementing paypal in my zend app.i google it but not getting it from zend offical site just like other components zend provides.there are no zend paypal components too.i have searched it and i think this [link][1] is better among all i serched.i am new to zend and paypal too .i want to implement it through zend classes not core php and paypal api.plz guide me.provide some good links. [1]: http://framework.zend.com/wiki/display/ZFPROP/Zend_Service_PayPal+-+A.J.+Brown
php5
zend-framework
paypal-api
null
null
04/02/2012 16:47:31
not constructive
Paypal Api through Zend Framework === i am implementing paypal in my zend app.i google it but not getting it from zend offical site just like other components zend provides.there are no zend paypal components too.i have searched it and i think this [link][1] is better among all i serched.i am new to zend and paypal too .i want to implement it through zend classes not core php and paypal api.plz guide me.provide some good links. [1]: http://framework.zend.com/wiki/display/ZFPROP/Zend_Service_PayPal+-+A.J.+Brown
4
10,996,681
06/12/2012 12:29:33
1,441,883
06/07/2012 09:55:55
13
0
Good name for a list variable in java
What of the following is used popularly or is the standard : private List<String> names ; **OR** private List<String> listOfNames ; **OR** private List<String> namesList ;
java
null
null
null
null
06/12/2012 13:09:38
not constructive
Good name for a list variable in java === What of the following is used popularly or is the standard : private List<String> names ; **OR** private List<String> listOfNames ; **OR** private List<String> namesList ;
4
10,810,559
05/30/2012 05:40:31
1,425,147
08/24/2010 05:41:09
138
0
Could EF cause excessive memory usage in C#?
I have a multi threading console application that written in C# and Entity Framework 4.0. Yesterday, when I monitored the program for couple hours, it uses about 100MB, but this morning it becomes 500MB. Just wondering if EF will eventually become big because of caching? Or should I somehow refresh it? Thanks in advance.
c#
entity-framework
memory-management
null
null
05/30/2012 12:09:03
not constructive
Could EF cause excessive memory usage in C#? === I have a multi threading console application that written in C# and Entity Framework 4.0. Yesterday, when I monitored the program for couple hours, it uses about 100MB, but this morning it becomes 500MB. Just wondering if EF will eventually become big because of caching? Or should I somehow refresh it? Thanks in advance.
4
9,359,445
02/20/2012 10:15:26
1,220,710
02/20/2012 09:57:16
1
0
Pass the name of the file i double click on as parameter in ftype
assoc .lock=Lock <p>ftype Lock=path\lock.exe %1 How do i get the name of the file i am processing in argument of the main method in the program "lock.exe"?<p> Thats is instead of %1, i want to pass the name of the file i double click on as parameter
windows
null
null
null
null
null
open
Pass the name of the file i double click on as parameter in ftype === assoc .lock=Lock <p>ftype Lock=path\lock.exe %1 How do i get the name of the file i am processing in argument of the main method in the program "lock.exe"?<p> Thats is instead of %1, i want to pass the name of the file i double click on as parameter
0
11,194,921
06/25/2012 18:15:19
1,190,862
02/05/2012 16:40:26
1
0
Looking for an up-to-date open source and free site crawler/scrapper in written in or usable from C#/.NET
I'm looking for an up-to-date open-source and free crawler or scrapper, as the title states. I plan to write my app in C#/.NET, so it would be nice to get a C# written scrapper. I've found a couple of free and open source ones, but they seem to be abandoned projects like NCrawler, for example. I would appreciate any help! :)
.net
open-source
web-scraping
crawler
freeware
06/25/2012 18:50:49
off topic
Looking for an up-to-date open source and free site crawler/scrapper in written in or usable from C#/.NET === I'm looking for an up-to-date open-source and free crawler or scrapper, as the title states. I plan to write my app in C#/.NET, so it would be nice to get a C# written scrapper. I've found a couple of free and open source ones, but they seem to be abandoned projects like NCrawler, for example. I would appreciate any help! :)
2
8,954,253
01/21/2012 15:40:12
1,156,248
01/18/2012 12:44:48
16
0
How to use json with ExtJS
I'm using ExtJs, version 4.0.7 (the opensource one): my database is built in the following way... {"locations":{"cc0001":{"category":[""],"name":"","address":"","lat":"","long":"","tel":"","opening":"","closing":""}} Ext.onReady(function(){ var reader=new Ext.data.JsonReader( { name:'id' {name: 'name'}, {name: 'category' [] }, {name: 'address'}, {name: 'lat'}, {name: 'long'}, {name: 'tel'}, {name: 'opening'}, {name: 'closing'}} ); var store=new Ext.data.Store( { reader:reader, autoLoad : true, root: "locations", proxy:new Ext.data.HttpProxy({ url : '../descrittore/json.php?', method : 'GET' }) }); store.load(); // create the grid var grid = new Ext.grid.GridPanel({ store: store, columns: [ {header: "appeId", width: 60, dataIndex: 'id', sortable: true}, {header: "survId", width: 60, dataIndex: 'category', sortable: true}, {header: "location", width: 60, dataIndex: 'lat', sortable: true}, {header: "surveyDate", width: 100, dataIndex: 'long', sortable: true}, {header: "surveyTime", width: 100, dataIndex: 'opening', sortable: true}, ], renderTo:'example-grid', width:540, height:200 }); }); This code should read my database and insert it into a grid, but my code won't work and the resulting page appears blank: do you know where the problem is? Thanks!
json
extjs
null
null
null
01/22/2012 20:36:04
not constructive
How to use json with ExtJS === I'm using ExtJs, version 4.0.7 (the opensource one): my database is built in the following way... {"locations":{"cc0001":{"category":[""],"name":"","address":"","lat":"","long":"","tel":"","opening":"","closing":""}} Ext.onReady(function(){ var reader=new Ext.data.JsonReader( { name:'id' {name: 'name'}, {name: 'category' [] }, {name: 'address'}, {name: 'lat'}, {name: 'long'}, {name: 'tel'}, {name: 'opening'}, {name: 'closing'}} ); var store=new Ext.data.Store( { reader:reader, autoLoad : true, root: "locations", proxy:new Ext.data.HttpProxy({ url : '../descrittore/json.php?', method : 'GET' }) }); store.load(); // create the grid var grid = new Ext.grid.GridPanel({ store: store, columns: [ {header: "appeId", width: 60, dataIndex: 'id', sortable: true}, {header: "survId", width: 60, dataIndex: 'category', sortable: true}, {header: "location", width: 60, dataIndex: 'lat', sortable: true}, {header: "surveyDate", width: 100, dataIndex: 'long', sortable: true}, {header: "surveyTime", width: 100, dataIndex: 'opening', sortable: true}, ], renderTo:'example-grid', width:540, height:200 }); }); This code should read my database and insert it into a grid, but my code won't work and the resulting page appears blank: do you know where the problem is? Thanks!
4
9,736,301
03/16/2012 11:19:14
607,846
02/08/2011 09:16:51
715
12
Alternative to u'' for unicode strings
I have the following asp script which uses python 2.5: <%@ Language = Python CODEPAGE="65001"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="sv" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> Jellö Wörld<br> <% Response.Write(u'Hellö Wörld<br>') %> </body> </html> It works correctly, hurrah! However, it will become annoying if I have to use u'' all over the place. What alternatives are there? Is there any future I can import so that I can have python3 like strings? Thanks for your help, Barry.
python
null
null
null
null
null
open
Alternative to u'' for unicode strings === I have the following asp script which uses python 2.5: <%@ Language = Python CODEPAGE="65001"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="sv" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> Jellö Wörld<br> <% Response.Write(u'Hellö Wörld<br>') %> </body> </html> It works correctly, hurrah! However, it will become annoying if I have to use u'' all over the place. What alternatives are there? Is there any future I can import so that I can have python3 like strings? Thanks for your help, Barry.
0
7,884,889
10/25/2011 05:00:54
970,404
09/29/2011 05:11:08
34
0
How is the best way to do reports in WPF?
I want created a report using wpf & Entity framwork. what do you suggest about amazing free tools & open source available for WPF projects?
wpf
null
null
null
null
10/26/2011 14:13:28
not constructive
How is the best way to do reports in WPF? === I want created a report using wpf & Entity framwork. what do you suggest about amazing free tools & open source available for WPF projects?
4
4,533,974
12/26/2010 13:28:02
225,396
12/05/2009 13:21:01
308
34
Array::ConvertAll in managed C++
This is a continuation from [this][1] post. I'm trying to parse this string in managed C++: String ^ rgba = "[0.09019608,0.5176471,0.9058824,1]"; cli::array<System::Double> ^ RGB = System::Array::ConvertAll<String,cli::array<System::Double> >((rgba->Substring(1,rgba->Length-2)->Split(',')),double::Parse); Compiler throws me the following error: Error 15 error C2770: invalid explicit generic argument(s) for 'cli::array<Type,dimension> ^System::Array::ConvertAll(cli::array<TInput,1> ^,System::Converter<TInput,TOutput> ^)' What am I doing wrong? [1]: http://stackoverflow.com/questions/4532301/regular-expression-in-c-parse-into-double-array
.net
arrays
parsing
c++-cli
managed
null
open
Array::ConvertAll in managed C++ === This is a continuation from [this][1] post. I'm trying to parse this string in managed C++: String ^ rgba = "[0.09019608,0.5176471,0.9058824,1]"; cli::array<System::Double> ^ RGB = System::Array::ConvertAll<String,cli::array<System::Double> >((rgba->Substring(1,rgba->Length-2)->Split(',')),double::Parse); Compiler throws me the following error: Error 15 error C2770: invalid explicit generic argument(s) for 'cli::array<Type,dimension> ^System::Array::ConvertAll(cli::array<TInput,1> ^,System::Converter<TInput,TOutput> ^)' What am I doing wrong? [1]: http://stackoverflow.com/questions/4532301/regular-expression-in-c-parse-into-double-array
0
8,448,450
12/09/2011 16:20:29
272,501
02/13/2010 18:25:08
1,169
11
MySQL table of langauges spoken with their full printable name and ISO code
For example, `Spanish` is `ES` while `German` is `DE` and so on. Does anyone know where I could find a MySQL table-dump of all of the languages available with their name and iso codes? Here's a list to show you what I'm talking about: http://www.w3schools.com/tags/ref_language_codes.asp Thanks.
mysql
language
iso
null
null
12/10/2011 04:24:57
off topic
MySQL table of langauges spoken with their full printable name and ISO code === For example, `Spanish` is `ES` while `German` is `DE` and so on. Does anyone know where I could find a MySQL table-dump of all of the languages available with their name and iso codes? Here's a list to show you what I'm talking about: http://www.w3schools.com/tags/ref_language_codes.asp Thanks.
2
1,454,726
09/21/2009 14:13:08
162,668
08/25/2009 11:48:44
900
71
Best technology layer to start with
When I first started out in programming, the first technology I learned was C++. I got a little disheartened with it because I had to put in a lot of effort to get a rather crappy result. Once I learned PHP however, that quickly became my favourite language because I could get stuff to render on my web page straight away and get some cool stuff out the door. So my question is this: what technologies would be best for someone just starting out? Something to get them interested and motivated to learn more? If someone started learning database stuff, then how transferrable would that be to business-logic? If you start them out on something like HTML, they may get delusions of adequacy before realising programming is not really for them. So in your opinion, where would be the ideal place to start at the beginning of the journey into becoming a well rounded developer?
logic
education
training
null
null
09/21/2009 14:31:41
not constructive
Best technology layer to start with === When I first started out in programming, the first technology I learned was C++. I got a little disheartened with it because I had to put in a lot of effort to get a rather crappy result. Once I learned PHP however, that quickly became my favourite language because I could get stuff to render on my web page straight away and get some cool stuff out the door. So my question is this: what technologies would be best for someone just starting out? Something to get them interested and motivated to learn more? If someone started learning database stuff, then how transferrable would that be to business-logic? If you start them out on something like HTML, they may get delusions of adequacy before realising programming is not really for them. So in your opinion, where would be the ideal place to start at the beginning of the journey into becoming a well rounded developer?
4
6,612,223
07/07/2011 14:27:54
529,310
12/03/2010 11:38:32
809
21
How to check version of .NET install on the computer
I am writing a WPF C# Desktop app, and I want to check if the client computer has .NET installed before running the application. How to check what version of .NET has been installed on the client computer? Or, is it possible?
.net
wpf
null
null
null
null
open
How to check version of .NET install on the computer === I am writing a WPF C# Desktop app, and I want to check if the client computer has .NET installed before running the application. How to check what version of .NET has been installed on the client computer? Or, is it possible?
0
11,229,015
06/27/2012 14:51:45
1,485,979
06/27/2012 14:32:26
1
0
how to use toSting in junit and eclipse
I am new to Java and i encounter problem with implementing toString. can someone help me? the toString return the package name and the calling class name instead the results intention. i am using eclipse 3.7.2. in different place in the code i used toString and it return the proper results my file is MyLibraryTest.java public void testToString(){ setup(); addItems(); //assertEquals("Test: 2 books; 2 people.", ml.toString()); String results = ml.toString(); assertEquals("Test: 2 books; 2 people.", results); } results = org.totalBeginner.tutorial.MyLibraryTest.testToString i wonder what have i done wrong?
java
eclipse
junit
tostring
null
06/29/2012 13:11:40
not a real question
how to use toSting in junit and eclipse === I am new to Java and i encounter problem with implementing toString. can someone help me? the toString return the package name and the calling class name instead the results intention. i am using eclipse 3.7.2. in different place in the code i used toString and it return the proper results my file is MyLibraryTest.java public void testToString(){ setup(); addItems(); //assertEquals("Test: 2 books; 2 people.", ml.toString()); String results = ml.toString(); assertEquals("Test: 2 books; 2 people.", results); } results = org.totalBeginner.tutorial.MyLibraryTest.testToString i wonder what have i done wrong?
1
3,979,006
10/20/2010 14:36:33
481,850
10/20/2010 14:36:33
1
0
try to make a control page
I need some help to build a control page using php & mysql edit - update - delete - insert data anyone can help me in that?
php
null
null
null
null
10/20/2010 15:03:58
not a real question
try to make a control page === I need some help to build a control page using php & mysql edit - update - delete - insert data anyone can help me in that?
1
6,172,698
05/30/2011 05:50:18
769,900
05/25/2011 15:57:26
1
0
How to programmatically disable the PS/2 compatible mouse ?
I want to write a program to disable the PS/2 compatible mouse for my laptop. I searched the internet over and over again, and only get a little information about that. I looked into [this question](http://stackoverflow.com/questions/1430798/raw-pdo-to-send-ioctl-to-upper-filter-driver-kbfiltr-moufiltr-to-enable-disable), and learned the user mode and kernel mode and filter driver and something. But I still don't how can I disable the PS/2 compatible mouse programmatically. Can anyone give me the clear instructions to do that step by step, or give me the full example with source code ? If there is any document that hard to share by posting answer, please send as attachment via Email to myfootprints.cn@gmail.com. Thanks a lot!
c#
mouse
disable
null
null
null
open
How to programmatically disable the PS/2 compatible mouse ? === I want to write a program to disable the PS/2 compatible mouse for my laptop. I searched the internet over and over again, and only get a little information about that. I looked into [this question](http://stackoverflow.com/questions/1430798/raw-pdo-to-send-ioctl-to-upper-filter-driver-kbfiltr-moufiltr-to-enable-disable), and learned the user mode and kernel mode and filter driver and something. But I still don't how can I disable the PS/2 compatible mouse programmatically. Can anyone give me the clear instructions to do that step by step, or give me the full example with source code ? If there is any document that hard to share by posting answer, please send as attachment via Email to myfootprints.cn@gmail.com. Thanks a lot!
0
1,736,314
11/15/2009 01:56:32
104,060
05/09/2009 13:16:27
913
10
Writing to an xml file with xmllite?
I have an xml file which holds a set of "game" nodes (which contain details about saved gameplay, as you'd save your game on any console game). All of this is contained within a "games" root node. I'm implementing save functionality to this xml file and wish to be able to append or overwrite a "game" node and its child nodes within the "games" root node. How can this be accomplished with xmllite.dll?
c++
xml
null
null
null
null
open
Writing to an xml file with xmllite? === I have an xml file which holds a set of "game" nodes (which contain details about saved gameplay, as you'd save your game on any console game). All of this is contained within a "games" root node. I'm implementing save functionality to this xml file and wish to be able to append or overwrite a "game" node and its child nodes within the "games" root node. How can this be accomplished with xmllite.dll?
0
3,899,188
10/10/2010 05:53:06
471,342
10/10/2010 05:32:24
1
0
Which of client-side server side web-programming is better?
Which of client-side or server-side web-programming produces the best results for websites? Is the following a correct analysis of some major web-programming platforms? ASP - server side JSP - server side Coldfusion - server side Javascript - client side PHP - server side What sort of websites are better done using client-side, and what websites are better done using server-side?
client-side
server-side
null
null
null
10/10/2010 06:01:38
not a real question
Which of client-side server side web-programming is better? === Which of client-side or server-side web-programming produces the best results for websites? Is the following a correct analysis of some major web-programming platforms? ASP - server side JSP - server side Coldfusion - server side Javascript - client side PHP - server side What sort of websites are better done using client-side, and what websites are better done using server-side?
1
6,538,384
06/30/2011 17:01:43
823,482
06/30/2011 17:01:43
1
0
Help with program in Haskell
I need your help. I'm a beginner and I was given this exercise to do in Haskell. I have no idea about how to start... Any suggestions will be highly appreciated THANK YOU , Carlos Given a CFG (Context - Free Grammar) G and also a PDA (Push Down Automata) M Define a Haskell function called fromGtoM that accepts the alphabet T (terminals) and the list of productions of P and returns the list of instances of the transition relation Delta Use the following types: type T = [Char] type P = (Char , Maybe String) type Delta = ((Maybe Char, Char), Maybe String) fromGtoM :: T--> [P]--> [Delta] A pair (A,B) of type P denotes the production A-->B The constructor Nothing represents the empty string The constructor Just String describes non-empty expansions
haskell
null
null
null
null
07/02/2011 15:25:37
not a real question
Help with program in Haskell === I need your help. I'm a beginner and I was given this exercise to do in Haskell. I have no idea about how to start... Any suggestions will be highly appreciated THANK YOU , Carlos Given a CFG (Context - Free Grammar) G and also a PDA (Push Down Automata) M Define a Haskell function called fromGtoM that accepts the alphabet T (terminals) and the list of productions of P and returns the list of instances of the transition relation Delta Use the following types: type T = [Char] type P = (Char , Maybe String) type Delta = ((Maybe Char, Char), Maybe String) fromGtoM :: T--> [P]--> [Delta] A pair (A,B) of type P denotes the production A-->B The constructor Nothing represents the empty string The constructor Just String describes non-empty expansions
1
10,786,530
05/28/2012 14:48:30
1,074,342
11/30/2011 22:17:25
131
30
script is not working especially in google chrome
i have a jquery script which controls element's movement.below is the detail. i have div, let say of width:800px in that div i have 2 buttons ( LEFT-raow -- RIGHT-arrow ), when user click on right or left arraow i have a " hand object image" that move with in div from left to right **That hand cant go out of that div( have made my conditions in jquery function ) **PROBLEM :** problem is very strange, this functionality works fine with opera and firefox( when we reduce the size of the page from browser's tool menue ). but when i reduce the page size in google chrome then my script start acting weirdly, hand go out of the div **Possible problem according to me** is it somehitng to do with only google chrome ? any suggestion ? script is fine, tested on firefox and opera
php
jquery
browser
cross-browser
webbrowser-control
05/28/2012 21:52:30
not a real question
script is not working especially in google chrome === i have a jquery script which controls element's movement.below is the detail. i have div, let say of width:800px in that div i have 2 buttons ( LEFT-raow -- RIGHT-arrow ), when user click on right or left arraow i have a " hand object image" that move with in div from left to right **That hand cant go out of that div( have made my conditions in jquery function ) **PROBLEM :** problem is very strange, this functionality works fine with opera and firefox( when we reduce the size of the page from browser's tool menue ). but when i reduce the page size in google chrome then my script start acting weirdly, hand go out of the div **Possible problem according to me** is it somehitng to do with only google chrome ? any suggestion ? script is fine, tested on firefox and opera
1
11,398,565
07/09/2012 15:46:10
1,512,421
07/09/2012 15:28:04
1
0
Hi. I need imediate explanation with reversing a matrix
I'm new in C++, but I need to reverse a matrix, can anyone explain to me fast? this is the code: #define NMAX 10 void citire_matrice(int *n,int *m,double a[NMAX][NMAX]); void afisare(int n,int m,double a[NMAX][NMAX],char ch); void produs(int n,int m,int p,double a[NMAX][NMAX],double b[NMAX][NMAX],double c[NMAX][NMAX]); void invers(int n,double a[NMAX][NMAX],double eps,double b[NMAX][NMAX],double *det_a,int *err); void main(); { int i,j,n,m,err; double eps,det_a,a[NMAX][NMAX],a1[NMAX][NMAX],b[NMAX][NMAX],c[NMAX][NMAX]; citire_matrice(&n,&m,a); afisare(n,m,a,'A'); getch(); for(i=0;i<n;i++) for(j=0;j<n;j++) a1[i][j]=a[i][j]; eps=1.0e-6; invers(n,a1,eps,b,&det_a,&err); if(err==1) printf("\nMATRICEA A ESTE SINGULARA"); else { printf("\nMATRICEA INVERSA B=A^(-1)\n"); afisare(n,n,b,'B'); printf("\nDETERMINANTUL MATRICEI A ESTE %8.4lf",det_a); produs(n,n,n,a,b,c); printf("\nVERIFICARE C=A*B REZULTA MATRICEA UNITATE!"); afisare(n,n,c,'C'); getch(); } } all I need is how to use a matrix that has been created before this sequence (this code is a part from a larger program) I need to use a matrix called "imp_contur" instead inserting one from the keyboard and I also need to know which is the name of the result matrix from the upper code I can use in my further sequences
c++
arrays
matrix
reverse
null
07/09/2012 16:44:56
not a real question
Hi. I need imediate explanation with reversing a matrix === I'm new in C++, but I need to reverse a matrix, can anyone explain to me fast? this is the code: #define NMAX 10 void citire_matrice(int *n,int *m,double a[NMAX][NMAX]); void afisare(int n,int m,double a[NMAX][NMAX],char ch); void produs(int n,int m,int p,double a[NMAX][NMAX],double b[NMAX][NMAX],double c[NMAX][NMAX]); void invers(int n,double a[NMAX][NMAX],double eps,double b[NMAX][NMAX],double *det_a,int *err); void main(); { int i,j,n,m,err; double eps,det_a,a[NMAX][NMAX],a1[NMAX][NMAX],b[NMAX][NMAX],c[NMAX][NMAX]; citire_matrice(&n,&m,a); afisare(n,m,a,'A'); getch(); for(i=0;i<n;i++) for(j=0;j<n;j++) a1[i][j]=a[i][j]; eps=1.0e-6; invers(n,a1,eps,b,&det_a,&err); if(err==1) printf("\nMATRICEA A ESTE SINGULARA"); else { printf("\nMATRICEA INVERSA B=A^(-1)\n"); afisare(n,n,b,'B'); printf("\nDETERMINANTUL MATRICEI A ESTE %8.4lf",det_a); produs(n,n,n,a,b,c); printf("\nVERIFICARE C=A*B REZULTA MATRICEA UNITATE!"); afisare(n,n,c,'C'); getch(); } } all I need is how to use a matrix that has been created before this sequence (this code is a part from a larger program) I need to use a matrix called "imp_contur" instead inserting one from the keyboard and I also need to know which is the name of the result matrix from the upper code I can use in my further sequences
1
9,547,263
03/03/2012 15:27:14
1,246,991
03/03/2012 15:21:36
1
0
Android : how to get result back from service in the launching activity
Here is my problem : I have an activity were the user enter the data of a "problem" - This activity launch a service (by intention) with the data of the problem - The service compute the solution of the problem - And I want to send this solution to the activity so it can print if on the screen. The problem is that I don't want to start the activity again ... do you have an idea of how i can do that ? Thanks !
android
service
null
null
null
null
open
Android : how to get result back from service in the launching activity === Here is my problem : I have an activity were the user enter the data of a "problem" - This activity launch a service (by intention) with the data of the problem - The service compute the solution of the problem - And I want to send this solution to the activity so it can print if on the screen. The problem is that I don't want to start the activity again ... do you have an idea of how i can do that ? Thanks !
0
6,097,671
05/23/2011 13:13:01
379,061
06/29/2010 13:52:45
10
1
How to verify X509 cert without importing root cert ?
My program contains 2 root certs I know and trust. I have to verify certs of trustcenters and "user" certs issued by the trustcenters which all originate from these 2 root certs. I use X509Chain class to verify but that only works if the root cert is in the windows certificate store. I'm looking for a way to verify the certs without importing theeses root certs - somehow tell the X509Chain class that I do trust this root certs and it should check just the certs in the chain and nothing else. Actual code: X509Chain chain = new X509Chain(); chain.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck; chain.ChainPolicy.ExtraStore.Add(root); // i do trust this chain.ChainPolicy.ExtraStore.Add(trust); chain.Build(cert);
.net
x509certificate
verify
null
null
null
open
How to verify X509 cert without importing root cert ? === My program contains 2 root certs I know and trust. I have to verify certs of trustcenters and "user" certs issued by the trustcenters which all originate from these 2 root certs. I use X509Chain class to verify but that only works if the root cert is in the windows certificate store. I'm looking for a way to verify the certs without importing theeses root certs - somehow tell the X509Chain class that I do trust this root certs and it should check just the certs in the chain and nothing else. Actual code: X509Chain chain = new X509Chain(); chain.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck; chain.ChainPolicy.ExtraStore.Add(root); // i do trust this chain.ChainPolicy.ExtraStore.Add(trust); chain.Build(cert);
0
5,259,440
03/10/2011 12:12:46
2,701
08/24/2008 15:51:24
2,973
78
How can you tell what external libraries are required from a release build .app file?
I keep getting rejected from apple because of a "library not loaded" error every time I submit my app. (more detail can be found in my previous question [here][1]) I couldn't find any usage of this library in question except in a test project that was in no way linked to my production project. So it makes me think the library isn't actually required, yet when I do a build it's somehow making it's way into the .app file Is it possible for me to tell from the output what external libraries are required to run it? [1]: http://stackoverflow.com/questions/5236583/is-the-sentestingkit-framework-available-on-ios-4-3
iphone
objective-c
iphone-sdk-4.0
null
null
03/13/2011 17:24:19
too localized
How can you tell what external libraries are required from a release build .app file? === I keep getting rejected from apple because of a "library not loaded" error every time I submit my app. (more detail can be found in my previous question [here][1]) I couldn't find any usage of this library in question except in a test project that was in no way linked to my production project. So it makes me think the library isn't actually required, yet when I do a build it's somehow making it's way into the .app file Is it possible for me to tell from the output what external libraries are required to run it? [1]: http://stackoverflow.com/questions/5236583/is-the-sentestingkit-framework-available-on-ios-4-3
3
11,624,374
07/24/2012 04:53:48
1,547,329
07/24/2012 02:18:04
1
0
What skills should I have before I start game programming (in addition to C++)?
I'll try to be as specific as possible. And thanks to anyone who answers in advance. I'm as CS student. I have, what I beleive, a fairly solid knowledge of basic C++ syntax and logic. I would like to, in my sparetime, further my knowledge in game programming skills, both for personal persuits and future employment. Previous research has pointed me in the direction of http://nehe.gamedev.net/. This seems very helpful, but on initial look I wonder if there's something I should cover first. For example, I can use MS Visual C++ to make programs, not so much programs integrated with the OS. And MS Visual C++ also contains many many features I only have a cursory knowlegde of (ie, Win32 vs CLR, what a console application entials, the best use of header files vs resource filves vs source files, ect.) I may be wrong, but should I fill in these gaps before geting into OpenGL or Ogre3D, or is not necessary? Should I focus on learning the MS Visual C++ specific stuff, or is there a less IDE centric knowledge base to tap into? So if anyone has any links to tutorials for this kind of thing, or even the name of the knowledge base I should be looking into then I would be very greatful.
c++
null
null
null
null
07/24/2012 04:58:07
not constructive
What skills should I have before I start game programming (in addition to C++)? === I'll try to be as specific as possible. And thanks to anyone who answers in advance. I'm as CS student. I have, what I beleive, a fairly solid knowledge of basic C++ syntax and logic. I would like to, in my sparetime, further my knowledge in game programming skills, both for personal persuits and future employment. Previous research has pointed me in the direction of http://nehe.gamedev.net/. This seems very helpful, but on initial look I wonder if there's something I should cover first. For example, I can use MS Visual C++ to make programs, not so much programs integrated with the OS. And MS Visual C++ also contains many many features I only have a cursory knowlegde of (ie, Win32 vs CLR, what a console application entials, the best use of header files vs resource filves vs source files, ect.) I may be wrong, but should I fill in these gaps before geting into OpenGL or Ogre3D, or is not necessary? Should I focus on learning the MS Visual C++ specific stuff, or is there a less IDE centric knowledge base to tap into? So if anyone has any links to tutorials for this kind of thing, or even the name of the knowledge base I should be looking into then I would be very greatful.
4
4,427,080
12/13/2010 08:44:15
292,291
03/12/2010 10:53:07
2,487
31
How to Handle Database Concurrency
How should I handle an event where 1. User A Is Editing a Doc 2. User B Starts editing the same Doc 3. User B Saves 4. User A Saves - Should fail but what should I handle it? Telling the user the page(or entity) has been saved by someone else doesn't seem enough. The user should know which part of the document/fields have been changed and determine if he want to retry the save or not. - If its just short fields, I think I can compare them - whats an effective way to compare old & new values in a field? - If its a long text document, how can I do something like a diff? Or how then should I handle this? Just telling the user someone saved the document after you've opened it does not seem enough?
database
web-applications
concurrency
null
null
null
open
How to Handle Database Concurrency === How should I handle an event where 1. User A Is Editing a Doc 2. User B Starts editing the same Doc 3. User B Saves 4. User A Saves - Should fail but what should I handle it? Telling the user the page(or entity) has been saved by someone else doesn't seem enough. The user should know which part of the document/fields have been changed and determine if he want to retry the save or not. - If its just short fields, I think I can compare them - whats an effective way to compare old & new values in a field? - If its a long text document, how can I do something like a diff? Or how then should I handle this? Just telling the user someone saved the document after you've opened it does not seem enough?
0
6,047,682
05/18/2011 16:06:53
758,205
05/17/2011 21:42:22
20
0
ASP.NET Treeview From Path
I have a data hierarchy path separated by '/', currently in a SQL Server 2008 table. How can I display this path as a TreeView in my ASP.NET C# application. Here is an example of what the table looks like: <pre> Parent1/ Parent2/ Parent2/Child1 Parent1/Child1 Parent1/Child1/GrandChild1 Parent1/Child2 </pre> I would like to display it something like this: <pre> + Parent1 - Child1 - GrandChild1 - Child2 + Parent2 - Child1 </pre> Any help would be appreciated, thanks!
c#
asp.net
sql
treeview
tree
null
open
ASP.NET Treeview From Path === I have a data hierarchy path separated by '/', currently in a SQL Server 2008 table. How can I display this path as a TreeView in my ASP.NET C# application. Here is an example of what the table looks like: <pre> Parent1/ Parent2/ Parent2/Child1 Parent1/Child1 Parent1/Child1/GrandChild1 Parent1/Child2 </pre> I would like to display it something like this: <pre> + Parent1 - Child1 - GrandChild1 - Child2 + Parent2 - Child1 </pre> Any help would be appreciated, thanks!
0
8,903,814
01/18/2012 00:51:16
699,325
02/08/2011 22:18:49
11
1
Zapp from Square build failure
I am trying to run Zapp from github, but it fails with multiple compile errors. But the compile errors are for pretty basic stuff, like the rowForView method cannot be found in a tableView object. I have not altered the build at all from the GitHub original download. Any ideas? Zapp Group /Users/cameron_geiser/Downloads/square-zapp-faa7f84/Zapp/ZappAppDelegate.m Instance method '-rowForView:' not found (return type defaults to 'id') Incompatible pointer to integer conversion initializing 'NSInteger' (aka 'long') with an expression of type 'id' Use of undeclared identifier 'NSConfinementConcurrencyType' /Users/cameron_geiser/Downloads/square-zapp-faa7f84/Zapp/ZappRepositoriesController.m Instance method '-createDirectoryAtURL:withIntermediateDirectories:attributes:error:' not found (return type defaults to 'id')
xcode
git
square
null
null
04/02/2012 21:09:54
too localized
Zapp from Square build failure === I am trying to run Zapp from github, but it fails with multiple compile errors. But the compile errors are for pretty basic stuff, like the rowForView method cannot be found in a tableView object. I have not altered the build at all from the GitHub original download. Any ideas? Zapp Group /Users/cameron_geiser/Downloads/square-zapp-faa7f84/Zapp/ZappAppDelegate.m Instance method '-rowForView:' not found (return type defaults to 'id') Incompatible pointer to integer conversion initializing 'NSInteger' (aka 'long') with an expression of type 'id' Use of undeclared identifier 'NSConfinementConcurrencyType' /Users/cameron_geiser/Downloads/square-zapp-faa7f84/Zapp/ZappRepositoriesController.m Instance method '-createDirectoryAtURL:withIntermediateDirectories:attributes:error:' not found (return type defaults to 'id')
3
3,517,902
08/19/2010 00:44:29
319,721
04/18/2010 15:12:42
67
4
MVC HttpDelete Verb causing 405 Method Not Allowed
I'm encounting a method now allowed exception when calling a controller action which accepts the Delete verb. I thought the problem was that the HandlerMappings in IIS 7.0 were wrong and when I looked at: ExtensionlessUrl-ISAPI-4.0_64bit ExtensionlessUrl-ISAPI-4.0_32bit ExtensionlessUrl-Integrated-4.0 Sure enough they didn't accept the DELETE verb. I added this to the list of Verbs but I am still getting an error so I'm at a loss as to why this is the case. Can anyone shed any light on this?
asp.net-mvc-2
httphandler
null
null
null
null
open
MVC HttpDelete Verb causing 405 Method Not Allowed === I'm encounting a method now allowed exception when calling a controller action which accepts the Delete verb. I thought the problem was that the HandlerMappings in IIS 7.0 were wrong and when I looked at: ExtensionlessUrl-ISAPI-4.0_64bit ExtensionlessUrl-ISAPI-4.0_32bit ExtensionlessUrl-Integrated-4.0 Sure enough they didn't accept the DELETE verb. I added this to the list of Verbs but I am still getting an error so I'm at a loss as to why this is the case. Can anyone shed any light on this?
0
9,603,883
03/07/2012 15:04:30
1,254,977
03/07/2012 14:56:41
1
0
How to deploy/run Sinatra app on Mac via git push?
We have a git server running on Gitosis hosting our projects. We have created an interface to display info about our repos, and now need to deploy it to the Mac running gitosis. The files for the Sinatra app need to reside in the /Users/git/repositories folder, but we would also like the Sinatra app to start running whenever the master branch is updated. Is there a tool specifically for deploying on a Mac/example of a Git hook that will deploy in this manner? We are looking for the simplest deploy possible. I'm assuming it will run on apache and we'll need to add a virtual host....
osx
git
server
deployment
gitosis
null
open
How to deploy/run Sinatra app on Mac via git push? === We have a git server running on Gitosis hosting our projects. We have created an interface to display info about our repos, and now need to deploy it to the Mac running gitosis. The files for the Sinatra app need to reside in the /Users/git/repositories folder, but we would also like the Sinatra app to start running whenever the master branch is updated. Is there a tool specifically for deploying on a Mac/example of a Git hook that will deploy in this manner? We are looking for the simplest deploy possible. I'm assuming it will run on apache and we'll need to add a virtual host....
0
5,899,447
05/05/2011 14:31:24
785,623
05/05/2011 14:06:37
1
0
i want to take a string through console ane store it in a charecter array
i am trying to convert a string to charecter array .please help me out .
java
null
null
null
null
05/05/2011 14:46:09
not a real question
i want to take a string through console ane store it in a charecter array === i am trying to convert a string to charecter array .please help me out .
1
8,174,577
11/17/2011 21:28:51
1,048,463
11/15/2011 21:05:24
1
0
Developing web applications for Mobile
What is the best way to develop mobile web applications using Asp.net 4.0/4.5 or asp.net MVC using HTML 5? How do we architect this applications . Single application redirecting to specific web pages for desktop browser and mobile . Which is the best GUI pattern for this kind of application development?
asp.net
mobile
null
null
null
11/18/2011 00:59:41
not constructive
Developing web applications for Mobile === What is the best way to develop mobile web applications using Asp.net 4.0/4.5 or asp.net MVC using HTML 5? How do we architect this applications . Single application redirecting to specific web pages for desktop browser and mobile . Which is the best GUI pattern for this kind of application development?
4
6,667,415
07/12/2011 16:09:31
838,067
07/11/2011 00:28:29
6
0
How can I setup Plone 4.0.7 for Diazo?
I would like to know the correct steps to setup Diazo in a Plone 4.0.7 installation. Thanks in advance. Alano
plone
diazo
null
null
null
07/15/2011 15:32:05
off topic
How can I setup Plone 4.0.7 for Diazo? === I would like to know the correct steps to setup Diazo in a Plone 4.0.7 installation. Thanks in advance. Alano
2
4,623,486
01/07/2011 07:41:38
513,478
11/19/2010 12:46:14
6
0
UIInterface orientation for iPad
I converted one iPhone app to iPad. In that app i just want Portrait, PortraitUpsideDown. In App I added code like below - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation==UIInterfaceOrientationPortrait || interfaceOrientation==UIInterfaceOrientationPortraitUpsideDown); } But I am not getting orientation. Any one help me for this. Thank you.
ipad
uiinterfaceorientation
null
null
null
04/11/2011 22:22:09
not a real question
UIInterface orientation for iPad === I converted one iPhone app to iPad. In that app i just want Portrait, PortraitUpsideDown. In App I added code like below - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation==UIInterfaceOrientationPortrait || interfaceOrientation==UIInterfaceOrientationPortraitUpsideDown); } But I am not getting orientation. Any one help me for this. Thank you.
1
2,874,763
05/20/2010 14:38:55
305,121
03/30/2010 13:23:57
537
31
Database model for saving random boolean expressions
I have expressions like this: **(cat OR cats) AND (dog OR dogs) NOT (pigeon OR firefly)** Anyone having idea how to make tables to save those? Before I got request for usage of brackets, I limited usage of operators to avoid ambiguous situations. So only ANDs and NOTs or only ORs and saved those in this manner: *operators* id | name 1 | AND 2 | OR 3 | NOT *keywords* id | keyword 1 | cat 2 | dog 3 | firefly *expressions* id | operator | keywordId 1 | 0 | 1 1 | 1 | 2 1 | 3 | 3 which was: cat AND dog NOT firefly But now, I'm really puzzled...
database-design
boolean-logic
database
boolean-expression
null
null
open
Database model for saving random boolean expressions === I have expressions like this: **(cat OR cats) AND (dog OR dogs) NOT (pigeon OR firefly)** Anyone having idea how to make tables to save those? Before I got request for usage of brackets, I limited usage of operators to avoid ambiguous situations. So only ANDs and NOTs or only ORs and saved those in this manner: *operators* id | name 1 | AND 2 | OR 3 | NOT *keywords* id | keyword 1 | cat 2 | dog 3 | firefly *expressions* id | operator | keywordId 1 | 0 | 1 1 | 1 | 2 1 | 3 | 3 which was: cat AND dog NOT firefly But now, I'm really puzzled...
0
8,599,833
12/22/2011 05:39:08
1,031,076
11/05/2011 12:38:43
19
0
How SOAP and REST work with XML/JSON response?
This is one of very common question asked again and again on stack over flow and i read so many answers about this but i am still bit confused. I need to call the webservices from iPhone sdk. I am having questions as, 1> I am not clear what response SOAP or REST return.Is there anything specific that if response is XML then we should use REST and if JSON we should use SOAP? 2> What is the role of ASIHTTP with SOAP and REST? 3> if I am getting XML response as <oproduct> <iid>113133791</iid> <icategoryid>270</icategoryid> <imerchantid>1547</imerchantid> <iadult>0</iadult> <sname>The Ashes / 1st Test - England v Australia - Day 1</sname> <sawdeeplink>http://www.acbcd.com/pclick.php?p=113133791&amp;a=111402&amp;m=1547&amp;platform=cs</sawdeeplink> <sawthumburl>http://images.abcdd.com/thumb/1547/113133791.jpg</sawthumburl> <fprice>69.99</fprice> </oproduct> Do I need to parse it by hand? or how do I handle XML response? I got so many articles about REST and SOAP but no proper code to understand the thing. Any help regarding these questions will be so grateful.
iphone
xml
rest
soap
asihttprequest
null
open
How SOAP and REST work with XML/JSON response? === This is one of very common question asked again and again on stack over flow and i read so many answers about this but i am still bit confused. I need to call the webservices from iPhone sdk. I am having questions as, 1> I am not clear what response SOAP or REST return.Is there anything specific that if response is XML then we should use REST and if JSON we should use SOAP? 2> What is the role of ASIHTTP with SOAP and REST? 3> if I am getting XML response as <oproduct> <iid>113133791</iid> <icategoryid>270</icategoryid> <imerchantid>1547</imerchantid> <iadult>0</iadult> <sname>The Ashes / 1st Test - England v Australia - Day 1</sname> <sawdeeplink>http://www.acbcd.com/pclick.php?p=113133791&amp;a=111402&amp;m=1547&amp;platform=cs</sawdeeplink> <sawthumburl>http://images.abcdd.com/thumb/1547/113133791.jpg</sawthumburl> <fprice>69.99</fprice> </oproduct> Do I need to parse it by hand? or how do I handle XML response? I got so many articles about REST and SOAP but no proper code to understand the thing. Any help regarding these questions will be so grateful.
0
2,783,495
05/06/2010 18:33:55
18,891
09/19/2008 14:20:24
677
34
SQL Server Index Naming Conventions
Is there some standard way to name indexes for SQL Server? It seems that the primary key index is named PK_<tablename> and non-clustered indexes typically start with IX_<tablename>. Are there any naming conventions beyond that for unique indexes?
sql-server
index
naming-conventions
null
null
06/02/2012 20:17:29
not constructive
SQL Server Index Naming Conventions === Is there some standard way to name indexes for SQL Server? It seems that the primary key index is named PK_<tablename> and non-clustered indexes typically start with IX_<tablename>. Are there any naming conventions beyond that for unique indexes?
4
1,659,520
11/02/2009 05:17:28
200,746
11/02/2009 05:14:42
1
0
asp.net with javascript
How can i insert a javascript in database as a record in ASP.net... with the help of stored procedure... thnakx
javscript
asp.net
database
entry
null
null
open
asp.net with javascript === How can i insert a javascript in database as a record in ASP.net... with the help of stored procedure... thnakx
0