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
55,363
09/10/2008 21:31:50
3,742
08/30/2008 14:08:11
123
18
Best tools for creating website wireframes
When creating a wireframe for a website, I always start with a [Visio wireframe stencil from Garrett Dimon][1]. The stencil is amazing but it has been a few years since it has been updated and I'm looking for something new and exciting. What wireframing tool(s) do you use, if any? [1]: http://v1.garrettdimon.com/resources/templates-stencils-for-visio-omnigraffle
wireframe
null
null
null
null
09/20/2011 19:29:38
not constructive
Best tools for creating website wireframes === When creating a wireframe for a website, I always start with a [Visio wireframe stencil from Garrett Dimon][1]. The stencil is amazing but it has been a few years since it has been updated and I'm looking for something new and exciting. What wireframing tool(s) do you use, if any? [1]: http://v1.garrettdimon.com/resources/templates-stencils-for-visio-omnigraffle
4
6,451,253
06/23/2011 08:26:36
811,781
06/23/2011 07:47:21
1
0
C# Custom Comparer with Operation delegate
I'm trying to sort a custom BindingList. But i came across the problem that my Comparer does not recognize the properties of my class. The "x.Code_PK_OriginalValue" is not recognized. The weird thing is that intellisense marks "Begrenzingen" in Comparer class different as "Begrenzingen" in the first code block beneath. BindingListX<Begrenzingen> lst = new BindingListX<Begr....; lst.OrderBy(t => t, new CustomComparer<Begrenzingen>());   public class CustomComparer<Begrenzingen> : IComparer<Begrenzingen> { private readonly Comparison<Begrenzingen> _comparison; public CustomComparer() { _comparison = new Comparison<Begrenzingen>( (Begrenzingen x, Begrenzingen y) => { return x.Code_PK_OriginalValue.CompareTo(y.Code_PK_OriginalValue); } ); } public int Compare(Begrenzingen x, Begrenzingen y) { return _comparison(x, y); } }   public class BindingListX<T> : BindingList<T> { public void OrderBy(Func<T,T> keySelector, IComparer<T> comparer) { this.Items.OrderBy(keySelector, comparer); } }
c#
delegates
comparison
null
null
null
open
C# Custom Comparer with Operation delegate === I'm trying to sort a custom BindingList. But i came across the problem that my Comparer does not recognize the properties of my class. The "x.Code_PK_OriginalValue" is not recognized. The weird thing is that intellisense marks "Begrenzingen" in Comparer class different as "Begrenzingen" in the first code block beneath. BindingListX<Begrenzingen> lst = new BindingListX<Begr....; lst.OrderBy(t => t, new CustomComparer<Begrenzingen>());   public class CustomComparer<Begrenzingen> : IComparer<Begrenzingen> { private readonly Comparison<Begrenzingen> _comparison; public CustomComparer() { _comparison = new Comparison<Begrenzingen>( (Begrenzingen x, Begrenzingen y) => { return x.Code_PK_OriginalValue.CompareTo(y.Code_PK_OriginalValue); } ); } public int Compare(Begrenzingen x, Begrenzingen y) { return _comparison(x, y); } }   public class BindingListX<T> : BindingList<T> { public void OrderBy(Func<T,T> keySelector, IComparer<T> comparer) { this.Items.OrderBy(keySelector, comparer); } }
0
11,492,676
07/15/2012 14:22:57
1,496,893
07/02/2012 18:41:15
1
0
Google login within my website
Sir,I have to add a google login to my website similar to that of stack overflow.com.Please help me with the steps and codes. Thanks in advance.
php
google
login
gmail
null
07/15/2012 14:30:14
not a real question
Google login within my website === Sir,I have to add a google login to my website similar to that of stack overflow.com.Please help me with the steps and codes. Thanks in advance.
1
3,871,713
10/06/2010 10:52:06
69,805
02/23/2009 08:45:29
31
0
Which version of rails to require a lesser version of RubyGems?
I'm unable to update RubyGems because of shared hosting, but can change versions of rails quite easily. I get the following error when I try to start mongrel: ** Starting Mongrel listening at 0.0.0.0:2011 ** Starting Rails with production environment... Rails requires RubyGems >= 1.3.2 (you have 1.3.1). Please `gem update --system` and try again. My current rails --version is 2.3.5. Is there a version of rails I can downgrade to so that it doesn't require 1.3.1?
ruby-on-rails
rubygems
mongrel
null
null
null
open
Which version of rails to require a lesser version of RubyGems? === I'm unable to update RubyGems because of shared hosting, but can change versions of rails quite easily. I get the following error when I try to start mongrel: ** Starting Mongrel listening at 0.0.0.0:2011 ** Starting Rails with production environment... Rails requires RubyGems >= 1.3.2 (you have 1.3.1). Please `gem update --system` and try again. My current rails --version is 2.3.5. Is there a version of rails I can downgrade to so that it doesn't require 1.3.1?
0
8,323,602
11/30/2011 09:22:42
1,073,000
11/30/2011 09:15:41
1
0
Program to search for specific news
Help with a program in Delphi. It is necessary to fulfill the program on the Internet searching for information (news) introduced by request (for example: Moscow traffic accident, or Yaroslavl - Robbery, there are several criteria for the search), will be able to specify the date or dates for the period of search. Well if you could find apart from the general to ask a specific list of news sites to search. Search results deduced in the form of a list - links to on them could go. In general I do not know how to implement it. I was advised to look at SEO and go from the back, but honestly I do not know how.
delphi
search
news
null
null
12/01/2011 08:09:37
not a real question
Program to search for specific news === Help with a program in Delphi. It is necessary to fulfill the program on the Internet searching for information (news) introduced by request (for example: Moscow traffic accident, or Yaroslavl - Robbery, there are several criteria for the search), will be able to specify the date or dates for the period of search. Well if you could find apart from the general to ask a specific list of news sites to search. Search results deduced in the form of a list - links to on them could go. In general I do not know how to implement it. I was advised to look at SEO and go from the back, but honestly I do not know how.
1
5,349,089
03/18/2011 07:14:01
665,644
03/18/2011 07:14:01
1
0
Creat c# program that allows the user to input expression ex." 5+3/2*2 " program output infix,postfix,prefix and also the Result
im a 1st year student need to understand expression tree
c#
null
null
null
null
03/18/2011 08:04:28
not a real question
Creat c# program that allows the user to input expression ex." 5+3/2*2 " program output infix,postfix,prefix and also the Result === im a 1st year student need to understand expression tree
1
10,292,087
04/24/2012 05:18:23
1,352,854
04/24/2012 05:11:06
1
0
simple SNMP trap receiver in C
Hii am new to SNMP i want to write a application to recive traps from a subagent and foward it to another trap manager please can anyone help Thanks, Arun
linux
net-snmp
null
null
null
04/25/2012 08:53:01
not a real question
simple SNMP trap receiver in C === Hii am new to SNMP i want to write a application to recive traps from a subagent and foward it to another trap manager please can anyone help Thanks, Arun
1
2,345,863
02/27/2010 01:21:57
218,913
11/25/2009 20:15:00
135
0
Styling links with CSS
I'm trying to style these links: <a class="sub" href="#">Email Updates</a> <a class="sub" href="#">RSS Updates</a> With this CSS: .sub:link, .sub:visited{height: 50px; width: 308px; background-color: #669900; line-height: 50px; margin: 0 0 0 -15px; font-size: 35px; font-family: "Helvetica", sans-serif; color: #FFFFFF; text-decoration: none;} .sub:hover{background-color: #336600;} Do you see anything incorrect? All the style being applied to my links is my default,which is this: a{ float: none; color: #669900; text-decoration: underline; } And I was sure to put that BEFORE my ".sub" styles. Any ideas? Thanks!
html
css
hyperlink
null
null
null
open
Styling links with CSS === I'm trying to style these links: <a class="sub" href="#">Email Updates</a> <a class="sub" href="#">RSS Updates</a> With this CSS: .sub:link, .sub:visited{height: 50px; width: 308px; background-color: #669900; line-height: 50px; margin: 0 0 0 -15px; font-size: 35px; font-family: "Helvetica", sans-serif; color: #FFFFFF; text-decoration: none;} .sub:hover{background-color: #336600;} Do you see anything incorrect? All the style being applied to my links is my default,which is this: a{ float: none; color: #669900; text-decoration: underline; } And I was sure to put that BEFORE my ".sub" styles. Any ideas? Thanks!
0
8,980,391
01/24/2012 00:03:37
631,435
02/24/2011 01:12:31
39
0
How to setup my site to accept payments with credit card/debit card, and/or pay pal?
I need to integrate payments with debit card/credit card (possibly pay pal too) into my existing website. I know I have several options, such as - Pay pay with third party shopping cart - Merchant account with bank (Would I need a 3rd party shopping cart here too?) - Any other options? I am just starting off, so nothing fancy at the moment. I do not want to change the layout of my site, so whatever I choose must allow for me to keep my existing layout. Any recommendations on which route to take? Merchant account/ 3rd party shopping cart? What services would you recommend? What shopping carts would you recommend? They can be simple, as long as they provide good functionality.
php
e-commerce
null
null
null
01/24/2012 00:55:06
off topic
How to setup my site to accept payments with credit card/debit card, and/or pay pal? === I need to integrate payments with debit card/credit card (possibly pay pal too) into my existing website. I know I have several options, such as - Pay pay with third party shopping cart - Merchant account with bank (Would I need a 3rd party shopping cart here too?) - Any other options? I am just starting off, so nothing fancy at the moment. I do not want to change the layout of my site, so whatever I choose must allow for me to keep my existing layout. Any recommendations on which route to take? Merchant account/ 3rd party shopping cart? What services would you recommend? What shopping carts would you recommend? They can be simple, as long as they provide good functionality.
2
6,194,419
05/31/2011 22:47:15
778,477
05/31/2011 22:47:15
1
0
Extract link of background, jsoup
I have a problem with extract link from ... <div class="post_video" style="background-image:url(http://img.youtube.com/vi/JFf3uazyXco/2.jpg);"> ... using jsoup. Thanks.
background-image
jsoup
null
null
null
null
open
Extract link of background, jsoup === I have a problem with extract link from ... <div class="post_video" style="background-image:url(http://img.youtube.com/vi/JFf3uazyXco/2.jpg);"> ... using jsoup. Thanks.
0
538,498
02/11/2009 19:58:12
5,642
09/10/2008 15:42:57
1,110
34
Your Favorite JQuery Controls
I'm still getting into JQuery, one of the most attractive elements, is the plethora of available plug-ins and controls! Of late, I've been a big fan of the [Accordion][1]. When styled and combined with some of the better animations it looks great. I've also just been introduced to the [coda-slider][2], which also does an great job. Help me learn! List your favorite JQuery controls and plug-ins! [1]: http://jquery.bassistance.de/accordion/demo/ [2]: http://www.ndoherty.com/demos/coda-slider/1.1.1/
jquery
jquery-ui
jquery-plugins
null
null
06/10/2012 23:16:16
not constructive
Your Favorite JQuery Controls === I'm still getting into JQuery, one of the most attractive elements, is the plethora of available plug-ins and controls! Of late, I've been a big fan of the [Accordion][1]. When styled and combined with some of the better animations it looks great. I've also just been introduced to the [coda-slider][2], which also does an great job. Help me learn! List your favorite JQuery controls and plug-ins! [1]: http://jquery.bassistance.de/accordion/demo/ [2]: http://www.ndoherty.com/demos/coda-slider/1.1.1/
4
2,968,196
06/03/2010 17:10:23
10,771
09/16/2008 01:43:47
6,054
228
How to get strptime to raise ArgumentError with garbage trailing characters
We have to handle user specified date formats in our application. We decided to go with `Date.strptime` for parsing and validation, which works great, except for how it just ignores any garbage data entered. Here is an irb session demonstrating the issue ree-1.8.7-2010.01 > require 'date' => true ree-1.8.7-2010.01 > d = Date.strptime '2001-01-01failfailfail', '%Y-%m-%d' => #<Date: 4903821/2,0,2299161> ree-1.8.7-2010.01 > d.to_s => "2001-01-01" what we would like, is behavior more like this ree-1.8.7-2010.01 > d = Date.strptime '2001failfailfail-01-01', '%Y-%m-%d' ArgumentError: invalid date Any suggestions would be appreciated
ruby
validation
parsing
date
null
null
open
How to get strptime to raise ArgumentError with garbage trailing characters === We have to handle user specified date formats in our application. We decided to go with `Date.strptime` for parsing and validation, which works great, except for how it just ignores any garbage data entered. Here is an irb session demonstrating the issue ree-1.8.7-2010.01 > require 'date' => true ree-1.8.7-2010.01 > d = Date.strptime '2001-01-01failfailfail', '%Y-%m-%d' => #<Date: 4903821/2,0,2299161> ree-1.8.7-2010.01 > d.to_s => "2001-01-01" what we would like, is behavior more like this ree-1.8.7-2010.01 > d = Date.strptime '2001failfailfail-01-01', '%Y-%m-%d' ArgumentError: invalid date Any suggestions would be appreciated
0
8,279,786
11/26/2011 16:21:45
1,003,513
10/19/2011 15:38:49
35
4
Preferences window does not re-open once closed
I have a button that when clicked opens a Preferences window: -(IBAction)openPreferences:(id)sender { if (!prefController) { prefController = [[PreferencesController alloc] initWithWindowNibName:@"Preferences"]; [prefController showWindow:self]; } } However, upon closing the Preferences window, clicking on the button again does not re-open the window. Can someone teach me how to solve this? thanks xD
objective-c
cocoa
window
preferences
null
null
open
Preferences window does not re-open once closed === I have a button that when clicked opens a Preferences window: -(IBAction)openPreferences:(id)sender { if (!prefController) { prefController = [[PreferencesController alloc] initWithWindowNibName:@"Preferences"]; [prefController showWindow:self]; } } However, upon closing the Preferences window, clicking on the button again does not re-open the window. Can someone teach me how to solve this? thanks xD
0
6,719,371
07/16/2011 18:34:13
841,325
07/12/2011 18:20:34
1
0
Protecting hard coded strings from decompilation
I am writing an application that needs to connect to a MySQL database on an external server. I need a "hard coded" string to connect to the database which contains user and password details. This is an issue when people can decompile my application to view almost exactly the code that I originally typed, which could give them direct access to my database. Is there any way of preventing people from viewing these strings with code? I'd prefer not to use obfuscators. Many thanks, Steve
c#
null
null
null
null
null
open
Protecting hard coded strings from decompilation === I am writing an application that needs to connect to a MySQL database on an external server. I need a "hard coded" string to connect to the database which contains user and password details. This is an issue when people can decompile my application to view almost exactly the code that I originally typed, which could give them direct access to my database. Is there any way of preventing people from viewing these strings with code? I'd prefer not to use obfuscators. Many thanks, Steve
0
8,950,618
01/21/2012 04:20:33
1,047,377
11/15/2011 10:35:37
1
0
Cannot run localhost in my new Internet Connection
I'm a beginner in php! Recently I've moved & got wireless internet connection at my home & got a new laptop also bt the problem is localhost is not running in wampserver! It just says waiting in the browser! I've googled, & according to some research it says to change the port number bt I didn't find any line in php.ini file that shows up my port! How do I find it?
tcp
localhost
port
wampserver
router
01/22/2012 15:16:18
off topic
Cannot run localhost in my new Internet Connection === I'm a beginner in php! Recently I've moved & got wireless internet connection at my home & got a new laptop also bt the problem is localhost is not running in wampserver! It just says waiting in the browser! I've googled, & according to some research it says to change the port number bt I didn't find any line in php.ini file that shows up my port! How do I find it?
2
7,616,519
09/30/2011 22:00:24
834,316
07/07/2011 20:25:16
44
2
Dynamic setting of Log4j level across multiple JVMs
I am working in an application has a number of plain vanilla Java components, each of which runs in a separate JVM. All these components use Log4j and there is no option to change to another logging library. As the title implies, I am looking for an "easy" way to **dynamically apply a Log4j logging level across all components/JVMs**. By "easy", I mean without rewriting the source code (otherwise, one can use, for instance, an interface to get/set the logging level, and have all classes implement that interface). There are articles on the web about using JMX (for instance, via the LoggerDynamicBean class ([http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/jmx/LoggerDynamicMBean.html][1]) of the Log4j distribution. An interesting such article describes how to implement this using an application server (Tomcat): http://www.devx.com/Java/Article/32359/1954. The application server seems necessary as an implementation of the MBeanServer class, to which all the loggers will be registered by Log4j as MBeans. **Is there any implementation that does this dynamic logging level setting, across multiple JVMs, either via JMX, or via any other means?** [1]: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/jmx/LoggerDynamicMBean.html
java
log4j
jmx
null
null
null
open
Dynamic setting of Log4j level across multiple JVMs === I am working in an application has a number of plain vanilla Java components, each of which runs in a separate JVM. All these components use Log4j and there is no option to change to another logging library. As the title implies, I am looking for an "easy" way to **dynamically apply a Log4j logging level across all components/JVMs**. By "easy", I mean without rewriting the source code (otherwise, one can use, for instance, an interface to get/set the logging level, and have all classes implement that interface). There are articles on the web about using JMX (for instance, via the LoggerDynamicBean class ([http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/jmx/LoggerDynamicMBean.html][1]) of the Log4j distribution. An interesting such article describes how to implement this using an application server (Tomcat): http://www.devx.com/Java/Article/32359/1954. The application server seems necessary as an implementation of the MBeanServer class, to which all the loggers will be registered by Log4j as MBeans. **Is there any implementation that does this dynamic logging level setting, across multiple JVMs, either via JMX, or via any other means?** [1]: http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/jmx/LoggerDynamicMBean.html
0
11,722,368
07/30/2012 13:15:33
960,485
09/23/2011 05:46:23
332
0
Issue realted to autocomplate textbox in C#
I have WindowsApplication and in that i have added Some Textbox and set AutoComplateSource Following property txt.AutoCompleteMode = AutoCompleteMode.Suggest; txt.AutoCompleteSource = AutoCompleteSource.CustomSource; txt.AutoCompleteCustomSource = collection; I have set collection data from the database.. however when user selects some text from dropdown from the Textbox.. and hits TAB to move to some other textbox or control.. it happens nothing.. mean tab key doesn't working and Textbox doesn't loose its focus() why? and what is the solution? Thanks...
c#
vb.net
winforms
null
null
null
open
Issue realted to autocomplate textbox in C# === I have WindowsApplication and in that i have added Some Textbox and set AutoComplateSource Following property txt.AutoCompleteMode = AutoCompleteMode.Suggest; txt.AutoCompleteSource = AutoCompleteSource.CustomSource; txt.AutoCompleteCustomSource = collection; I have set collection data from the database.. however when user selects some text from dropdown from the Textbox.. and hits TAB to move to some other textbox or control.. it happens nothing.. mean tab key doesn't working and Textbox doesn't loose its focus() why? and what is the solution? Thanks...
0
1,967,456
12/28/2009 00:04:40
239,324
12/24/2009 19:18:27
1
0
How Big Should main() Be, in C?
I'm learning a little C over the holiday weekend, and I started to look at other programs written in C. I ended up looking at GNU Netcat, thinking it would be a good example. I was a bit shocked to see a [600 line `main()` function][2]. Is this normal? If it is normal is this considered good C coding practices? [2]: http://netcat.cvs.sourceforge.net/viewvc/netcat/netcat/src/netcat.c?revision=1.64&view=markup
c
gnu
null
null
null
12/28/2009 14:22:59
not constructive
How Big Should main() Be, in C? === I'm learning a little C over the holiday weekend, and I started to look at other programs written in C. I ended up looking at GNU Netcat, thinking it would be a good example. I was a bit shocked to see a [600 line `main()` function][2]. Is this normal? If it is normal is this considered good C coding practices? [2]: http://netcat.cvs.sourceforge.net/viewvc/netcat/netcat/src/netcat.c?revision=1.64&view=markup
4
8,079,277
11/10/2011 12:08:40
718,785
04/21/2011 10:47:08
162
5
What is important in a mobile application ? Memory optimization or fast execution
This is an open question towards learning about memory optimization and code optimization for faster execution. What would you give more importance within the two ? How do you usually optimize you code to use memory efficiently ? How do you optimize your code to run faster ? As a mobile developer we've to give importance to use memory properly. But sometimes using it usually backfires by creating more objects or under utilizing the memory. What are your usual methods to optimize memory & decrease the run time of the application ?
java
android
memory
time
null
11/10/2011 13:43:00
not a real question
What is important in a mobile application ? Memory optimization or fast execution === This is an open question towards learning about memory optimization and code optimization for faster execution. What would you give more importance within the two ? How do you usually optimize you code to use memory efficiently ? How do you optimize your code to run faster ? As a mobile developer we've to give importance to use memory properly. But sometimes using it usually backfires by creating more objects or under utilizing the memory. What are your usual methods to optimize memory & decrease the run time of the application ?
1
6,412,715
06/20/2011 14:23:29
785,215
06/05/2011 23:16:39
67
8
Expanding [optionals] in text
I am trying to expand sentences that incorporate `[ ]` to indicate optionals and enumerate all possibilities. So for example: `"Hey [there] you [hood]."` should return four sentences: Hey there you hood. Hey there you. Hey you hood. Hey you. I am doing it using regex matching and recursion. Although I am using mutation, I am trying to maintain the function as stateless as possible. The code I have is: #!/usr/bin/perl use strict; use warnings; use utf8; use locale; use open (':encoding(utf8)'); sub expand_the_string { my ( $string ) = @_; my $result = q{}; if ( $string =~ m{(.*?) \[(.*?)\](.*)} ) { $result .= expand_the_string( $1 . q{ } . $2 . $3 ); $result .= expand_the_string( $1 . $3 ); } else { $result .= $string . "\n"; } return $result; } print expand_the_string("Hey [there] you [hood]."); I am currently getting the following output: Hey there you hood. Hey there you. Hey there you. Note, the reason for the q{ } is because I eliminate the space when I do the regexp matching. This is so that in the case where the contents of [ ] are ignored, I don't get two spaces. Also, I would like this to be scalable. What I mean by that is that eventually I will want to integrate `( )` to indicate grouping, and `|` to indicate the `or` operator in the sentences. The end goal would look like: `Input: "(His|Her) dog was [very|extremely] confused."` Output: His dog was very confused. His dog was extremely confused. His dog was confused. Her dog was very confused. Her dog was extremely confused. Her dog was confused. However, I would be happy just to understand why my current subproblem is not working as expected. However I include the bigger picture in case there is a better tool than regular expressions. I have searched both CPAN and SO under the phrases: Expanding text<br> expanding sentences<br> expanding conditionals<br> expanding optionals<br> expanding groupings<br> with no luck. Thanks.
regex
perl
text
expansion
null
null
open
Expanding [optionals] in text === I am trying to expand sentences that incorporate `[ ]` to indicate optionals and enumerate all possibilities. So for example: `"Hey [there] you [hood]."` should return four sentences: Hey there you hood. Hey there you. Hey you hood. Hey you. I am doing it using regex matching and recursion. Although I am using mutation, I am trying to maintain the function as stateless as possible. The code I have is: #!/usr/bin/perl use strict; use warnings; use utf8; use locale; use open (':encoding(utf8)'); sub expand_the_string { my ( $string ) = @_; my $result = q{}; if ( $string =~ m{(.*?) \[(.*?)\](.*)} ) { $result .= expand_the_string( $1 . q{ } . $2 . $3 ); $result .= expand_the_string( $1 . $3 ); } else { $result .= $string . "\n"; } return $result; } print expand_the_string("Hey [there] you [hood]."); I am currently getting the following output: Hey there you hood. Hey there you. Hey there you. Note, the reason for the q{ } is because I eliminate the space when I do the regexp matching. This is so that in the case where the contents of [ ] are ignored, I don't get two spaces. Also, I would like this to be scalable. What I mean by that is that eventually I will want to integrate `( )` to indicate grouping, and `|` to indicate the `or` operator in the sentences. The end goal would look like: `Input: "(His|Her) dog was [very|extremely] confused."` Output: His dog was very confused. His dog was extremely confused. His dog was confused. Her dog was very confused. Her dog was extremely confused. Her dog was confused. However, I would be happy just to understand why my current subproblem is not working as expected. However I include the bigger picture in case there is a better tool than regular expressions. I have searched both CPAN and SO under the phrases: Expanding text<br> expanding sentences<br> expanding conditionals<br> expanding optionals<br> expanding groupings<br> with no luck. Thanks.
0
1,000,697
06/16/2009 10:32:04
35,128
11/06/2008 15:25:37
430
32
.NET EDIFACT/X12 Framework
We need to process some EDI messages for a client and i was wondering if any of you could recommend some components (not necessarily free) that could do the task. I'm interested in a framework that can parse EDI messages into .NET structures and some kind of implementation of transport protocols (SMTP, FTP, HTTP, AS2) etc.
.net
edi
x12
edifact
components
null
open
.NET EDIFACT/X12 Framework === We need to process some EDI messages for a client and i was wondering if any of you could recommend some components (not necessarily free) that could do the task. I'm interested in a framework that can parse EDI messages into .NET structures and some kind of implementation of transport protocols (SMTP, FTP, HTTP, AS2) etc.
0
11,411,237
07/10/2012 10:20:05
1,514,321
07/10/2012 09:23:21
1
0
Apache DefaultHttpClient in Android
Is it save for https request? Thank you for your answer! MO
android
https
null
null
null
07/10/2012 10:27:54
not a real question
Apache DefaultHttpClient in Android === Is it save for https request? Thank you for your answer! MO
1
854,967
05/12/2009 21:32:54
63,041
02/05/2009 20:23:53
47
3
Finding binary chunk in a file
I have a chunk of fairly random binary data. I want to find where that chunk exists in a file, how many times it occurs, and at what byte (or sector) offsets. Any ideas on how to do that? Thanks, Justin
linux
command-line
binary
null
null
null
open
Finding binary chunk in a file === I have a chunk of fairly random binary data. I want to find where that chunk exists in a file, how many times it occurs, and at what byte (or sector) offsets. Any ideas on how to do that? Thanks, Justin
0
10,093,053
04/10/2012 16:56:40
929,086
09/05/2011 14:46:28
13
3
Add Header in AJAX Request with jQuery
I want add custom header to POST request on AJAX with jQuery. i try this : $.ajax({ type:'POST', url:url, headers: { "My-Fierst-Header":"first value", "My-Second-Header":"second value" } //beforeSend: function(xhr) { // xhr.setRequestHeader("My-Fierst-Header", "first value"); // xhr.setRequestHeader("My-Second-Header", "second value"); //} }).done(function(data) { alert(data); }); When i send this request and i watch with firebug i see this header : OPTIONS xxxx/yyyy HTTP/1.1 Host: 127.0.0.1:6666 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Connection: keep-alive Origin: null Access-Control-Request-Method: POST Access-Control-Request-Headers: my-fierst-header,my-second-header Pragma: no-cache Cache-Control: no-cache Why my 2 custom header go to "Access-Control-Request-Headers" : Access-Control-Request-Headers: my-fierst-header,my-second-header I want this more in my hedear's request : My-Fierst-Header: first value My-Second-Header: second value It's possible? thanks
jquery
ajax
post
http-headers
null
null
open
Add Header in AJAX Request with jQuery === I want add custom header to POST request on AJAX with jQuery. i try this : $.ajax({ type:'POST', url:url, headers: { "My-Fierst-Header":"first value", "My-Second-Header":"second value" } //beforeSend: function(xhr) { // xhr.setRequestHeader("My-Fierst-Header", "first value"); // xhr.setRequestHeader("My-Second-Header", "second value"); //} }).done(function(data) { alert(data); }); When i send this request and i watch with firebug i see this header : OPTIONS xxxx/yyyy HTTP/1.1 Host: 127.0.0.1:6666 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Connection: keep-alive Origin: null Access-Control-Request-Method: POST Access-Control-Request-Headers: my-fierst-header,my-second-header Pragma: no-cache Cache-Control: no-cache Why my 2 custom header go to "Access-Control-Request-Headers" : Access-Control-Request-Headers: my-fierst-header,my-second-header I want this more in my hedear's request : My-Fierst-Header: first value My-Second-Header: second value It's possible? thanks
0
4,677,747
01/13/2011 07:30:21
573,869
01/13/2011 07:30:21
1
0
sending sms through mobile connected with pc
I am trying to develop the application which, any mobile is connected with PC and needs to send SMS through the mobile one by one, software is used only to connect the mobile and type the massage. when send button is clicked the massage should send through mobile not through any modems. I have tried to search everywhere, but i could't find. Can anybody guides me how to proceed. Thanks in advance.
c#
.net
null
null
null
null
open
sending sms through mobile connected with pc === I am trying to develop the application which, any mobile is connected with PC and needs to send SMS through the mobile one by one, software is used only to connect the mobile and type the massage. when send button is clicked the massage should send through mobile not through any modems. I have tried to search everywhere, but i could't find. Can anybody guides me how to proceed. Thanks in advance.
0
8,502,766
12/14/2011 10:14:54
1,097,527
12/14/2011 10:02:00
1
0
c linked list delete function
Hello guys i have to write a program in C and i can't make a fucntion deleteByPrice - Function to delete all structures with price more than that i have to type in the console that's my strucutre typedef struct { char name[20]; char id[20]; float price; }Type; typedef struct Details { Type data; struct Details *next; }Node; and that is what i've code but dosen't work: Node *deleteByPrice(Node *start) { Node *cur =start; Node *next=start; float price; printf("Insert the price here : "); scanf("%f",&price); while(cur){ if (price < cur->data.price){ next=cur->next; free(cur); cur = next; start=cur; } else { next = cur->next->next; free(cur->next); cur->next = next; } } return cur; }
c
list
linked
null
null
12/14/2011 18:05:45
not a real question
c linked list delete function === Hello guys i have to write a program in C and i can't make a fucntion deleteByPrice - Function to delete all structures with price more than that i have to type in the console that's my strucutre typedef struct { char name[20]; char id[20]; float price; }Type; typedef struct Details { Type data; struct Details *next; }Node; and that is what i've code but dosen't work: Node *deleteByPrice(Node *start) { Node *cur =start; Node *next=start; float price; printf("Insert the price here : "); scanf("%f",&price); while(cur){ if (price < cur->data.price){ next=cur->next; free(cur); cur = next; start=cur; } else { next = cur->next->next; free(cur->next); cur->next = next; } } return cur; }
1
166,657
10/03/2008 12:50:51
11,436
09/16/2008 07:57:31
127
40
Do you have your own DNUT/NDT ("Do Not Use This/Never Do That") list?
I was reviewing this morning a piece of code written by a beginner, when I found these lines: If ... ElseIf ... ElseIf ... Endif I told him "Please, Do Not Use This". And the other guy sitting aside (more experimented) said: "Oh no DoN't Use This!". I think there are many reasons explaining this reaction: - a bad experience when we first discover the instructions ("Great, it's like a SELECT but it allows to compare more than one value") and were finally very disappointed trying to put together multiples overlapping elseifs that no one could ever never debugg properly ... - The `elseif` trick does not allows you to align your lines of code as you've been doing it for the last 175 years, where you can visually check and adjust the quantity of endifs to add at the end of your procedure. - But most of all "what is the interest of something that is already correctly done by the traditionnal IF/ELSE/ENDIF or SELECT CASE statements?" Another example of a DNUT/NDT item was this ["cascade update" thing][1] in SQL SERVER, which seemed to me at first glance a great trick ("Wohh! my keys are automatically updated anywhere in my database"), until I began to think that a really effective key should never be updated, so I banned the use of this cascade update thing in my databases a few hundred years ago, and, until today, nobody complains about that! I am sure that each one of us has its own DNUT/NDT list, and I am sure there is plenty of time to spare by sharing this kind of knowledge! [1]: http://stackoverflow.com/questions/59297/whenwhy-to-use-cascading-in-sql-server
rules
null
null
null
null
03/26/2012 16:35:58
not constructive
Do you have your own DNUT/NDT ("Do Not Use This/Never Do That") list? === I was reviewing this morning a piece of code written by a beginner, when I found these lines: If ... ElseIf ... ElseIf ... Endif I told him "Please, Do Not Use This". And the other guy sitting aside (more experimented) said: "Oh no DoN't Use This!". I think there are many reasons explaining this reaction: - a bad experience when we first discover the instructions ("Great, it's like a SELECT but it allows to compare more than one value") and were finally very disappointed trying to put together multiples overlapping elseifs that no one could ever never debugg properly ... - The `elseif` trick does not allows you to align your lines of code as you've been doing it for the last 175 years, where you can visually check and adjust the quantity of endifs to add at the end of your procedure. - But most of all "what is the interest of something that is already correctly done by the traditionnal IF/ELSE/ENDIF or SELECT CASE statements?" Another example of a DNUT/NDT item was this ["cascade update" thing][1] in SQL SERVER, which seemed to me at first glance a great trick ("Wohh! my keys are automatically updated anywhere in my database"), until I began to think that a really effective key should never be updated, so I banned the use of this cascade update thing in my databases a few hundred years ago, and, until today, nobody complains about that! I am sure that each one of us has its own DNUT/NDT list, and I am sure there is plenty of time to spare by sharing this kind of knowledge! [1]: http://stackoverflow.com/questions/59297/whenwhy-to-use-cascading-in-sql-server
4
6,808,344
07/24/2011 17:13:34
837,264
07/10/2011 02:41:47
1
0
Generics and Collections
I am working in an organisation curently for the last 15 months. My work is support work as it is a service based company. I am not getting any learning here. I always wanted to work in development. I am lerning java now a days my self. and wil start giving interviews for other companies. Mainly product based companies. Please help and suggest what level of preparation is needed. And also I want to learn "Generics and Collections". From where should I study. And one last question. Is there any use of giving Java Certifications at this level in professionsal life or it is only useful during college time?
java
null
null
null
null
07/24/2011 17:18:57
not a real question
Generics and Collections === I am working in an organisation curently for the last 15 months. My work is support work as it is a service based company. I am not getting any learning here. I always wanted to work in development. I am lerning java now a days my self. and wil start giving interviews for other companies. Mainly product based companies. Please help and suggest what level of preparation is needed. And also I want to learn "Generics and Collections". From where should I study. And one last question. Is there any use of giving Java Certifications at this level in professionsal life or it is only useful during college time?
1
7,486,221
09/20/2011 13:46:42
954,895
09/20/2011 13:46:42
1
0
Does WP7 or Mango support Vcard (vcf files) with photo?
I am trying to import a vcf file with a photo (encoding base64). When I click on the vcf file through the web browser or the email, I get a dialog with the contacts details but the photo is not added. I tried to create other vcf files using some online tools like this one [http://mobile.dangooli.com/vCard/] but I get the same result, no photo is added. Is there any way to add a contact with a photo by just clicking on a file? Does wp7 or mango support another protocol for importing contacts with photos? Or are the photos diregarded deliberately? Thank you
windows-phone-7
windows-phone-7.1
null
null
null
09/27/2011 19:36:24
off topic
Does WP7 or Mango support Vcard (vcf files) with photo? === I am trying to import a vcf file with a photo (encoding base64). When I click on the vcf file through the web browser or the email, I get a dialog with the contacts details but the photo is not added. I tried to create other vcf files using some online tools like this one [http://mobile.dangooli.com/vCard/] but I get the same result, no photo is added. Is there any way to add a contact with a photo by just clicking on a file? Does wp7 or mango support another protocol for importing contacts with photos? Or are the photos diregarded deliberately? Thank you
2
7,838,066
10/20/2011 15:11:11
1,005,476
10/20/2011 15:04:46
1
0
My App Was Rejected By Apple
I've been developing an app for over a year and upon submission last week it was rejected. Before it was rejected, Apple came to me with three question. 1. Is your app indispensable; 2. What other platforms is it on?; 3. How much do you charge for your service outside of Apple/Can we have 30%. I answered no to the first question, applying to Android next week for the second, and no to the third. I'm assuming they came back with a rejection because of the third answer. My app has two sides-one for customers and one for businesses. The idea is that the businesses purchase the service for an annual fee from the website, and then the consumer downloads the app for free from the app store. If anyone knows forsure that this is an issue, and I need to rethink literally everything, your help would be greatly appreciated. Thank you.
application
null
null
null
null
10/20/2011 17:30:01
off topic
My App Was Rejected By Apple === I've been developing an app for over a year and upon submission last week it was rejected. Before it was rejected, Apple came to me with three question. 1. Is your app indispensable; 2. What other platforms is it on?; 3. How much do you charge for your service outside of Apple/Can we have 30%. I answered no to the first question, applying to Android next week for the second, and no to the third. I'm assuming they came back with a rejection because of the third answer. My app has two sides-one for customers and one for businesses. The idea is that the businesses purchase the service for an annual fee from the website, and then the consumer downloads the app for free from the app store. If anyone knows forsure that this is an issue, and I need to rethink literally everything, your help would be greatly appreciated. Thank you.
2
8,205,926
11/21/2011 00:13:36
881,224
08/05/2011 19:45:17
200
10
Make this a one-liner: `return sum[dict.get(char) for char in word]`
Obviously, the title has code that can't be interpreted. An uninformative SyntaxError: invalid syntax stderr message didn't tell me much, so I threw it in line by line, using: [dict.get(['val','val','foo'])] and have since discovered that `dict.get()` and iterables don't play well together. If you haven't already guessed, I'm in the exciting field of building toy programs for learning and amusement. Here's my code: def wordpoints(word): points = 0 for char in word: points += dict.get(char) return points Here's what I want: def wordpoints(word): return sum[dict.get(char) for char in word] For clarification, `dict` is named `tile_p` in my code, and stands for tile points. There is another `def` that looks up the scrabble player's dictionary for `True|False` results in a MySQL table, and passes it to this function if it `cursor.fectchone()` has something in it.
python
oneliner
null
null
null
null
open
Make this a one-liner: `return sum[dict.get(char) for char in word]` === Obviously, the title has code that can't be interpreted. An uninformative SyntaxError: invalid syntax stderr message didn't tell me much, so I threw it in line by line, using: [dict.get(['val','val','foo'])] and have since discovered that `dict.get()` and iterables don't play well together. If you haven't already guessed, I'm in the exciting field of building toy programs for learning and amusement. Here's my code: def wordpoints(word): points = 0 for char in word: points += dict.get(char) return points Here's what I want: def wordpoints(word): return sum[dict.get(char) for char in word] For clarification, `dict` is named `tile_p` in my code, and stands for tile points. There is another `def` that looks up the scrabble player's dictionary for `True|False` results in a MySQL table, and passes it to this function if it `cursor.fectchone()` has something in it.
0
8,589,137
12/21/2011 11:33:25
1,025,458
11/02/2011 10:54:24
411
21
Android: setDensity / setTargetDensity ignored when bitmap is drawn
I have a `Bitmap` and I'm trying to use it as the tiled background for my window. The problem is the scale is wrong. I want to make the bitmap draw twice as large on screen. I've tried to use both `Bitmap.setDensity` and `BitmapDrawable.setTargetDensity` and both have no effect. My code: Bitmap bitmap = fromSomewhere(); int original_density = bitmap.getDensity(); // this returns 240 // bitmap.setDensity(..); // has no effect, tried with 120,160,480 BitmapDrawable drawable = new BitmapDrawable(bitmap); // drawable.setTargetDensity(..); // has no effect, tried with 120,160,480 drawable.setTileModeXY(TileMode.REPEAT, TileMode.REPEAT); getWindow().setBackgroundDrawable(drawable); Notes: - My target SDK is 8, I've also tried specifically setting `<supports-screens android:anyDensity="true"/>` in the manifest - The `Bitmap` object is given, I have no control over how it's generated, I can only make manipulations to it. - My test device is Samsung Galaxy 2 (high density), though I've also tested on the emulator on medium density and still no effects were seen. - I didn't change any other densities, specifically the one of getWindow() Isn't density the simplest way to achieve a x2 scaling? Why isn't is working?\ Thanks
android
bitmap
density
null
null
null
open
Android: setDensity / setTargetDensity ignored when bitmap is drawn === I have a `Bitmap` and I'm trying to use it as the tiled background for my window. The problem is the scale is wrong. I want to make the bitmap draw twice as large on screen. I've tried to use both `Bitmap.setDensity` and `BitmapDrawable.setTargetDensity` and both have no effect. My code: Bitmap bitmap = fromSomewhere(); int original_density = bitmap.getDensity(); // this returns 240 // bitmap.setDensity(..); // has no effect, tried with 120,160,480 BitmapDrawable drawable = new BitmapDrawable(bitmap); // drawable.setTargetDensity(..); // has no effect, tried with 120,160,480 drawable.setTileModeXY(TileMode.REPEAT, TileMode.REPEAT); getWindow().setBackgroundDrawable(drawable); Notes: - My target SDK is 8, I've also tried specifically setting `<supports-screens android:anyDensity="true"/>` in the manifest - The `Bitmap` object is given, I have no control over how it's generated, I can only make manipulations to it. - My test device is Samsung Galaxy 2 (high density), though I've also tested on the emulator on medium density and still no effects were seen. - I didn't change any other densities, specifically the one of getWindow() Isn't density the simplest way to achieve a x2 scaling? Why isn't is working?\ Thanks
0
9,219,303
02/09/2012 21:47:12
1,200,728
02/09/2012 21:41:54
1
0
Can I send app invites/requests to specific users who do not have the app installed?
Can I send app invites or requests to specific users who do not have the app installed?
facebook
request
null
null
null
02/11/2012 15:27:59
off topic
Can I send app invites/requests to specific users who do not have the app installed? === Can I send app invites or requests to specific users who do not have the app installed?
2
7,326,029
09/06/2011 20:54:17
756,566
05/17/2011 00:45:58
100
3
Logging into Reddit Programmatically with Python, clicking the down arrow
Is it possible to log into Reddit using a programmatic browser (I currently use Spynner) and click a down arrow? Thanks!
python
browser
reddit
null
null
09/06/2011 21:09:35
not constructive
Logging into Reddit Programmatically with Python, clicking the down arrow === Is it possible to log into Reddit using a programmatic browser (I currently use Spynner) and click a down arrow? Thanks!
4
7,547,706
09/25/2011 18:39:03
475,200
10/14/2010 00:33:43
10
0
Bypass blocked ports behind proxy
I know this might sound a bit noobish, but I couldn't find a solution to it and decided to post here. The internet connection at my residence requires me to set up a proxy, i.e. have intra.res123.com as proxy in my windows settings. The web works fine, although some sites are blocked. No problem with that, I know the way around. The problem is that most ports are blocked, so I can't update my mail, nor my Antivirus, nor ... I have a machine at work, running Ubuntu. The network settings at work are strict too, with only the ssh port open, and one other. But I can easily ssh from home to work. Now I want to forward all my connections at home to my work PC. I set up the PPTP VPN server on my ubuntu machine at work, but that didn't work since it's behind a firewall and it's ports are blocked. So first, is there a way to setup a VPN over an SSH tunnel (over a proxy)?! I also did set up dynamic port forwarding and had it as local SOCKS proxy. Now that worked fine with Firefox, but other programs which don't have their own proxy settings won't work. I know there are programs which modify the system calls and add the SOCKS proxy to the connect() procedure of the program (like Sockscap). But that is tedious and I would have to restart my programs every time I bring my laptop home from work. I'm not sure it would work for my AV either. So second, is there a way (or a program) to run two proxies at the same time on a windows machine? And lastly, is it possible to forward all (or a bunch of) local ports dynamically to the ssh server?
windows
proxy
ssh
vpn
socks
09/26/2011 09:43:01
off topic
Bypass blocked ports behind proxy === I know this might sound a bit noobish, but I couldn't find a solution to it and decided to post here. The internet connection at my residence requires me to set up a proxy, i.e. have intra.res123.com as proxy in my windows settings. The web works fine, although some sites are blocked. No problem with that, I know the way around. The problem is that most ports are blocked, so I can't update my mail, nor my Antivirus, nor ... I have a machine at work, running Ubuntu. The network settings at work are strict too, with only the ssh port open, and one other. But I can easily ssh from home to work. Now I want to forward all my connections at home to my work PC. I set up the PPTP VPN server on my ubuntu machine at work, but that didn't work since it's behind a firewall and it's ports are blocked. So first, is there a way to setup a VPN over an SSH tunnel (over a proxy)?! I also did set up dynamic port forwarding and had it as local SOCKS proxy. Now that worked fine with Firefox, but other programs which don't have their own proxy settings won't work. I know there are programs which modify the system calls and add the SOCKS proxy to the connect() procedure of the program (like Sockscap). But that is tedious and I would have to restart my programs every time I bring my laptop home from work. I'm not sure it would work for my AV either. So second, is there a way (or a program) to run two proxies at the same time on a windows machine? And lastly, is it possible to forward all (or a bunch of) local ports dynamically to the ssh server?
2
8,668,700
12/29/2011 13:53:37
988,985
10/11/2011 07:05:50
26
2
how to setup smtp on windows server 2008 for php with apache
i have deployed my php application with apache 2.2 on remote server which is windows server 2008 i have disabled the iis how can i setup SMTP for my php application Thanks
php
windows
apache
smtp
null
12/30/2011 12:57:04
off topic
how to setup smtp on windows server 2008 for php with apache === i have deployed my php application with apache 2.2 on remote server which is windows server 2008 i have disabled the iis how can i setup SMTP for my php application Thanks
2
5,610,222
04/10/2011 06:50:13
478,573
10/17/2010 14:54:01
693
23
How to set certain element values to null in JavaSctipt
I have some items I am storing in an element that get added at various times like this: document.getElementById('rout_markers').value = str; I am not too good with JavaScript, but as I understand it, the values get stored as an array, correct? What I need to do is to be able to remove all the elements or to be able to remove the last element that was added. How can I do that? Thanks!
javascript
null
null
null
null
null
open
How to set certain element values to null in JavaSctipt === I have some items I am storing in an element that get added at various times like this: document.getElementById('rout_markers').value = str; I am not too good with JavaScript, but as I understand it, the values get stored as an array, correct? What I need to do is to be able to remove all the elements or to be able to remove the last element that was added. How can I do that? Thanks!
0
3,794,950
09/25/2010 18:17:17
458,295
09/25/2010 18:10:27
1
0
Fake location using GPS in android
Hi am developing an app that will set the coordinates(latitude and longitude). And it has to show my location as i am at that coordinates..It is similar to location spoofer.. http://www.androidzoom.com/android_applications/tools/location-spoofer_gkmc.html But I am failing to do that.. here is my code..Please any one help me. public class Mock extends MapActivity { private LocationManager lm; private LocationListener locationListener; private MapView mapView; String mocLocationProvider; private MapController mc; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //---use the LocationManager class to obtain GPS locations--- lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); locationListener = new MyLocationListener(); mocLocationProvider=LocationManager.GPS_PROVIDER; lm.addTestProvider(mocLocationProvider, false, false,false, false, true, true, true, 0, 5); lm.setTestProviderEnabled(mocLocationProvider,true); lm.requestLocationUpdates(mocLocationProvider,0,0,locationListener); mapView = (MapView) findViewById(R.id.mapview1); mc = mapView.getController(); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } private class MyLocationListener implements LocationListener { @Override public void onLocationChanged(Location loc) { loc = new Location(mocLocationProvider); Double latitude = 1.352566007; Double longitude = 103.78921587; //Double altitude = Double.valueOf(parts[2]); loc.setLatitude(latitude); loc.setLongitude(longitude); loc.setTime(System.currentTimeMillis()); lm.setTestProviderLocation(mocLocationProvider, loc); mc.setZoom(16); mapView.invalidate(); } @Override public void onProviderDisabled(String provider) { // TODO Auto-generated method stub } @Override public void onProviderEnabled(String provider) { // TODO Auto-generated method stub } @Override public void onStatusChanged(String provider, int status, Bundle extras) { // TODO Auto-generated method stub } } }
android
null
null
null
null
null
open
Fake location using GPS in android === Hi am developing an app that will set the coordinates(latitude and longitude). And it has to show my location as i am at that coordinates..It is similar to location spoofer.. http://www.androidzoom.com/android_applications/tools/location-spoofer_gkmc.html But I am failing to do that.. here is my code..Please any one help me. public class Mock extends MapActivity { private LocationManager lm; private LocationListener locationListener; private MapView mapView; String mocLocationProvider; private MapController mc; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); //---use the LocationManager class to obtain GPS locations--- lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); locationListener = new MyLocationListener(); mocLocationProvider=LocationManager.GPS_PROVIDER; lm.addTestProvider(mocLocationProvider, false, false,false, false, true, true, true, 0, 5); lm.setTestProviderEnabled(mocLocationProvider,true); lm.requestLocationUpdates(mocLocationProvider,0,0,locationListener); mapView = (MapView) findViewById(R.id.mapview1); mc = mapView.getController(); } @Override protected boolean isRouteDisplayed() { // TODO Auto-generated method stub return false; } private class MyLocationListener implements LocationListener { @Override public void onLocationChanged(Location loc) { loc = new Location(mocLocationProvider); Double latitude = 1.352566007; Double longitude = 103.78921587; //Double altitude = Double.valueOf(parts[2]); loc.setLatitude(latitude); loc.setLongitude(longitude); loc.setTime(System.currentTimeMillis()); lm.setTestProviderLocation(mocLocationProvider, loc); mc.setZoom(16); mapView.invalidate(); } @Override public void onProviderDisabled(String provider) { // TODO Auto-generated method stub } @Override public void onProviderEnabled(String provider) { // TODO Auto-generated method stub } @Override public void onStatusChanged(String provider, int status, Bundle extras) { // TODO Auto-generated method stub } } }
0
7,723,056
10/11/2011 08:08:45
981,660
10/06/2011 06:21:50
6
0
Issue in Ajax tabs control
When i access that form in fire fox version 7.0 then these tabs does not show and that form is working perfect in all other browsers. please solve that issue. Thanks in advance. Below is my code. `<form id="frmNewsManagement" runat="server" enctype="multipart/form-data"> <cc1:ToolkitScriptManager ID="ScriptManager1" runat="server"> </cc1:ToolkitScriptManager> <asp:UpdatePanel ID="UDPMain" runat="server"> <ContentTemplate> <div style="margin-left: 10px; margin-right: 10px;"> <cc1:TabContainer ID="TabContainer1" runat="server"> <cc1:TabPanel ID="tbpnlNewsManagement" runat="server"> <HeaderTemplate> News Management </HeaderTemplate> <ContentTemplate> <asp:UpdatePanel ID="UDPfirst" ChildrenAsTriggers="true" runat="server" UpdateMode="Conditional"> <ContentTemplate> <table class="FormTable"> <tr> <td align="left" style="width: 50px"> <asp:Label ID="lblSelect" runat="server" Text="Select" SkinID="Label"></asp:Label> </td> <td> <asp:DropDownList ID="cmbStatuses" runat="server" SkinID="DropDownList" OnSelectedIndexChanged="ddlSelect_SelectedIndexChanged" AutoPostBack="true"> <asp:ListItem Text="Show Active" Value="0"></asp:ListItem> <asp:ListItem Text="Show Deleted" Value="1"></asp:ListItem> </asp:DropDownList> </td> </tr> </table> <asp:GridView ID="grdViewRecord" OnDataBound="grdViewRecord_DataBound" SkinID="gvwSilver" AutoGenerateColumns="False" OnRowCommand="grdViewRecord_RowCommand" runat="server" DataKeyNames="NEWSID" OnSorting="grdViewRecord_Sorting"> <Columns> <asp:BoundField HeaderText="id" DataField="NEWSID" Visible="false" /> <asp:BoundField HeaderText="News Title" ItemStyle-Wrap="true" DataField="NEWSTITLE" SortExpression="NEWSTITLE"> <HeaderStyle HorizontalAlign="Left" Font-Bold="True" /> <ItemStyle Width="200px" /> </asp:BoundField> <asp:BoundField HeaderText="Date" DataField="NEWSDATE" ItemStyle-Wrap="true" SortExpression="NEWSDATE"> <HeaderStyle HorizontalAlign="Left" Font-Bold="True" /> <ItemStyle Width="100px" /> </asp:BoundField> <asp:BoundField HeaderText="Department" ItemStyle-Wrap="true" DataField="DEPARTMENTNAME" SortExpression="DEPARTMENTNAME"> <HeaderStyle HorizontalAlign="Left" Font-Bold="True" /> <ItemStyle Width="150px" /> </asp:BoundField> <asp:BoundField HeaderText="Status" ItemStyle-Wrap="true" DataField="STATUSSHORTDESC" SortExpression="STATUSSHORTDESC"> <HeaderStyle HorizontalAlign="Left" Font-Bold="True" /> <ItemStyle Width="100px" /> </asp:BoundField> <asp:TemplateField HeaderText="Actions" HeaderStyle-HorizontalAlign="center" Visible="false"> <ItemTemplate> <center> <asp:ImageButton ID="btnEdit" ImageUrl="~/images/Icon/ico_edit.png" CommandArgument='<%# Eval("NEWSID") %>' runat="server" CommandName="EditNews" Text="Edit" ToolTip="Edit News" /> &nbsp; <asp:ImageButton ID="btnDelete" ImageUrl="~/images/Icon/ico_delete.png" CommandArgument='<%# Eval("NEWSID") %>' runat="server" CommandName="DeleteNews" Text="Delete" ToolTip="Delete News" /> </center> </ItemTemplate> <ItemStyle Width="25px" /> </asp:TemplateField> <asp:TemplateField HeaderText="Actions" HeaderStyle-HorizontalAlign="center" ItemStyle-Width="20px" Visible="false"> <ItemTemplate> <center> <asp:ImageButton ID="btnRestore" ImageUrl="~/images/Icon/restore.png" CommandArgument='<%# Eval("NEWSID") %>' runat="server" CommandName="RestoreNews" Text="Restore" ToolTip="Restore News" /> </center> </ItemTemplate> <ItemStyle Width="25px" /> </asp:TemplateField> </Columns> <PagerTemplate> <table border="0" width="100%"> <tr> <td style="border: 0"> <asp:Label ID="lblTotalRecord" runat="server"></asp:Label> </td> <td style="float: right; border: 0"> <asp:TextBox ID="txtSearch" CssClass="totalPagesAlign" runat="server"></asp:TextBox> <asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/Images/search.png" OnCommand="btnSearch_Command" CommandArgument="Search" ToolTip="Search by news title" CommandName="Search"></asp:ImageButton> <asp:ImageButton ID="imgPageFirst" runat="server" ImageUrl="~/Images/Icon/first.gif" CommandArgument="First" ToolTip="First" CommandName="Page" OnCommand="imgPageFirst_Command"> </asp:ImageButton> <asp:ImageButton ID="imgPagePrevious" runat="server" ImageUrl="~/Images/Icon/Prev.gif" CommandArgument="Prev" ToolTip="Previous" CommandName="Page" OnCommand="imgPagePrevious_Command"> </asp:ImageButton> <span class="totalPagesAlign"> <asp:Label ID="lblRecord" runat="server"></asp:Label> <asp:Label ID="lblOf" runat="server" Text="of"></asp:Label> <asp:Label ID="lblTotalPage" runat="server"></asp:Label> </span> <asp:ImageButton ID="imgPageNext" runat="server" ImageUrl="~/Images/Icon/next.gif" CommandArgument="Next" ToolTip="Next" CommandName="Page" OnCommand="imgPageNext_Command"></asp:ImageButton> <asp:ImageButton ID="imgPageLast" runat="server" ImageUrl="~/Images/Icon/Last.gif" CommandArgument="Last" ToolTip="Last" CommandName="Page" OnCommand="imgPageLast_Command"></asp:ImageButton> <asp:ImageButton ID="btnPageSize" ToolTip="Show five records" runat="server" ImageUrl="~/Images/Icon/5.gif" OnCommand="btnPageSize_Command"> </asp:ImageButton> <asp:ImageButton ID="btnPageSize2" runat="server" ToolTip="Show ten records" ImageUrl="~/Images/Icon/10.gif" OnCommand="btnPageSize2_Command"></asp:ImageButton> <asp:ImageButton ID="btnPageSize3" runat="server" ToolTip="Show twenty records" ImageUrl="~/Images/Icon/20.gif" OnCommand="btnPageSize3_Command"></asp:ImageButton> <asp:ImageButton ID="btnPageSize4" runat="server" ToolTip="Show fifty records" ImageUrl="~/Images/Icon/50.gif" OnCommand="btnPageSize4_Command"></asp:ImageButton> </td> </tr> </table> </PagerTemplate> </asp:GridView> <asp:Label ID="lblPopupTargetID" runat="server" Style="display: none;"></asp:Label> <cc1:ModalPopupExtender ID="btnDelete_ModalPopupExtender" runat="server" PopupControlID="pnlDelete" TargetControlID="lblPopupTargetID" BackgroundCssClass="ModalPopupBG" DynamicServicePath="" Enabled="True" CancelControlID="btnDeleteCancel"> </cc1:ModalPopupExtender> <asp:Panel ID="pnlDelete" runat="server" Style="display: none;"> <div class="popup_Container"> <div class="popup_Titlebar" id="PopupHeader"> <div class="TitlebarLeft"> Delete </div> <div class="TitlebarRight" onclick="btnDelete_ModalPopupExtender.Hide()"> </div> </div> <div class="popup_Body"> Are you sure, you want to Delete the record? </div> <div> <center> <asp:Button ID="btnDeleteOK" OnClick="btnDeleteOK_Click" runat="server" SkinID="Button" Text="Ok" /> &nbsp; <asp:Button ID="btnDeleteCancel" runat="server" SkinID="Button" Text="Cancel" /> </center> <br /> </div> </div> </asp:Panel> <asp:Label ID="lblRestorePopupId" runat="server" Style="display: none;"></asp:Label> <cc1:ModalPopupExtender ID="mdpopupRestore" runat="server" PopupControlID="pnlRestore" TargetControlID="lblRestorePopupId" BackgroundCssClass="ModalPopupBG" DynamicServicePath="" Enabled="True" CancelControlID="btnRestoreCancel"> </cc1:ModalPopupExtender> <asp:Panel ID="pnlRestore" runat="server" Style="display: none;"> <div class="popup_Container"> <div class="popup_Titlebar" id="Div1"> <div class="TitlebarLeft"> Restore </div> <div class="TitlebarRight" onclick="btnDelete_ModalPopupExtender.Hide()"> </div> </div> <div class="popup_Body"> Are you sure, you want to Restore the record? </div> <div> <center> <asp:Button ID="btnRestoreOk" OnClick="btnRestoreOK_Click" runat="server" SkinID="Button" Text="Ok" /> &nbsp; <asp:Button ID="btnRestoreCancel" runat="server" SkinID="Button" Text="Cancel" /> </center> <br /> </div> </div> </asp:Panel> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="cmbStatuses" /> <asp:AsyncPostBackTrigger ControlID="grdViewRecord" EventName="RowCommand" /> <asp:AsyncPostBackTrigger ControlID="btnDeleteOK" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="btnDeleteCancel" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="btnRestoreOK" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="btnRestoreCancel" EventName="Click" /> <asp:PostBackTrigger ControlID="btnReport" /> </Triggers> </asp:UpdatePanel> <hr /> <asp:Button ID="btnAdd" SkinID="button" runat="server" Text="Add New" OnClick="btnAdd_Click" /> <asp:Button ID="btnReport" runat="server" Text="Report" SkinID="ReportButton" OnClick="btnReport_Click"> </asp:Button> </ContentTemplate> </cc1:TabPanel> </cc1:TabContainer> </div> </ContentTemplate> </asp:UpdatePanel> </form>` When i access that form in fire fox version 7.0 then these tabs does not show and that form is working perfect in all other browsers. please solve that issue.
ajax
ajaxcontroltoolkit
null
null
null
10/11/2011 11:31:33
not a real question
Issue in Ajax tabs control === When i access that form in fire fox version 7.0 then these tabs does not show and that form is working perfect in all other browsers. please solve that issue. Thanks in advance. Below is my code. `<form id="frmNewsManagement" runat="server" enctype="multipart/form-data"> <cc1:ToolkitScriptManager ID="ScriptManager1" runat="server"> </cc1:ToolkitScriptManager> <asp:UpdatePanel ID="UDPMain" runat="server"> <ContentTemplate> <div style="margin-left: 10px; margin-right: 10px;"> <cc1:TabContainer ID="TabContainer1" runat="server"> <cc1:TabPanel ID="tbpnlNewsManagement" runat="server"> <HeaderTemplate> News Management </HeaderTemplate> <ContentTemplate> <asp:UpdatePanel ID="UDPfirst" ChildrenAsTriggers="true" runat="server" UpdateMode="Conditional"> <ContentTemplate> <table class="FormTable"> <tr> <td align="left" style="width: 50px"> <asp:Label ID="lblSelect" runat="server" Text="Select" SkinID="Label"></asp:Label> </td> <td> <asp:DropDownList ID="cmbStatuses" runat="server" SkinID="DropDownList" OnSelectedIndexChanged="ddlSelect_SelectedIndexChanged" AutoPostBack="true"> <asp:ListItem Text="Show Active" Value="0"></asp:ListItem> <asp:ListItem Text="Show Deleted" Value="1"></asp:ListItem> </asp:DropDownList> </td> </tr> </table> <asp:GridView ID="grdViewRecord" OnDataBound="grdViewRecord_DataBound" SkinID="gvwSilver" AutoGenerateColumns="False" OnRowCommand="grdViewRecord_RowCommand" runat="server" DataKeyNames="NEWSID" OnSorting="grdViewRecord_Sorting"> <Columns> <asp:BoundField HeaderText="id" DataField="NEWSID" Visible="false" /> <asp:BoundField HeaderText="News Title" ItemStyle-Wrap="true" DataField="NEWSTITLE" SortExpression="NEWSTITLE"> <HeaderStyle HorizontalAlign="Left" Font-Bold="True" /> <ItemStyle Width="200px" /> </asp:BoundField> <asp:BoundField HeaderText="Date" DataField="NEWSDATE" ItemStyle-Wrap="true" SortExpression="NEWSDATE"> <HeaderStyle HorizontalAlign="Left" Font-Bold="True" /> <ItemStyle Width="100px" /> </asp:BoundField> <asp:BoundField HeaderText="Department" ItemStyle-Wrap="true" DataField="DEPARTMENTNAME" SortExpression="DEPARTMENTNAME"> <HeaderStyle HorizontalAlign="Left" Font-Bold="True" /> <ItemStyle Width="150px" /> </asp:BoundField> <asp:BoundField HeaderText="Status" ItemStyle-Wrap="true" DataField="STATUSSHORTDESC" SortExpression="STATUSSHORTDESC"> <HeaderStyle HorizontalAlign="Left" Font-Bold="True" /> <ItemStyle Width="100px" /> </asp:BoundField> <asp:TemplateField HeaderText="Actions" HeaderStyle-HorizontalAlign="center" Visible="false"> <ItemTemplate> <center> <asp:ImageButton ID="btnEdit" ImageUrl="~/images/Icon/ico_edit.png" CommandArgument='<%# Eval("NEWSID") %>' runat="server" CommandName="EditNews" Text="Edit" ToolTip="Edit News" /> &nbsp; <asp:ImageButton ID="btnDelete" ImageUrl="~/images/Icon/ico_delete.png" CommandArgument='<%# Eval("NEWSID") %>' runat="server" CommandName="DeleteNews" Text="Delete" ToolTip="Delete News" /> </center> </ItemTemplate> <ItemStyle Width="25px" /> </asp:TemplateField> <asp:TemplateField HeaderText="Actions" HeaderStyle-HorizontalAlign="center" ItemStyle-Width="20px" Visible="false"> <ItemTemplate> <center> <asp:ImageButton ID="btnRestore" ImageUrl="~/images/Icon/restore.png" CommandArgument='<%# Eval("NEWSID") %>' runat="server" CommandName="RestoreNews" Text="Restore" ToolTip="Restore News" /> </center> </ItemTemplate> <ItemStyle Width="25px" /> </asp:TemplateField> </Columns> <PagerTemplate> <table border="0" width="100%"> <tr> <td style="border: 0"> <asp:Label ID="lblTotalRecord" runat="server"></asp:Label> </td> <td style="float: right; border: 0"> <asp:TextBox ID="txtSearch" CssClass="totalPagesAlign" runat="server"></asp:TextBox> <asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/Images/search.png" OnCommand="btnSearch_Command" CommandArgument="Search" ToolTip="Search by news title" CommandName="Search"></asp:ImageButton> <asp:ImageButton ID="imgPageFirst" runat="server" ImageUrl="~/Images/Icon/first.gif" CommandArgument="First" ToolTip="First" CommandName="Page" OnCommand="imgPageFirst_Command"> </asp:ImageButton> <asp:ImageButton ID="imgPagePrevious" runat="server" ImageUrl="~/Images/Icon/Prev.gif" CommandArgument="Prev" ToolTip="Previous" CommandName="Page" OnCommand="imgPagePrevious_Command"> </asp:ImageButton> <span class="totalPagesAlign"> <asp:Label ID="lblRecord" runat="server"></asp:Label> <asp:Label ID="lblOf" runat="server" Text="of"></asp:Label> <asp:Label ID="lblTotalPage" runat="server"></asp:Label> </span> <asp:ImageButton ID="imgPageNext" runat="server" ImageUrl="~/Images/Icon/next.gif" CommandArgument="Next" ToolTip="Next" CommandName="Page" OnCommand="imgPageNext_Command"></asp:ImageButton> <asp:ImageButton ID="imgPageLast" runat="server" ImageUrl="~/Images/Icon/Last.gif" CommandArgument="Last" ToolTip="Last" CommandName="Page" OnCommand="imgPageLast_Command"></asp:ImageButton> <asp:ImageButton ID="btnPageSize" ToolTip="Show five records" runat="server" ImageUrl="~/Images/Icon/5.gif" OnCommand="btnPageSize_Command"> </asp:ImageButton> <asp:ImageButton ID="btnPageSize2" runat="server" ToolTip="Show ten records" ImageUrl="~/Images/Icon/10.gif" OnCommand="btnPageSize2_Command"></asp:ImageButton> <asp:ImageButton ID="btnPageSize3" runat="server" ToolTip="Show twenty records" ImageUrl="~/Images/Icon/20.gif" OnCommand="btnPageSize3_Command"></asp:ImageButton> <asp:ImageButton ID="btnPageSize4" runat="server" ToolTip="Show fifty records" ImageUrl="~/Images/Icon/50.gif" OnCommand="btnPageSize4_Command"></asp:ImageButton> </td> </tr> </table> </PagerTemplate> </asp:GridView> <asp:Label ID="lblPopupTargetID" runat="server" Style="display: none;"></asp:Label> <cc1:ModalPopupExtender ID="btnDelete_ModalPopupExtender" runat="server" PopupControlID="pnlDelete" TargetControlID="lblPopupTargetID" BackgroundCssClass="ModalPopupBG" DynamicServicePath="" Enabled="True" CancelControlID="btnDeleteCancel"> </cc1:ModalPopupExtender> <asp:Panel ID="pnlDelete" runat="server" Style="display: none;"> <div class="popup_Container"> <div class="popup_Titlebar" id="PopupHeader"> <div class="TitlebarLeft"> Delete </div> <div class="TitlebarRight" onclick="btnDelete_ModalPopupExtender.Hide()"> </div> </div> <div class="popup_Body"> Are you sure, you want to Delete the record? </div> <div> <center> <asp:Button ID="btnDeleteOK" OnClick="btnDeleteOK_Click" runat="server" SkinID="Button" Text="Ok" /> &nbsp; <asp:Button ID="btnDeleteCancel" runat="server" SkinID="Button" Text="Cancel" /> </center> <br /> </div> </div> </asp:Panel> <asp:Label ID="lblRestorePopupId" runat="server" Style="display: none;"></asp:Label> <cc1:ModalPopupExtender ID="mdpopupRestore" runat="server" PopupControlID="pnlRestore" TargetControlID="lblRestorePopupId" BackgroundCssClass="ModalPopupBG" DynamicServicePath="" Enabled="True" CancelControlID="btnRestoreCancel"> </cc1:ModalPopupExtender> <asp:Panel ID="pnlRestore" runat="server" Style="display: none;"> <div class="popup_Container"> <div class="popup_Titlebar" id="Div1"> <div class="TitlebarLeft"> Restore </div> <div class="TitlebarRight" onclick="btnDelete_ModalPopupExtender.Hide()"> </div> </div> <div class="popup_Body"> Are you sure, you want to Restore the record? </div> <div> <center> <asp:Button ID="btnRestoreOk" OnClick="btnRestoreOK_Click" runat="server" SkinID="Button" Text="Ok" /> &nbsp; <asp:Button ID="btnRestoreCancel" runat="server" SkinID="Button" Text="Cancel" /> </center> <br /> </div> </div> </asp:Panel> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="cmbStatuses" /> <asp:AsyncPostBackTrigger ControlID="grdViewRecord" EventName="RowCommand" /> <asp:AsyncPostBackTrigger ControlID="btnDeleteOK" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="btnDeleteCancel" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="btnRestoreOK" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="btnRestoreCancel" EventName="Click" /> <asp:PostBackTrigger ControlID="btnReport" /> </Triggers> </asp:UpdatePanel> <hr /> <asp:Button ID="btnAdd" SkinID="button" runat="server" Text="Add New" OnClick="btnAdd_Click" /> <asp:Button ID="btnReport" runat="server" Text="Report" SkinID="ReportButton" OnClick="btnReport_Click"> </asp:Button> </ContentTemplate> </cc1:TabPanel> </cc1:TabContainer> </div> </ContentTemplate> </asp:UpdatePanel> </form>` When i access that form in fire fox version 7.0 then these tabs does not show and that form is working perfect in all other browsers. please solve that issue.
1
2,501,005
03/23/2010 15:11:39
100,516
05/03/2009 22:15:07
4,489
239
What is the correct way to handle object which is instance of class in apache.xerces?
*Preface:* I'm working on docx parser for java. docx format is based on xml. When I read document its parts are being unmarshalled (with JAXB). And I get a tree of certain elements based on xml markup. *Almost problem*: But some elements (which are at very deep xml level) returned not as certain class from docx spec (i.e. CTStyle, CTDrawing, CTInline etc) but as Object. Those objects are indeed instances of xerces classes, e.g. ElementNSImpl. *Problem*: How should I handle objects from xerces (e.g. ElementNSImpl)? The simplest approach is: CTGraphicData gData = getGraphicData (); Object obj = gData.getAny().get(0); ElementNSImpl element = (ElementNSImpl)obj; But it doesn't seem to be a good solution. I've never worked with xerces directly. What is the better way to do this casting? (If anyone also give me a tip about right way to iterate through nodes it would be great).
java
xerces
null
null
null
null
open
What is the correct way to handle object which is instance of class in apache.xerces? === *Preface:* I'm working on docx parser for java. docx format is based on xml. When I read document its parts are being unmarshalled (with JAXB). And I get a tree of certain elements based on xml markup. *Almost problem*: But some elements (which are at very deep xml level) returned not as certain class from docx spec (i.e. CTStyle, CTDrawing, CTInline etc) but as Object. Those objects are indeed instances of xerces classes, e.g. ElementNSImpl. *Problem*: How should I handle objects from xerces (e.g. ElementNSImpl)? The simplest approach is: CTGraphicData gData = getGraphicData (); Object obj = gData.getAny().get(0); ElementNSImpl element = (ElementNSImpl)obj; But it doesn't seem to be a good solution. I've never worked with xerces directly. What is the better way to do this casting? (If anyone also give me a tip about right way to iterate through nodes it would be great).
0
10,811,706
05/30/2012 07:20:26
399,943
07/23/2010 06:25:24
23
3
Any opensource available for Hospital Management
if you guys have any links opensource for hospital management, please let me know. I saw some of opensource like OpenERP thats really nice, I need something like hospital management. Thanks in advanced
php
content-management-system
crm
null
null
05/30/2012 08:04:42
not a real question
Any opensource available for Hospital Management === if you guys have any links opensource for hospital management, please let me know. I saw some of opensource like OpenERP thats really nice, I need something like hospital management. Thanks in advanced
1
7,295,018
09/03/2011 18:28:41
643,614
03/03/2011 19:55:04
27
1
Django admin file upload
I created a custom fileuploadhandler to be able to monitor the progress of the upload file. I am trying to implement this in the admin, but the filehandler isnt called untill the file is fully uploaded. Right after the file is fully uploaded, the form-post is submitted. Any ideas on how to adjust file upload behaviour (I want a streaming upload) in the admin panel?
file-upload
django-admin
null
null
null
09/05/2011 23:53:17
too localized
Django admin file upload === I created a custom fileuploadhandler to be able to monitor the progress of the upload file. I am trying to implement this in the admin, but the filehandler isnt called untill the file is fully uploaded. Right after the file is fully uploaded, the form-post is submitted. Any ideas on how to adjust file upload behaviour (I want a streaming upload) in the admin panel?
3
5,263,056
03/10/2011 16:57:53
653,961
03/10/2011 16:57:53
1
0
Random ports open on VPS box
I have a VPS box I just purchased. It is running Apache and SSHD on their default ports. When I do a port scan, I get results back that say port 139 and various other seemingly random ports are open. I am not running any services that would use these ports. The VPS provider provides console access over VNC. iptables is running, and the rules are here: Chain INPUT (policy DROP) target prot opt source destination ACCEPT all -- anywhere anywhere DROP all -- anywhere anywhere state INVALID ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere icmp echo-request state NEW OPEN-UDP udp -- anywhere anywhere state NEW OPEN-TCP tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN state NEW REJECT udp -- anywhere anywhere reject-with icmp-port-unreachable REJECT tcp -- anywhere anywhere reject-with tcp-reset REJECT all -- anywhere anywhere reject-with icmp-proto-unreachable Chain FORWARD (policy DROP) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain OPEN-TCP (1 references) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:ssh ACCEPT tcp -- anywhere anywhere tcp dpt:http Chain OPEN-UDP (1 references) target prot opt source destination ACCEPT udp -- anywhere anywhere udp dpt:ssh ACCEPT udp -- anywhere anywhere udp dpt:http Are these ports open because of the VNC software my VPS is providing (aka is this common?) or is it something I am doing wrong or have I been rooted?
firewall
vps
ports
null
null
null
open
Random ports open on VPS box === I have a VPS box I just purchased. It is running Apache and SSHD on their default ports. When I do a port scan, I get results back that say port 139 and various other seemingly random ports are open. I am not running any services that would use these ports. The VPS provider provides console access over VNC. iptables is running, and the rules are here: Chain INPUT (policy DROP) target prot opt source destination ACCEPT all -- anywhere anywhere DROP all -- anywhere anywhere state INVALID ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED ACCEPT icmp -- anywhere anywhere icmp echo-request state NEW OPEN-UDP udp -- anywhere anywhere state NEW OPEN-TCP tcp -- anywhere anywhere tcp flags:FIN,SYN,RST,ACK/SYN state NEW REJECT udp -- anywhere anywhere reject-with icmp-port-unreachable REJECT tcp -- anywhere anywhere reject-with tcp-reset REJECT all -- anywhere anywhere reject-with icmp-proto-unreachable Chain FORWARD (policy DROP) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain OPEN-TCP (1 references) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:ssh ACCEPT tcp -- anywhere anywhere tcp dpt:http Chain OPEN-UDP (1 references) target prot opt source destination ACCEPT udp -- anywhere anywhere udp dpt:ssh ACCEPT udp -- anywhere anywhere udp dpt:http Are these ports open because of the VNC software my VPS is providing (aka is this common?) or is it something I am doing wrong or have I been rooted?
0
3,310,188
07/22/2010 14:52:24
304,357
03/29/2010 15:33:13
160
7
Free SQL formating tool?
Hey, is there a good free tool out there that can also format complex queries? Thanks :-)
sql
formatting
null
null
null
10/18/2011 15:35:18
not constructive
Free SQL formating tool? === Hey, is there a good free tool out there that can also format complex queries? Thanks :-)
4
4,945,559
02/09/2011 13:34:34
609,807
02/09/2011 13:34:34
1
0
Displaying course details later than today's date
I'm using the VSTA C# on an infopath 2010 form, whereby by using cascading drop downs (Course Title & Course Details) information is displayed. So when a user selects the Course Title drop down, the Course details is populated with the StartTime, EndTime, Location and Development Category information from a Sharepoint 2010 list. Now the problem I have is that I want the user to only view the course details for today and onwards, and not view course details for the past. This is the code whereby I display the coursedetails. I've tried declaring a dateTime variable and using it to compare with a string that converts to DateTime with Today, to make it later than the DateTime variable, but it gives me an error after I select a course title, it says "Object Reference not set to an instance of an object". With the troubleshooting tips: "Use the new keyword to create an object instance. Check to determine if the object is null before calling the method. Get gengeral help for this exception" using (web = site.OpenWeb()) { try { //SPSecurity.RunWithElevatedPrivileges(new SPSecurity.CodeToRunElevated(delegate() //{ SPList lstDocs = web.Lists["Training Calander"] as SPList; string sTitle = ""; string sSDate = ""; string sEDate = ""; string sLocation = ""; string SDCategory = ""; string CourseDetails = ""; //DateTime TodayDate = DateTime.Today; //DateTime dt1 = Convert.ToDateTime(sEDate); if (lstDocs != null) { SortedList<string, string> lstDetails = new SortedList<string, string>(); foreach (SPListItem item in lstDocs.Items) { try { sTitle = item["Title"].ToString(); sSDate = item["StartTime"].ToString(); sEDate = item["EndTime"].ToString(); sLocation = item["Location"].ToString(); SDCategory = item["Development Category"].ToString(); } catch { } if (sTitle == nValue) //&& (dt >= TodayDate)) { try { CourseDetails = sSDate + " - " + sEDate + " | " + sLocation + " | " + SDCategory; lstDetails.Add(CourseDetails,CourseDetails); } catch { } } }
c#
date
drop-down-menu
infopath
cascading
null
open
Displaying course details later than today's date === I'm using the VSTA C# on an infopath 2010 form, whereby by using cascading drop downs (Course Title & Course Details) information is displayed. So when a user selects the Course Title drop down, the Course details is populated with the StartTime, EndTime, Location and Development Category information from a Sharepoint 2010 list. Now the problem I have is that I want the user to only view the course details for today and onwards, and not view course details for the past. This is the code whereby I display the coursedetails. I've tried declaring a dateTime variable and using it to compare with a string that converts to DateTime with Today, to make it later than the DateTime variable, but it gives me an error after I select a course title, it says "Object Reference not set to an instance of an object". With the troubleshooting tips: "Use the new keyword to create an object instance. Check to determine if the object is null before calling the method. Get gengeral help for this exception" using (web = site.OpenWeb()) { try { //SPSecurity.RunWithElevatedPrivileges(new SPSecurity.CodeToRunElevated(delegate() //{ SPList lstDocs = web.Lists["Training Calander"] as SPList; string sTitle = ""; string sSDate = ""; string sEDate = ""; string sLocation = ""; string SDCategory = ""; string CourseDetails = ""; //DateTime TodayDate = DateTime.Today; //DateTime dt1 = Convert.ToDateTime(sEDate); if (lstDocs != null) { SortedList<string, string> lstDetails = new SortedList<string, string>(); foreach (SPListItem item in lstDocs.Items) { try { sTitle = item["Title"].ToString(); sSDate = item["StartTime"].ToString(); sEDate = item["EndTime"].ToString(); sLocation = item["Location"].ToString(); SDCategory = item["Development Category"].ToString(); } catch { } if (sTitle == nValue) //&& (dt >= TodayDate)) { try { CourseDetails = sSDate + " - " + sEDate + " | " + sLocation + " | " + SDCategory; lstDetails.Add(CourseDetails,CourseDetails); } catch { } } }
0
6,397,865
06/18/2011 18:00:49
804,744
06/18/2011 18:00:49
1
0
Crashing Console application, at the end of a loop. Looking for advice. (pic inside)
(C++ CLR based project) The picture below shows the debugging process. Basically the program is designed to draw a simple ASCII level for a game. (30 x 30, and on each iteration of the loop draw a character (either a 'space' or a '+')) http://imageshack.us/photo/my-images/52/prgramcrash.jpg/ The x is the width, y is the height. so it will loop through the width 30 times drawing a '+' each time, then the y should change the row to the next line and start drawing more '+'s. However after the 30 '+' of the first row have been drawn, the very next step i take in the debug process crashes the application (with that odd message in the bottom right corner). It is on line 77 the crash occurs, not one other line of code is read, the program finishes printing out the 30 '+'s as planned and on the exit of the for (x) loop (returning to the for y, height loop) it just dies. This is based off a tutorial I'm following along with and the I have watched the videos all day checking over code looking for mistakes but I'm missing something surely. I have icnluded the whole code (code::blocks project) in a link at the bottom, but I doubt anyone here wants to help me that much :p, really im just hoping people with more experience have an idea of what might be causing this crash and give me a nudge in the right direction toward solving the problem. I truly hope you guys can help! :D codeblocks Project link: http://www.mediafire.com/?15nw8saa6x86b80
c++
crash
null
null
null
06/19/2011 21:25:45
too localized
Crashing Console application, at the end of a loop. Looking for advice. (pic inside) === (C++ CLR based project) The picture below shows the debugging process. Basically the program is designed to draw a simple ASCII level for a game. (30 x 30, and on each iteration of the loop draw a character (either a 'space' or a '+')) http://imageshack.us/photo/my-images/52/prgramcrash.jpg/ The x is the width, y is the height. so it will loop through the width 30 times drawing a '+' each time, then the y should change the row to the next line and start drawing more '+'s. However after the 30 '+' of the first row have been drawn, the very next step i take in the debug process crashes the application (with that odd message in the bottom right corner). It is on line 77 the crash occurs, not one other line of code is read, the program finishes printing out the 30 '+'s as planned and on the exit of the for (x) loop (returning to the for y, height loop) it just dies. This is based off a tutorial I'm following along with and the I have watched the videos all day checking over code looking for mistakes but I'm missing something surely. I have icnluded the whole code (code::blocks project) in a link at the bottom, but I doubt anyone here wants to help me that much :p, really im just hoping people with more experience have an idea of what might be causing this crash and give me a nudge in the right direction toward solving the problem. I truly hope you guys can help! :D codeblocks Project link: http://www.mediafire.com/?15nw8saa6x86b80
3
94,729
09/18/2008 17:34:14
6,035
09/12/2008 01:54:15
21
3
Need a free datepicker for ASPX
What is the best FREE Datepicker that can be dropped into an ASPX application?
asp.net
null
null
null
null
04/25/2012 11:27:00
not constructive
Need a free datepicker for ASPX === What is the best FREE Datepicker that can be dropped into an ASPX application?
4
11,279,291
07/01/2012 03:15:39
827,028
07/03/2011 15:48:10
279
5
A good tex to speech javascript library
I am looking for a good text to speech javascript library for my application. I looked around and saw [Jtalk][1] and [speak.js][2]. But not sure which one to go forth. Curious to know from people about the pros and cons of them and interested to know is there any other Javascript plugin you guys come across. My need is, I am basically visualizing a animation and wanted to add some audio for sight impaired people to tell them what is happening. [1]: http://www.jtalkplugin.com/ [2]: http://syntensity.com/static/espeak.html Thanks
javascript
jquery
jquery-plugins
text-to-speech
html5-audio
07/01/2012 04:11:07
not constructive
A good tex to speech javascript library === I am looking for a good text to speech javascript library for my application. I looked around and saw [Jtalk][1] and [speak.js][2]. But not sure which one to go forth. Curious to know from people about the pros and cons of them and interested to know is there any other Javascript plugin you guys come across. My need is, I am basically visualizing a animation and wanted to add some audio for sight impaired people to tell them what is happening. [1]: http://www.jtalkplugin.com/ [2]: http://syntensity.com/static/espeak.html Thanks
4
1,268,515
08/12/2009 20:24:01
155,390
08/12/2009 20:20:39
1
0
Using regexp to evaluate search query
Is it possible to convert a properly formed (in terms of brackets) expression such as >((a and b) or c) and d into a Regex expression and use Java or another language's built-in engine with an input term such as ABCDE? I'm thinking of splitting the input string into an array (based on this Regex) and receiving as output the characters that match (or none if the AND/OR conditions are not met). I'm relatively new to Regex and haven't spent a lot of time on it, so I'm sorry if what I'm asking about is not possible or the answer is really obvious. Thanks for any replies.
regex
search
query
evaluate
null
null
open
Using regexp to evaluate search query === Is it possible to convert a properly formed (in terms of brackets) expression such as >((a and b) or c) and d into a Regex expression and use Java or another language's built-in engine with an input term such as ABCDE? I'm thinking of splitting the input string into an array (based on this Regex) and receiving as output the characters that match (or none if the AND/OR conditions are not met). I'm relatively new to Regex and haven't spent a lot of time on it, so I'm sorry if what I'm asking about is not possible or the answer is really obvious. Thanks for any replies.
0
9,901,968
03/28/2012 06:06:18
1,086,902
12/08/2011 02:47:44
18
0
ASP.Net MVC - Questions regarding databases, models & views
Using MVC4, C# and SQL CE 4.0. - I have three tables in my database, I can't use separate models for them because when I try to do that, I'll encounter an error when running my app and browsing to the page. From what I observed, the addname in the connection string must be the same as the DbContext in the model, and with this, I'm forced to stick to one model. My question is: Am I doing it right, is this practical and is there a workaround for this (multiple models, all connecting to the same DB but different table)? - I'd like to display data from different tables in my database (something like collating them in one model?). How do I do that? E.g. Table 1 has a "Title" column and Table 2 has a "Book" column. I'd like to display the data in the two different columns of the two different tables in one view. So, the view will display the Title and Book. Thanks :)
c#
asp.net
mvc
null
null
null
open
ASP.Net MVC - Questions regarding databases, models & views === Using MVC4, C# and SQL CE 4.0. - I have three tables in my database, I can't use separate models for them because when I try to do that, I'll encounter an error when running my app and browsing to the page. From what I observed, the addname in the connection string must be the same as the DbContext in the model, and with this, I'm forced to stick to one model. My question is: Am I doing it right, is this practical and is there a workaround for this (multiple models, all connecting to the same DB but different table)? - I'd like to display data from different tables in my database (something like collating them in one model?). How do I do that? E.g. Table 1 has a "Title" column and Table 2 has a "Book" column. I'd like to display the data in the two different columns of the two different tables in one view. So, the view will display the Title and Book. Thanks :)
0
8,206,135
11/21/2011 00:48:46
1,053,045
11/18/2011 03:23:56
31
1
Storing regex result in a new variable
The below program is to rearrange a string. For line 8, I am trying to store the results of a regex into a new variable $newdate, but when $newdate is printed in line 9, it only displays a 1. How can I change my code so that $newdate will store the $date value from the regex operation? 1 #!/usr/bin/perl 2 3 # This program changes the date format from mm/dd/yyyy to yyyy,mm,dd 4 5 $date = '21/11/2011'; 6 print "Current: $date\n"; 7 8 $newdate = $date =~ s/(..)\/(..)\/(....)/$3,$2,$1/; 9 print "New: $newdate\n";
regex
perl
null
null
null
null
open
Storing regex result in a new variable === The below program is to rearrange a string. For line 8, I am trying to store the results of a regex into a new variable $newdate, but when $newdate is printed in line 9, it only displays a 1. How can I change my code so that $newdate will store the $date value from the regex operation? 1 #!/usr/bin/perl 2 3 # This program changes the date format from mm/dd/yyyy to yyyy,mm,dd 4 5 $date = '21/11/2011'; 6 print "Current: $date\n"; 7 8 $newdate = $date =~ s/(..)\/(..)\/(....)/$3,$2,$1/; 9 print "New: $newdate\n";
0
11,619,569
07/23/2012 19:57:57
1,543,644
07/22/2012 07:18:01
4
0
MSSQL Understanding Query Syntax - Collage
I got this from an external source. I need help understanding. CREATE TABLE [dbo].[CHAR_INFOR] ( [USER_KEY] [int] NOT NULL , [USER_ID] [varchar] (16) COLLATE Thai_CI_AS NOT NULL , [CHAR0_KEY] [int] NULL , [CHARID0] [varchar] (16) COLLATE Thai_CI_AS NULL , [CHAR1_KEY] [int] NULL , [CHARID1] [varchar] (16) COLLATE Thai_CI_AS NULL , [CHAR2_KEY] [int] NULL , [CHARID2] [varchar] (16) COLLATE Thai_CI_AS NULL , [CHAR3_KEY] [int] NULL , [CHARID3] [varchar] (16) COLLATE Thai_CI_AS NULL , [CHAR4_KEY] [int] NULL , [CHARID4] [varchar] (16) COLLATE Thai_CI_AS NULL ) ON [PRIMARY] GO What is the use of COLLATE? How does COLLATE affect this certain query? If COLLATE'd is the data also affected? or how the data is displayed affected? What If I don't want COLLATE? Because I got this sql from Thailand where they use Thai configured computers and im not from Thailand, I have an English computer w/o any thai stuff installed. How do I reconstruct this? Please advice. Thank you.
sql-server
query
syntax
collate
null
07/24/2012 13:11:21
not constructive
MSSQL Understanding Query Syntax - Collage === I got this from an external source. I need help understanding. CREATE TABLE [dbo].[CHAR_INFOR] ( [USER_KEY] [int] NOT NULL , [USER_ID] [varchar] (16) COLLATE Thai_CI_AS NOT NULL , [CHAR0_KEY] [int] NULL , [CHARID0] [varchar] (16) COLLATE Thai_CI_AS NULL , [CHAR1_KEY] [int] NULL , [CHARID1] [varchar] (16) COLLATE Thai_CI_AS NULL , [CHAR2_KEY] [int] NULL , [CHARID2] [varchar] (16) COLLATE Thai_CI_AS NULL , [CHAR3_KEY] [int] NULL , [CHARID3] [varchar] (16) COLLATE Thai_CI_AS NULL , [CHAR4_KEY] [int] NULL , [CHARID4] [varchar] (16) COLLATE Thai_CI_AS NULL ) ON [PRIMARY] GO What is the use of COLLATE? How does COLLATE affect this certain query? If COLLATE'd is the data also affected? or how the data is displayed affected? What If I don't want COLLATE? Because I got this sql from Thailand where they use Thai configured computers and im not from Thailand, I have an English computer w/o any thai stuff installed. How do I reconstruct this? Please advice. Thank you.
4
2,561,010
04/01/2010 14:18:52
111,665
05/05/2009 19:48:19
627
9
ColdFusion debugging output in my Ajax
If I turn off "Enable Request Debugging Output", the 3rd option under the Debug Output Settings, then I no longer get debug info in my $.ajax call to a cfc with access="remote". That's good, but I'd like to keep it turned on for all my other programs and turn it off programatically for this one exception. I put <cfsetting showdebugoutput="false"> at the top of my Index.cfm, but that didn't turn off the debug output coming from the cfc. Oh wait. Never mind. I had to put the <cfsetting showdebugoutput="false"> in the function rather than in Index.cfm.
coldfusion
null
null
null
null
null
open
ColdFusion debugging output in my Ajax === If I turn off "Enable Request Debugging Output", the 3rd option under the Debug Output Settings, then I no longer get debug info in my $.ajax call to a cfc with access="remote". That's good, but I'd like to keep it turned on for all my other programs and turn it off programatically for this one exception. I put <cfsetting showdebugoutput="false"> at the top of my Index.cfm, but that didn't turn off the debug output coming from the cfc. Oh wait. Never mind. I had to put the <cfsetting showdebugoutput="false"> in the function rather than in Index.cfm.
0
799,008
04/28/2009 17:21:42
94,570
04/22/2009 19:34:00
1
0
Need a form wizard technology that is configurable without programming
I need a forms technology similar to MS InfoPath or Adobe LiveCycle Forms ES in that it has an XML data structure, is compatible with ASP.NET, renders in a browser, and is easily configurable by non technical office worker types. TurboTax Online is a good example of the type of functionality I have in mind. The missing piece that I have not yet a solution for is that it be able to operate like a wizard such that responses to certain steps dynamically with AJAX or Flash/Silverlight or some kind of RIA either prompt or hide or alter subsequent parts of the form. It needs to be able to save all results or partial results to persistent form. This would be easy to program the functionality but need a technology that can create / generate these forms and be able to set the rules in some sort of easily configurable way - the same way an office worker can create a form with InfoPath at least with perhaps a workflow style tool to set the ruls and flow of the form.
wizard
asp.net
infopath
null
null
null
open
Need a form wizard technology that is configurable without programming === I need a forms technology similar to MS InfoPath or Adobe LiveCycle Forms ES in that it has an XML data structure, is compatible with ASP.NET, renders in a browser, and is easily configurable by non technical office worker types. TurboTax Online is a good example of the type of functionality I have in mind. The missing piece that I have not yet a solution for is that it be able to operate like a wizard such that responses to certain steps dynamically with AJAX or Flash/Silverlight or some kind of RIA either prompt or hide or alter subsequent parts of the form. It needs to be able to save all results or partial results to persistent form. This would be easy to program the functionality but need a technology that can create / generate these forms and be able to set the rules in some sort of easily configurable way - the same way an office worker can create a form with InfoPath at least with perhaps a workflow style tool to set the ruls and flow of the form.
0
8,122,212
11/14/2011 13:21:06
833,634
07/07/2011 13:39:16
1
2
iPAd Mirroring using 2 screens, does it support 1080 resolution?
2.5 years of mac and iOS development and i haven't found an answer to something. I'm working on a project utilizing iOS 5.0 and apple TV's airplay to display one UIScreen on the iPad and a separate one on my Apple TV. I have 2 separate view controllers and they display fine on each respectively. The issue is that the apple tv screen size returns at 720p not 1080p. So i get a bordered view controller at 1280 X 720 displayed and not a full screen representation of 1920 x 1080. The effect is my view controller is cropped not scaled. I tried the naughty things like changing screen bounds of the UIScreen and the view controller bounds but that doesn't work. Simply put: Does iOS 5 support a full screen 1080p view controller to be displayed? if so how did you do it?
ios
ipad
mirroring
airplay
apple-tv
03/26/2012 17:05:04
off topic
iPAd Mirroring using 2 screens, does it support 1080 resolution? === 2.5 years of mac and iOS development and i haven't found an answer to something. I'm working on a project utilizing iOS 5.0 and apple TV's airplay to display one UIScreen on the iPad and a separate one on my Apple TV. I have 2 separate view controllers and they display fine on each respectively. The issue is that the apple tv screen size returns at 720p not 1080p. So i get a bordered view controller at 1280 X 720 displayed and not a full screen representation of 1920 x 1080. The effect is my view controller is cropped not scaled. I tried the naughty things like changing screen bounds of the UIScreen and the view controller bounds but that doesn't work. Simply put: Does iOS 5 support a full screen 1080p view controller to be displayed? if so how did you do it?
2
10,805,197
05/29/2012 19:10:34
906,414
08/22/2011 18:13:28
16
1
How to get data to a Windows form when database is updated?
I want to write a C# application, when database get updated, that record data should be stored in an array. I have no idea to do that. How to get the updated record to my application at the same time updating is happend. I use MySQL database Thanks
c#
mysql
null
null
null
05/29/2012 23:21:20
not a real question
How to get data to a Windows form when database is updated? === I want to write a C# application, when database get updated, that record data should be stored in an array. I have no idea to do that. How to get the updated record to my application at the same time updating is happend. I use MySQL database Thanks
1
9,974,740
04/02/2012 10:29:13
1,019,503
10/29/2011 07:13:55
1
0
about updating android sdk
whats solution of this problem Downloading Android Support, revision 7 File not found: C:\Program Files (x86)\Android\android-sdk\temp\support_r07.zip (Access is denied) Done. Nothing was installed.
android
null
null
null
null
04/02/2012 10:39:01
off topic
about updating android sdk === whats solution of this problem Downloading Android Support, revision 7 File not found: C:\Program Files (x86)\Android\android-sdk\temp\support_r07.zip (Access is denied) Done. Nothing was installed.
2
3,185,631
07/06/2010 11:03:48
138,606
07/15/2009 09:45:36
413
11
Strange HTML5 Canvas drawImage behaviour.
I am writing some code that uses HTML5 canvas. Genereally it works well, but now I found a very strange behaviour. The weird thing is that it is consistent on different browsers, so must be that I understood the thing wrong... despite this the docs seem to say exactly what I do. Here is the code (it's an object method): MyCanvas.prototype.getElement = function() { var innerHtml = "<div></div>"; var elem = jQuery(innerHtml, { 'id' : this.viewId }); var canvas = jQuery("<canvas/>", { 'id' : this.viewId + "canvas", 'width' : this.width, 'height' : this.height }); var w = this.width; var h = this.height; jQuery(elem).append(canvas); var imgElem = new Image(); imgElem.src = this.maskImage; imgElem.onload = function() { var ctx = canvas[0].getContext('2d'); ctx.drawImage(this, 0, 0, w, h); }; return elem; }; after this I'll use jQuery again to append this element in a Div that is already in the page (that is blank). The result will be that the image is overstretched like ten times it's width.... That is weird because, for what I understood of drawImage, it should use the w and h values to scale the image and given that w and h are the size of the canvas, it should fit well. What am I doing wrong? Is it because I do the drawing off the rendered dom tree?
html5
canvas
scaling
drawimage
null
null
open
Strange HTML5 Canvas drawImage behaviour. === I am writing some code that uses HTML5 canvas. Genereally it works well, but now I found a very strange behaviour. The weird thing is that it is consistent on different browsers, so must be that I understood the thing wrong... despite this the docs seem to say exactly what I do. Here is the code (it's an object method): MyCanvas.prototype.getElement = function() { var innerHtml = "<div></div>"; var elem = jQuery(innerHtml, { 'id' : this.viewId }); var canvas = jQuery("<canvas/>", { 'id' : this.viewId + "canvas", 'width' : this.width, 'height' : this.height }); var w = this.width; var h = this.height; jQuery(elem).append(canvas); var imgElem = new Image(); imgElem.src = this.maskImage; imgElem.onload = function() { var ctx = canvas[0].getContext('2d'); ctx.drawImage(this, 0, 0, w, h); }; return elem; }; after this I'll use jQuery again to append this element in a Div that is already in the page (that is blank). The result will be that the image is overstretched like ten times it's width.... That is weird because, for what I understood of drawImage, it should use the w and h values to scale the image and given that w and h are the size of the canvas, it should fit well. What am I doing wrong? Is it because I do the drawing off the rendered dom tree?
0
3,071,012
06/18/2010 15:34:39
275,974
02/18/2010 10:49:31
85
5
Form With Quantity doesn't seem to submit
Hey guys, ive been trying to understand the documentation and find an example but im at a loss. This is just a submit form within the cart for updating the quantity however the updated quantity is not getting saved too the database and it always makes the quantity 0. Please help **Form** <% for line_item in @cart.line_items %> <% form_for :lineitems, :url => {:controller => "line_items", :action => "cart_update", :id => "#{line_item.product_id}"} do |l| %> <%= l.text_field :quantity, :size => '3', :value => line_item.quantity %> <%= l.submit 'cart_update' %> <% end %> **Route** map.connect 'line_item_update', :controller => 'line_items', :action => 'cart_update' **Controller** def cart_update @product = Product.find(params[:id]) item = LineItem.find_or_create_by_cart_id(:cart_id => current_cart.id, :product_id => @product.id, :quantity => 0, :unit_price => @product.price) item.quantity = (params[:quantity]).to_i item.save redirect_to :controller => 'products' end
ruby-on-rails
forms
shopping-cart
null
null
null
open
Form With Quantity doesn't seem to submit === Hey guys, ive been trying to understand the documentation and find an example but im at a loss. This is just a submit form within the cart for updating the quantity however the updated quantity is not getting saved too the database and it always makes the quantity 0. Please help **Form** <% for line_item in @cart.line_items %> <% form_for :lineitems, :url => {:controller => "line_items", :action => "cart_update", :id => "#{line_item.product_id}"} do |l| %> <%= l.text_field :quantity, :size => '3', :value => line_item.quantity %> <%= l.submit 'cart_update' %> <% end %> **Route** map.connect 'line_item_update', :controller => 'line_items', :action => 'cart_update' **Controller** def cart_update @product = Product.find(params[:id]) item = LineItem.find_or_create_by_cart_id(:cart_id => current_cart.id, :product_id => @product.id, :quantity => 0, :unit_price => @product.price) item.quantity = (params[:quantity]).to_i item.save redirect_to :controller => 'products' end
0
10,522,131
05/09/2012 18:39:46
38,813
11/19/2008 04:12:02
8,820
270
Why can't i run 'hello '.trim().copy(1,1)
First, i know that the syntax in the title is invalid. I'm just wondering whether it would make sense to add a new language feature lets us call functions via a different syntax? Let me explain... With current pascals, when you have a method in a class, a hidden parameter with a reference to an instance of the class is added. So when you have tmyclass.mymethod(x:integer), and you call myclass.mymethod(6), the compiler converts it into something like mymethod(myclass,6); What i'm wondering is: why are we not allowed to do it the other way around? If i create a procedure <code>mymethod(m:tmyclass;x:integer)</code>, i want to call it like <code> myclass.mymethod(345);</code> Or if i call trim on a string s like s.trim(), i want trim(s) to be called. If it would not only work on records and class you would even be able to rewrite unintuitive code like this: SameText( copy( inttostr(round(10/3)),1,1),'4') Into this: (10/3).round.IntToStr.copy(1,1).SameText('4') The second like represents my flow of thought much better than the first: from left to right instead of from the inner brackets outwards. Another example Label1.caption := Filelistbox1.filename.extractfilext.length.max(2).inttostr Looks more readable than: Label1.caption := inttostr(max(length(extractfileext(filelistbox1.filename)),2)); I can imagine that this could create ambiguity in existing code, but besides that, are there any reasons why this could never work? What objections could there be?
delphi
syntax
pascal
null
null
05/09/2012 21:20:56
not constructive
Why can't i run 'hello '.trim().copy(1,1) === First, i know that the syntax in the title is invalid. I'm just wondering whether it would make sense to add a new language feature lets us call functions via a different syntax? Let me explain... With current pascals, when you have a method in a class, a hidden parameter with a reference to an instance of the class is added. So when you have tmyclass.mymethod(x:integer), and you call myclass.mymethod(6), the compiler converts it into something like mymethod(myclass,6); What i'm wondering is: why are we not allowed to do it the other way around? If i create a procedure <code>mymethod(m:tmyclass;x:integer)</code>, i want to call it like <code> myclass.mymethod(345);</code> Or if i call trim on a string s like s.trim(), i want trim(s) to be called. If it would not only work on records and class you would even be able to rewrite unintuitive code like this: SameText( copy( inttostr(round(10/3)),1,1),'4') Into this: (10/3).round.IntToStr.copy(1,1).SameText('4') The second like represents my flow of thought much better than the first: from left to right instead of from the inner brackets outwards. Another example Label1.caption := Filelistbox1.filename.extractfilext.length.max(2).inttostr Looks more readable than: Label1.caption := inttostr(max(length(extractfileext(filelistbox1.filename)),2)); I can imagine that this could create ambiguity in existing code, but besides that, are there any reasons why this could never work? What objections could there be?
4
5,924,593
05/07/2011 23:08:13
530,877
12/05/2010 00:33:21
106
1
Python symbolic
How can I create vector with symbolic e1,e2,e3.. [e1;e2;e3]
python
null
null
null
null
05/07/2011 23:18:22
not a real question
Python symbolic === How can I create vector with symbolic e1,e2,e3.. [e1;e2;e3]
1
6,449,110
06/23/2011 03:49:30
800,952
06/16/2011 06:55:48
5
0
.read .write .replace string elements in jQuery
I have these 2 functions (serialize and deserialize) in Javascript (below) and I want to change it to jQuery. I am wondering what would the right replacement for read and write in jQuery. Read and write strings are from and to a Textarea. This is part of Openlayers vector formats, getting geometries into / from OL map canvas. Serialize is outputing the geometries from mapcanvas to textarea. function serialize(feature) { var type = document.getElementById("formatType").value; var pretty = document.getElementById("prettyPrint").checked; var str = formats['out'][type].write(feature, pretty); str = str.replace(/,/g, ', '); document.getElementById('output').value = str; } Deserialize is reading string from Textarea into OL mapcanvas. function deserialize() { var element = document.getElementById('text'); var type = document.getElementById("formatType").value; var features = formats['in'][type].read(element.value); var bounds; if(features) { if(features.constructor != Array) { features = [features]; } for(var i=0; i<features.length; ++i) { if (!bounds) { bounds = features[i].geometry.getBounds(); } else { bounds.extend(features[i].geometry.getBounds()); } } vectors.addFeatures(features); map.zoomToExtent(bounds); var plural = (features.length > 1) ? 's' : ''; element.value = features.length + ' feature' + plural + ' added'; } else { element.value = 'Bad input ' + type; } } Thanks in advance.
javascript
jquery
parsing
null
null
null
open
.read .write .replace string elements in jQuery === I have these 2 functions (serialize and deserialize) in Javascript (below) and I want to change it to jQuery. I am wondering what would the right replacement for read and write in jQuery. Read and write strings are from and to a Textarea. This is part of Openlayers vector formats, getting geometries into / from OL map canvas. Serialize is outputing the geometries from mapcanvas to textarea. function serialize(feature) { var type = document.getElementById("formatType").value; var pretty = document.getElementById("prettyPrint").checked; var str = formats['out'][type].write(feature, pretty); str = str.replace(/,/g, ', '); document.getElementById('output').value = str; } Deserialize is reading string from Textarea into OL mapcanvas. function deserialize() { var element = document.getElementById('text'); var type = document.getElementById("formatType").value; var features = formats['in'][type].read(element.value); var bounds; if(features) { if(features.constructor != Array) { features = [features]; } for(var i=0; i<features.length; ++i) { if (!bounds) { bounds = features[i].geometry.getBounds(); } else { bounds.extend(features[i].geometry.getBounds()); } } vectors.addFeatures(features); map.zoomToExtent(bounds); var plural = (features.length > 1) ? 's' : ''; element.value = features.length + ' feature' + plural + ' added'; } else { element.value = 'Bad input ' + type; } } Thanks in advance.
0
7,761,629
10/13/2011 23:34:10
588,055
01/24/2011 19:56:34
81
1
How to block Chrome users with Javascript?
I was just wondering if there is a way to notify users when accessing my site with Chrome that they need to download Firefox? I don't want to allow people using Chrome to visit it. Thanks!
javascript
null
null
null
null
06/06/2012 14:39:58
not a real question
How to block Chrome users with Javascript? === I was just wondering if there is a way to notify users when accessing my site with Chrome that they need to download Firefox? I don't want to allow people using Chrome to visit it. Thanks!
1
7,442,743
09/16/2011 09:36:22
574,115
01/13/2011 11:01:12
193
9
How does one upload a photo to twitter with their new API function (POST statuses/update_with_media)
I might be a simple question, but I just can't figure this out. I am using [Twitterizer][1] to get me the required secret tokens. This library also provides a way to update your twitter with a new tweet, but it does not support the new update_with_media call. I've tried several ways, one way by using WebRequest and the other way by using WebClient (pseudo-C#-code): string URL = "https://upload.twitter.com/1/statuses/update_with_media.json?oauth_consumer_secret=[mysecretgoeshere]&oauth_token_secret=[usersecretgoeshere]"; System.Net.ServicePointManager.Expect100Continue = false; Byte[] fileData = File.ReadAllBytes(pathToFile); #if useWebRequest string postString = "status={statusgoeshere}&image[]={Encoding.ASCII.GetString(fileData)}"; Byte[] postData = Encoding.ASCII.GetBytes(postString); WebRequest wr = WebRequest.Create(URL); wr.Method = "POST"; wr.ContentType = "multipart/form-data"; //as required by twitter API wr.ContentLength = postData.Length; IO.Stream rqstream = wr.GetRequestStream(); rqstream.Write(postData,0,postData.Length); rqstream.Close(); wr.GetResponse(); //returns status 500 internal server error #else WebClient client = new WebClient(); NameValueCollection postData = new NameValueCollection(); postData.Add("status", "{statusgoeshere}"); postData.add("media[]", Encoding.ASCII.GetString(fileData)); client.UploadValues(URL, "POST", postData); //returns status 401 not authorized #endif I wonder what I am doing wrong (if I am doing something wrong that is). Both ways seem valid in my eyes, but I might be missing some things. [1]: http://www.twitterizer.net/
.net
twitter-api
twitter-oauth
null
null
null
open
How does one upload a photo to twitter with their new API function (POST statuses/update_with_media) === I might be a simple question, but I just can't figure this out. I am using [Twitterizer][1] to get me the required secret tokens. This library also provides a way to update your twitter with a new tweet, but it does not support the new update_with_media call. I've tried several ways, one way by using WebRequest and the other way by using WebClient (pseudo-C#-code): string URL = "https://upload.twitter.com/1/statuses/update_with_media.json?oauth_consumer_secret=[mysecretgoeshere]&oauth_token_secret=[usersecretgoeshere]"; System.Net.ServicePointManager.Expect100Continue = false; Byte[] fileData = File.ReadAllBytes(pathToFile); #if useWebRequest string postString = "status={statusgoeshere}&image[]={Encoding.ASCII.GetString(fileData)}"; Byte[] postData = Encoding.ASCII.GetBytes(postString); WebRequest wr = WebRequest.Create(URL); wr.Method = "POST"; wr.ContentType = "multipart/form-data"; //as required by twitter API wr.ContentLength = postData.Length; IO.Stream rqstream = wr.GetRequestStream(); rqstream.Write(postData,0,postData.Length); rqstream.Close(); wr.GetResponse(); //returns status 500 internal server error #else WebClient client = new WebClient(); NameValueCollection postData = new NameValueCollection(); postData.Add("status", "{statusgoeshere}"); postData.add("media[]", Encoding.ASCII.GetString(fileData)); client.UploadValues(URL, "POST", postData); //returns status 401 not authorized #endif I wonder what I am doing wrong (if I am doing something wrong that is). Both ways seem valid in my eyes, but I might be missing some things. [1]: http://www.twitterizer.net/
0
7,541,770
09/24/2011 20:37:58
915,330
08/27/2011 09:59:41
19
1
html and js method
I am find this code from facebook. I would like to use a structure in this way. How can I use this method.? Thanks For Answers. for (;;);{"__ar":1,"payload":null,"css":["wOyD6","Dk+z9","uUZcv"],"js":["TNp9j","12BHN"],"onload":["(function(){var k=Arbiter.subscribe(\"xhpc\\\/construct\\\/\"+this.id,function(_,c){(function(){Arbiter.unsubscribe(k);}).defer();c.mutate({\"xhpc\":\"u598502_6\",\"endpoint\":\"\\\/ajax\\\/questions\\\/save.php\",\"formType\":1,\"inputHidden\":true,\"placeholder\":\"Bir \\u015fey sor...\",\"buttonLabel\":\"Payla\\u015f\",\"blurb\":\"\\u003ca class=\\\"addPollOptionsLink\\\" rel=\\\"async\\\" ajaxify=\\\"\\\/ajax\\\/questions\\\/show_poll_composer.php?xhpc_ismeta=true\\\">Anket \\u015e\\u0131klar\\u0131 Ekle\\u003c\\\/a>\",\"content\":\"\\u003cdiv class=\\\"webComposerQuestion\\\">\\u003cinput type=\\\"hidden\\\" autocomplete=\\\"off\\\" name=\\\"source\\\" value=\\\"composer\\\" \\\/>\\u003cdiv class=\\\"mas\\\">\\u003ctextarea class=\\\"DOMControl_placeholder uiTextareaNoResize uiTextareaAutogrow questionInput fluidInput\\\" title=\\\"Bir \\u015fey sor...\\\" spellcheck=\\\"true\\\" name=\\\"question\\\" maxlength=\\\"500\\\" placeholder=\\\"Bir \\u015fey sor...\\\" id=\\\"u614163_1\\\" onfocus=\\\"return wait_for_load(this, event, function() &#123;if (!this._has_control) &#123; new TextAreaControl(this).setAutogrow(true); this._has_control = true; &#125; &#125;);\\\">Bir \\u015fey sor...\\u003c\\\/textarea>\\u003c\\\/div>\\u003c\\\/div>\",\"hideTopicTagger\":true});c.subscribe(\"init\", new Function(\"onloadRegister(function (){Input.enableAutoCapitalize($(\\\"u614163_1\\\"), \\\"\\\");});\\n\"));});;}).apply(DOM.find(this.getRelativeTo(),\"^div.uiComposer\"))"],"bootloadable":{"maxlength-form-listener":["LayX0","nO1QQ","12BHN"]},"resource_map":{"wOyD6":{"type":"css","src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yC\/r\/Zg0ARUxUS6N.css"},"Dk+z9":{"type":"css","src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yw\/r\/q4nJ2ZkJtyT.css"},"uUZcv":{"type":"css","permanent":1,"src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yO\/r\/4okS7_KFNGX.css"},"TNp9j":{"type":"js","src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yo\/r\/8rrAXwg5z80.js"},"12BHN":{"type":"js","src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yg\/r\/jkR6Xtb9PGX.js"},"LayX0":{"type":"js","src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yn\/r\/HT0e0kw4zvt.js"},"nO1QQ":{"type":"js","src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/y8\/r\/Cu4Eol99gUR.js"}}}
javascript
json
facebook
null
null
09/24/2011 23:19:20
not a real question
html and js method === I am find this code from facebook. I would like to use a structure in this way. How can I use this method.? Thanks For Answers. for (;;);{"__ar":1,"payload":null,"css":["wOyD6","Dk+z9","uUZcv"],"js":["TNp9j","12BHN"],"onload":["(function(){var k=Arbiter.subscribe(\"xhpc\\\/construct\\\/\"+this.id,function(_,c){(function(){Arbiter.unsubscribe(k);}).defer();c.mutate({\"xhpc\":\"u598502_6\",\"endpoint\":\"\\\/ajax\\\/questions\\\/save.php\",\"formType\":1,\"inputHidden\":true,\"placeholder\":\"Bir \\u015fey sor...\",\"buttonLabel\":\"Payla\\u015f\",\"blurb\":\"\\u003ca class=\\\"addPollOptionsLink\\\" rel=\\\"async\\\" ajaxify=\\\"\\\/ajax\\\/questions\\\/show_poll_composer.php?xhpc_ismeta=true\\\">Anket \\u015e\\u0131klar\\u0131 Ekle\\u003c\\\/a>\",\"content\":\"\\u003cdiv class=\\\"webComposerQuestion\\\">\\u003cinput type=\\\"hidden\\\" autocomplete=\\\"off\\\" name=\\\"source\\\" value=\\\"composer\\\" \\\/>\\u003cdiv class=\\\"mas\\\">\\u003ctextarea class=\\\"DOMControl_placeholder uiTextareaNoResize uiTextareaAutogrow questionInput fluidInput\\\" title=\\\"Bir \\u015fey sor...\\\" spellcheck=\\\"true\\\" name=\\\"question\\\" maxlength=\\\"500\\\" placeholder=\\\"Bir \\u015fey sor...\\\" id=\\\"u614163_1\\\" onfocus=\\\"return wait_for_load(this, event, function() &#123;if (!this._has_control) &#123; new TextAreaControl(this).setAutogrow(true); this._has_control = true; &#125; &#125;);\\\">Bir \\u015fey sor...\\u003c\\\/textarea>\\u003c\\\/div>\\u003c\\\/div>\",\"hideTopicTagger\":true});c.subscribe(\"init\", new Function(\"onloadRegister(function (){Input.enableAutoCapitalize($(\\\"u614163_1\\\"), \\\"\\\");});\\n\"));});;}).apply(DOM.find(this.getRelativeTo(),\"^div.uiComposer\"))"],"bootloadable":{"maxlength-form-listener":["LayX0","nO1QQ","12BHN"]},"resource_map":{"wOyD6":{"type":"css","src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yC\/r\/Zg0ARUxUS6N.css"},"Dk+z9":{"type":"css","src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yw\/r\/q4nJ2ZkJtyT.css"},"uUZcv":{"type":"css","permanent":1,"src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yO\/r\/4okS7_KFNGX.css"},"TNp9j":{"type":"js","src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yo\/r\/8rrAXwg5z80.js"},"12BHN":{"type":"js","src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yg\/r\/jkR6Xtb9PGX.js"},"LayX0":{"type":"js","src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/yn\/r\/HT0e0kw4zvt.js"},"nO1QQ":{"type":"js","src":"https:\/\/s-static.ak.facebook.com\/rsrc.php\/v1\/y8\/r\/Cu4Eol99gUR.js"}}}
1
3,989,806
10/21/2010 16:39:22
349,086
05/24/2010 15:29:15
10
0
HTTPS request/response in Android
Need to send a POST request to a Service provider using HTTPS protocol, using the [Apache Commons HttpClient][1]. Reply from the service provider will be an xml file, need to read that also. [1]: http://hc.apache.org/httpclient-3.x/
android
https
null
null
null
null
open
HTTPS request/response in Android === Need to send a POST request to a Service provider using HTTPS protocol, using the [Apache Commons HttpClient][1]. Reply from the service provider will be an xml file, need to read that also. [1]: http://hc.apache.org/httpclient-3.x/
0
6,879,449
07/29/2011 21:57:48
611,437
02/10/2011 13:35:49
6
0
Which Java web framework do you use with ExtJS?
i am planing to start a new project with Extjs4 , but the problem is i have many options to decide which java framework i have to work on it ?? my options is : **Grails** Or **Play Framework**. And also must be taken into account **JSON** because Extjs love it so much so which Framework is the best to handle JSON format .
java
javascript
grails
extjs
playframework
07/31/2011 14:14:58
not constructive
Which Java web framework do you use with ExtJS? === i am planing to start a new project with Extjs4 , but the problem is i have many options to decide which java framework i have to work on it ?? my options is : **Grails** Or **Play Framework**. And also must be taken into account **JSON** because Extjs love it so much so which Framework is the best to handle JSON format .
4
3,760,956
09/21/2010 13:49:34
453,999
09/21/2010 13:49:34
1
0
Sql query for specific date range and date time.
I need to query all values between specified date range and time range. For example, I want to query all the values from 5:00Pm on 16-Sep-2010 to 9:00AM 21-Sep-2010. Any ideas how the query should be. Tnank in advance.
sql-server-2005
null
null
null
null
null
open
Sql query for specific date range and date time. === I need to query all values between specified date range and time range. For example, I want to query all the values from 5:00Pm on 16-Sep-2010 to 9:00AM 21-Sep-2010. Any ideas how the query should be. Tnank in advance.
0
6,229,904
06/03/2011 16:27:09
718,146
04/21/2011 01:34:08
16
1
linux -- concurrently reading/writing from/to a file
Linux is strange for me, I am thinking how to code my program to safely operate linux files. what aspects should I regard if my program operate(open, read or write) to a file(normal file or dev file and so on) that is being operated by other process. can you give me some ideas, or suggest me any helpful articles/links ?
linux
file-io
null
null
null
06/03/2011 18:11:16
not a real question
linux -- concurrently reading/writing from/to a file === Linux is strange for me, I am thinking how to code my program to safely operate linux files. what aspects should I regard if my program operate(open, read or write) to a file(normal file or dev file and so on) that is being operated by other process. can you give me some ideas, or suggest me any helpful articles/links ?
1
8,027,204
11/06/2011 13:14:16
744,230
05/08/2011 20:52:32
23
0
Group an object of dates into days
hi would You group a range of dates into days (with PHP, no 5.3 available at the moment for use of DateTime by the way)? I just've read out all data entries via MySQL for a month and now want to calculate how many data entries have been created in each day of the month, timestamp is default like "2011-11-05 23:42:03". Best regards, .wired
php
mysql
date
sum
group
null
open
Group an object of dates into days === hi would You group a range of dates into days (with PHP, no 5.3 available at the moment for use of DateTime by the way)? I just've read out all data entries via MySQL for a month and now want to calculate how many data entries have been created in each day of the month, timestamp is default like "2011-11-05 23:42:03". Best regards, .wired
0
4,197,203
11/16/2010 17:44:32
190,113
10/14/2009 19:35:33
3
10
mySql WHERE `xml<date>` = '11/21/2010'
i have a mySql database, and it has an field for each entry called xml, which contains XML. i would like to know if there is syntax to select xml values like normal fields. for example if i wanted to select all entries with the date of 11/21/2010 i try something like this, but the syntax is wrong, since i don't know how to work with xml well in mySql. **SELECT * FROM `table` WHERE `xml<date>` = '11/21/2010'** ideally i would like to compair it to another field. **SELECT * FROM `table` WHERE `xml<date>` != `date`**
mysql
mysql-query
mysql-select
null
null
null
open
mySql WHERE `xml<date>` = '11/21/2010' === i have a mySql database, and it has an field for each entry called xml, which contains XML. i would like to know if there is syntax to select xml values like normal fields. for example if i wanted to select all entries with the date of 11/21/2010 i try something like this, but the syntax is wrong, since i don't know how to work with xml well in mySql. **SELECT * FROM `table` WHERE `xml<date>` = '11/21/2010'** ideally i would like to compair it to another field. **SELECT * FROM `table` WHERE `xml<date>` != `date`**
0
4,350,334
12/03/2010 22:17:04
297,159
03/19/2010 07:23:38
111
3
I hate AJAX, what is the alternative
I really love AJAX, but sometimes this javascript/HTML/CSS combination makes me crazy. What alternative I have to create a rich engaging web administration panel (web application)? I tried Adobe Flex, it seams cool, but its complexity is not to be underestimated. What do you think?
html
ajax
rich-internet-application
null
null
12/03/2010 22:19:51
not a real question
I hate AJAX, what is the alternative === I really love AJAX, but sometimes this javascript/HTML/CSS combination makes me crazy. What alternative I have to create a rich engaging web administration panel (web application)? I tried Adobe Flex, it seams cool, but its complexity is not to be underestimated. What do you think?
1
81,268
09/17/2008 08:56:38
15,395
09/17/2008 08:56:37
1
0
Case insensitive search on Sybase
I have been sick and tired Googling the solution for doing case-insensitive search on Sybase ASE (Sybase data/column names are case sensitive). The Sybase documentation proudly says that there is only one way to do such search which is using the Upper and Lower functions, but the adage goes, it has performance problems. And believe me they are right, if your table has huge data the performance is so awkward you are never gonna use Upper and Lower again. My question to fellow developers is: how do you guys tackle this? P.S. Don't advise to change the sort-order or move to any other Database please, in real world developers don't control the databases.
performance
sybase
case
casesensitive
ase
null
open
Case insensitive search on Sybase === I have been sick and tired Googling the solution for doing case-insensitive search on Sybase ASE (Sybase data/column names are case sensitive). The Sybase documentation proudly says that there is only one way to do such search which is using the Upper and Lower functions, but the adage goes, it has performance problems. And believe me they are right, if your table has huge data the performance is so awkward you are never gonna use Upper and Lower again. My question to fellow developers is: how do you guys tackle this? P.S. Don't advise to change the sort-order or move to any other Database please, in real world developers don't control the databases.
0
7,183,097
08/24/2011 22:32:02
910,785
08/24/2011 22:32:02
1
0
Installing andriod 3.2
I recently bought a tablet that has andriod 2.3, I am looking at installing andriod 3.2 but can only find the SDK version to download with very little instructions. Could anybody tell me if there is a Install android 3.2 for dummies? Thanks in advance. DarrenRSA
android
installing
null
null
null
08/24/2011 22:40:36
off topic
Installing andriod 3.2 === I recently bought a tablet that has andriod 2.3, I am looking at installing andriod 3.2 but can only find the SDK version to download with very little instructions. Could anybody tell me if there is a Install android 3.2 for dummies? Thanks in advance. DarrenRSA
2
11,441,404
07/11/2012 21:00:43
83,169
03/26/2009 15:01:21
416
17
Why would a SQL Server 2008 R2 database disable a table index when upgraded to SQL Server 2012
I've restored a database backup in a new SQL Server 2012 server from a .bak made in SQL Server 2008 R2, and one of the tables has it's primary key index disabled. This doesn't happen when I restore to a 2008R2 server. Is this a known problem in SQL Server 2012, or is there something I've missed? I know that I can fix the problem with an index rebuild, I ask because it's surprising behavior, and want to know how to prevent it.
sql-server
backup
upgrade
null
null
07/11/2012 22:56:17
off topic
Why would a SQL Server 2008 R2 database disable a table index when upgraded to SQL Server 2012 === I've restored a database backup in a new SQL Server 2012 server from a .bak made in SQL Server 2008 R2, and one of the tables has it's primary key index disabled. This doesn't happen when I restore to a 2008R2 server. Is this a known problem in SQL Server 2012, or is there something I've missed? I know that I can fix the problem with an index rebuild, I ask because it's surprising behavior, and want to know how to prevent it.
2
2,586,374
04/06/2010 16:10:54
34,824
11/05/2008 20:09:26
4,151
173
Not a statement?
I have a simple little code fragment that is frustrating me: HashSet<long> groupUIDs = new HashSet<long>(); groupUIDs.Add(uid)? unique++ : dupes++; At compile time, it generates the error: > Only assignment, call, increment, decrement, and new object expressions can be used as a statement `HashSet.Add` is documented to return a bool, so the ternary (?) operator should work, and this looks like a completely legitimate way to track the number of unique and duplicate items I add to a hash-set. When I reformat it as a if-then-else, it works fine. Can anyone explain the error, and if there is a way to do this as a simple ternary operator?
c#
null
null
null
null
null
open
Not a statement? === I have a simple little code fragment that is frustrating me: HashSet<long> groupUIDs = new HashSet<long>(); groupUIDs.Add(uid)? unique++ : dupes++; At compile time, it generates the error: > Only assignment, call, increment, decrement, and new object expressions can be used as a statement `HashSet.Add` is documented to return a bool, so the ternary (?) operator should work, and this looks like a completely legitimate way to track the number of unique and duplicate items I add to a hash-set. When I reformat it as a if-then-else, it works fine. Can anyone explain the error, and if there is a way to do this as a simple ternary operator?
0
10,265,509
04/22/2012 05:32:43
112,780
05/26/2009 21:47:17
137
12
Adding event handlers - purpose of the syntax
Here's an interesting question I never really thought about until I had a conversation with a co-worker last week. When we add an event handler, we use syntax such as: `Button1.Click += ClickHandler` As far as I can tell, we use += synonymously with "add" and -= synonymously with "remove". So my question is, why did the language creators choose to use this sort of syntax? Why not Button1.Click.Add(ClickHandler)? If it just means add, why wouldn't the framework creators overload the += operator for List<T> instead of .Add()? I imagine it's the same reason which explains the existence of AddHandler and RemoveHandler in VB.Net but I have no idea what that reason is. Why is there special language syntax for adding and removing event handlers?
c#
events
null
null
null
04/23/2012 02:34:06
not constructive
Adding event handlers - purpose of the syntax === Here's an interesting question I never really thought about until I had a conversation with a co-worker last week. When we add an event handler, we use syntax such as: `Button1.Click += ClickHandler` As far as I can tell, we use += synonymously with "add" and -= synonymously with "remove". So my question is, why did the language creators choose to use this sort of syntax? Why not Button1.Click.Add(ClickHandler)? If it just means add, why wouldn't the framework creators overload the += operator for List<T> instead of .Add()? I imagine it's the same reason which explains the existence of AddHandler and RemoveHandler in VB.Net but I have no idea what that reason is. Why is there special language syntax for adding and removing event handlers?
4
648,497
03/15/2009 20:36:02
67,063
02/16/2009 19:06:03
210
11
Future of Internet Explorer
It's been rumored that IE8 will be Microsoft's final release of IE. What are their future plans for an HTML-rendering engine?
internet-explorer
html
webbrowser
webbrowser-control
internet-explorer-8
03/15/2009 21:03:45
not constructive
Future of Internet Explorer === It's been rumored that IE8 will be Microsoft's final release of IE. What are their future plans for an HTML-rendering engine?
4
9,997,568
04/03/2012 16:33:05
277,603
02/20/2010 10:57:14
1,390
8
python string-match regular expression
The following are the contents of a file.When printed out the following is the output.How to determine a string starting with, UID1231212 UId123 UID3211 UID555555 uid = re.compile(r"UID\d") # ?? how to do this
python
null
null
null
null
04/03/2012 17:32:12
not a real question
python string-match regular expression === The following are the contents of a file.When printed out the following is the output.How to determine a string starting with, UID1231212 UId123 UID3211 UID555555 uid = re.compile(r"UID\d") # ?? how to do this
1
3,879,793
10/07/2010 08:11:39
435,800
08/31/2010 10:09:23
95
6
The best Linux tool for disassembling C++ executables
According to you, which tool is the best for this thing. I mean, I'm looking for something like OllyDbg but for linux. Thanks, Kiril
c++
linux
tools
disassembling
null
09/16/2011 20:50:53
not constructive
The best Linux tool for disassembling C++ executables === According to you, which tool is the best for this thing. I mean, I'm looking for something like OllyDbg but for linux. Thanks, Kiril
4
11,437,268
07/11/2012 16:34:48
1,518,412
07/11/2012 16:10:08
1
0
what is happening to my MS visual studio 2010 !! can anyone help me with it?
my MS visual studio 2010 do not allow my file to be compile when i use ; it state there error... but not all of the ; symbol just one of it stated error hope this problem can solve as fast as possible, in a urgent to pass up my asignment 1>------ Build started: Project: waynekwa, Configuration: Debug Win32 ------ 1>Build started 7/11/2012 11:58:46 PM. 1>InitializeBuildStatus: 1> Touching "Debug\waynekwa.unsuccessfulbuild". 1>ClCompile: 1> waynekwa.cpp 1>c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(6): warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(304) : see declaration of 'scanf' 1>c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(11): error C2059: syntax error : ';' 1>c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(11): error C2143: syntax error : missing ';' before ')' 1>c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(11): error C2143: syntax error : missing ';' before ')' 1>c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(12): error C2143: syntax error : missing ';' before '{' 1>c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(27): fatal error C1075: end of file found before the left brace '{' at 'c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(3)' was matched 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:02.14 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== PS: If you want to understand more clearly by image...give me your email and i try to mail it for you..hope problem solve soon..thx
visual-c++
null
null
null
null
07/13/2012 01:34:32
not a real question
what is happening to my MS visual studio 2010 !! can anyone help me with it? === my MS visual studio 2010 do not allow my file to be compile when i use ; it state there error... but not all of the ; symbol just one of it stated error hope this problem can solve as fast as possible, in a urgent to pass up my asignment 1>------ Build started: Project: waynekwa, Configuration: Debug Win32 ------ 1>Build started 7/11/2012 11:58:46 PM. 1>InitializeBuildStatus: 1> Touching "Debug\waynekwa.unsuccessfulbuild". 1>ClCompile: 1> waynekwa.cpp 1>c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(6): warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1> c:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(304) : see declaration of 'scanf' 1>c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(11): error C2059: syntax error : ';' 1>c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(11): error C2143: syntax error : missing ';' before ')' 1>c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(11): error C2143: syntax error : missing ';' before ')' 1>c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(12): error C2143: syntax error : missing ';' before '{' 1>c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(27): fatal error C1075: end of file found before the left brace '{' at 'c:\users\asus\documents\visual studio 2010\projects\waynekwa\waynekwa\waynekwa.cpp(3)' was matched 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:02.14 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== PS: If you want to understand more clearly by image...give me your email and i try to mail it for you..hope problem solve soon..thx
1
4,522,674
12/23/2010 21:43:35
394,741
07/17/2010 16:34:08
8
1
How to concardinate an extra field with the input text
The input text will be 9842901121 9942501133 9942501199 9942501133 9842901121 At first the input file should be sorted with unique lines only. Then the output to be '9842901121',()(now, '9942501133',()(now, '9942501199',()(now, If we use ' thing in unix command the promt goes to > .Kindly help out
unix
null
null
null
null
null
open
How to concardinate an extra field with the input text === The input text will be 9842901121 9942501133 9942501199 9942501133 9842901121 At first the input file should be sorted with unique lines only. Then the output to be '9842901121',()(now, '9942501133',()(now, '9942501199',()(now, If we use ' thing in unix command the promt goes to > .Kindly help out
0
7,587,719
09/28/2011 18:24:44
878,866
08/04/2011 15:03:56
36
5
Bandwith problem, any better solution?
Currently i'm building an system that will let the user to create an small website inside their system. To access their website, user will type www.USERDOMAIN.mywebsite.com (just an example...) Well, USERDOMAIN will be their username on my database, and mywebsite will be the system domain. The user, (if he want's) can show his website on any domain, and i was thinking on how to link their domain with the information inside my database. I thought on two ideas: - I can't give the main code to the final user, so I just thought I'd give him an HTML page with an iframe targeted to the original content, but it would be an bad idea because i would have too much trafic from many websites, and everything will be on my database causing it to be slow down. - Create some basic tables on the domain that my client has acquired, and some files to get the data and work with them, any change on the content would be made by the main system, them all chandged data would be sent to my client database I Think that the second solution would be better, but if you had an experience like it, something that you had think, it would be really great to share with me... if you had any idea, just let me know what of the two options above you chose. Thanks guys!
php
asp.net
web-applications
architecture
system
09/29/2011 03:30:51
not constructive
Bandwith problem, any better solution? === Currently i'm building an system that will let the user to create an small website inside their system. To access their website, user will type www.USERDOMAIN.mywebsite.com (just an example...) Well, USERDOMAIN will be their username on my database, and mywebsite will be the system domain. The user, (if he want's) can show his website on any domain, and i was thinking on how to link their domain with the information inside my database. I thought on two ideas: - I can't give the main code to the final user, so I just thought I'd give him an HTML page with an iframe targeted to the original content, but it would be an bad idea because i would have too much trafic from many websites, and everything will be on my database causing it to be slow down. - Create some basic tables on the domain that my client has acquired, and some files to get the data and work with them, any change on the content would be made by the main system, them all chandged data would be sent to my client database I Think that the second solution would be better, but if you had an experience like it, something that you had think, it would be really great to share with me... if you had any idea, just let me know what of the two options above you chose. Thanks guys!
4
783,781
04/23/2009 22:21:29
46,040
12/13/2008 22:20:21
1
0
Python equivalent of PHP's compact() and extract()
[compact][1]() and [extract][2]() are functions in PHP I find tremendously handy. compact() takes a list of names in the symbol table and creates a hashtable with just their values. extract does the opposite. e.g., $foo = 'what'; $bar = 'ever'; $a = compact('what', 'ever'); $a['foo'] # what $a['baz'] = 'another' extract(a) $baz # another Is there a way to do the same in Python? I've looked all around and the closest I've come is [this thread][3], which seems to frown on it. I know about locals(), globals() and vars(), but how can I handily select just a subset of their values? Does Python have something even better that obviates the need for this? [1]: http://www.php.net/compact [2]: http://www.php.net/extract [3]: http://markmail.org/message/r52hym6zfy7hd2ch
python
php
dictionary
null
null
null
open
Python equivalent of PHP's compact() and extract() === [compact][1]() and [extract][2]() are functions in PHP I find tremendously handy. compact() takes a list of names in the symbol table and creates a hashtable with just their values. extract does the opposite. e.g., $foo = 'what'; $bar = 'ever'; $a = compact('what', 'ever'); $a['foo'] # what $a['baz'] = 'another' extract(a) $baz # another Is there a way to do the same in Python? I've looked all around and the closest I've come is [this thread][3], which seems to frown on it. I know about locals(), globals() and vars(), but how can I handily select just a subset of their values? Does Python have something even better that obviates the need for this? [1]: http://www.php.net/compact [2]: http://www.php.net/extract [3]: http://markmail.org/message/r52hym6zfy7hd2ch
0
11,082,050
06/18/2012 11:40:22
894,593
08/15/2011 07:14:04
10
1
XML Parsing Error in JSF-trinidad application
When I am clicking a checkbox in my JSF 1.2 (with Apache MyFaces Trinidad 1.0.13) application I am getting following error in FF--- XML Parsing Error: no element found Location: moz-nullprincipal:{b057dcbe-8456-48e5-9a49-5dc61db63791} Line Number 1, Column 1: Also I see that Firebug giving,"Invalid PPR Response" Can anyone advice please?
java
jsf
myfaces
null
null
06/18/2012 15:59:31
too localized
XML Parsing Error in JSF-trinidad application === When I am clicking a checkbox in my JSF 1.2 (with Apache MyFaces Trinidad 1.0.13) application I am getting following error in FF--- XML Parsing Error: no element found Location: moz-nullprincipal:{b057dcbe-8456-48e5-9a49-5dc61db63791} Line Number 1, Column 1: Also I see that Firebug giving,"Invalid PPR Response" Can anyone advice please?
3
8,926,080
01/19/2012 12:33:46
1,158,444
01/19/2012 12:18:30
1
0
Per-user Tomcat management rights
I'm trying to configure Tomcat so that a separate login is required to deploy certain apps. Let's say I have a `/someapp` context, which I would like `someuser` to deploy remotely. However, `someuser` cannot deploy apps to `/someotherapp`, and conversely, `someotheruser` cannot touch `/someapp`. So far, I tried to add a `Context` to `server.xml` (I know it's discouraged) for the app, containing a memory realm that has its own user list: <Context path="/someapp" docbase="someapp"> <Realm className="org.apache.catalina.realm.MemoryRealm" pathname="conf/realm.someapp.xml" /> </Context> The file `realm.someapp.xml` simply contains: <tomcat-users> <user username="someuser" password="secret" roles="manager-script"/> </tomcat-users> But now I'm mostly stuck. I'm guessing `someuser` would also have to have access to the manager app in order to deploy, but that would mean that this user would also have management access to other people's apps. I assume I'm doing something fundamentally wrong here, but the docs don't seem to cover this sort of thing explicitly. I guess I could create separate hosts for each app and user, but that seems tedious and unnecessary. Any pointers? Thanks.
tomcat
context
realm
null
null
01/21/2012 19:47:53
off topic
Per-user Tomcat management rights === I'm trying to configure Tomcat so that a separate login is required to deploy certain apps. Let's say I have a `/someapp` context, which I would like `someuser` to deploy remotely. However, `someuser` cannot deploy apps to `/someotherapp`, and conversely, `someotheruser` cannot touch `/someapp`. So far, I tried to add a `Context` to `server.xml` (I know it's discouraged) for the app, containing a memory realm that has its own user list: <Context path="/someapp" docbase="someapp"> <Realm className="org.apache.catalina.realm.MemoryRealm" pathname="conf/realm.someapp.xml" /> </Context> The file `realm.someapp.xml` simply contains: <tomcat-users> <user username="someuser" password="secret" roles="manager-script"/> </tomcat-users> But now I'm mostly stuck. I'm guessing `someuser` would also have to have access to the manager app in order to deploy, but that would mean that this user would also have management access to other people's apps. I assume I'm doing something fundamentally wrong here, but the docs don't seem to cover this sort of thing explicitly. I guess I could create separate hosts for each app and user, but that seems tedious and unnecessary. Any pointers? Thanks.
2
10,126,996
04/12/2012 15:39:33
1,176,783
01/29/2012 18:19:07
26
1
How to re-write this jquery Checkbox code more efficiently
Could you look at my jsFiddle here: `http://jsfiddle.net/justmelat/MxpDY/` This is a watered down version that mimics the **critical points** of the actual production app. Thanks to help from this board, I have this jquery checkbox function working the way I need it to, but **is there there is a more efficient way to write this code**?. I would like to optimize the code, while keeping it adjustable for future clients. Thank you in advance.
jquery
null
null
null
null
04/12/2012 15:46:29
too localized
How to re-write this jquery Checkbox code more efficiently === Could you look at my jsFiddle here: `http://jsfiddle.net/justmelat/MxpDY/` This is a watered down version that mimics the **critical points** of the actual production app. Thanks to help from this board, I have this jquery checkbox function working the way I need it to, but **is there there is a more efficient way to write this code**?. I would like to optimize the code, while keeping it adjustable for future clients. Thank you in advance.
3
6,060,530
05/19/2011 14:49:40
442,794
09/08/2010 20:11:49
101
5
regular expressions, modrewrite php apache
is it possible to mask this: www.site.com/latest_news/10518271191304876236 to this www.site.com/latest_news/ but i still need access in PHP to '10518271191304876236' this part as its used as an ID. many thanks
php
apache
null
null
null
null
open
regular expressions, modrewrite php apache === is it possible to mask this: www.site.com/latest_news/10518271191304876236 to this www.site.com/latest_news/ but i still need access in PHP to '10518271191304876236' this part as its used as an ID. many thanks
0
10,690,833
05/21/2012 18:46:45
850,234
07/18/2011 14:45:40
161
4
How to get server time and update every second?
I am making ajax request to a particular server and getting the response also. I am doing cross domain request so using jsonp. Is there a way to get the server time to which i am making the request. Will it be better to write `php script` or doing just ajax request is good. Suppose if i make the following request : $.ajax({ dataType: 'jsonp', data: 'jsonp=date', jsonp: 'jsonp_callback', url: 'http://www.google.com', success: function (data) { } }); How can i get the server time from this request? Please help if any suggestion. Also after getting the time if i use `setInterval` method to update time every second will it be a costly operation or better to make the same ajax request after a particular time to update time. I have real time data to update with the time.
php
javascript
jquery
ajax
date
null
open
How to get server time and update every second? === I am making ajax request to a particular server and getting the response also. I am doing cross domain request so using jsonp. Is there a way to get the server time to which i am making the request. Will it be better to write `php script` or doing just ajax request is good. Suppose if i make the following request : $.ajax({ dataType: 'jsonp', data: 'jsonp=date', jsonp: 'jsonp_callback', url: 'http://www.google.com', success: function (data) { } }); How can i get the server time from this request? Please help if any suggestion. Also after getting the time if i use `setInterval` method to update time every second will it be a costly operation or better to make the same ajax request after a particular time to update time. I have real time data to update with the time.
0
2,979,021
06/05/2010 03:29:44
239,036
12/27/2009 02:32:36
28
3
What's better, C# or java?
Due to my future course in Computer Science, I'm now going to start learning Java. I've been teaching myself C# and some C++ up until now, so I'm gonna switch to Java. Just trying to think about what that'll involve, and any suggestions for sites that talk about the various comparisons between C# and Java for someone moving to Java? Much of the fundamental logical operations and the class/object system work in the same way, and without the need for pointers or the need for more memory management, like in C++, which is great. The comparisons between the framework are the most important I think. Also reckoning on switching to a Mac and running Java that way. This from Wikipedia: -------------------------- "Both C# and Java are designed from the ground up as object oriented languages using dynamic dispatch, with syntax similar to C++ (C++ in turn derives from C). Neither language is a superset of C or C++, however. Both mainly use garbage collection as a means of reclaiming memory resources, rather than explicit deallocation of memory (though C# requires explicit deallocation for graphical, GDI+ objects, in which case it uses the IDisposable interface). Both include thread synchronization mechanisms as part of their language syntax."
c#
java
null
null
null
06/05/2010 03:37:20
not constructive
What's better, C# or java? === Due to my future course in Computer Science, I'm now going to start learning Java. I've been teaching myself C# and some C++ up until now, so I'm gonna switch to Java. Just trying to think about what that'll involve, and any suggestions for sites that talk about the various comparisons between C# and Java for someone moving to Java? Much of the fundamental logical operations and the class/object system work in the same way, and without the need for pointers or the need for more memory management, like in C++, which is great. The comparisons between the framework are the most important I think. Also reckoning on switching to a Mac and running Java that way. This from Wikipedia: -------------------------- "Both C# and Java are designed from the ground up as object oriented languages using dynamic dispatch, with syntax similar to C++ (C++ in turn derives from C). Neither language is a superset of C or C++, however. Both mainly use garbage collection as a means of reclaiming memory resources, rather than explicit deallocation of memory (though C# requires explicit deallocation for graphical, GDI+ objects, in which case it uses the IDisposable interface). Both include thread synchronization mechanisms as part of their language syntax."
4
4,339,467
12/02/2010 20:21:37
117,278
06/04/2009 11:34:26
130
9
PHP include path error
I keep getting an error when I try to include simpletest in my include_path: <? set_include_path(get_include_path() . PATH_SEPARATOR . realpath(basename(dirname(__FILE__)) . '/../../')); include 'simpletest/autorun.php'; returns: .:/usr/lib/php:/Users/kristiannissen/Documents/php Warning: require_once(/Users/kristiannissen/Documents/php/simpletest/arguments.php): failed to open stream: No such file or directory in /Users/kristiannissen/Documents/php/simpletest/reporter.php on line 13 Fatal error: require_once(): Failed opening required '/Users/kristiannissen/Documents/php/simpletest/arguments.php' (include_path='.:/usr/lib/php:/Users/kristiannissen/Documents/php') in /Users/kristiannissen/Documents/php/simpletest/reporter.php on line 13
php
null
null
null
null
null
open
PHP include path error === I keep getting an error when I try to include simpletest in my include_path: <? set_include_path(get_include_path() . PATH_SEPARATOR . realpath(basename(dirname(__FILE__)) . '/../../')); include 'simpletest/autorun.php'; returns: .:/usr/lib/php:/Users/kristiannissen/Documents/php Warning: require_once(/Users/kristiannissen/Documents/php/simpletest/arguments.php): failed to open stream: No such file or directory in /Users/kristiannissen/Documents/php/simpletest/reporter.php on line 13 Fatal error: require_once(): Failed opening required '/Users/kristiannissen/Documents/php/simpletest/arguments.php' (include_path='.:/usr/lib/php:/Users/kristiannissen/Documents/php') in /Users/kristiannissen/Documents/php/simpletest/reporter.php on line 13
0
4,130,625
11/09/2010 04:53:53
127,797
06/23/2009 19:13:46
23
0
Why does marking a Java variable volatile make things less synchronized?
So I just learned about the volatile keyword while writing some examples for a section that I am TAing tomorrow. I wrote a quick program to demonstrate that the ++ and -- operations are not atomic. public class Q3 { private static int count = 0; private static class Worker1 implements Runnable{ public void run(){ for(int i = 0; i < 10000; i++) count++; //Inner class maintains an implicit reference to its parent } } private static class Worker2 implements Runnable{ public void run(){ for(int i = 0; i < 10000; i++) count--; //Inner class maintains an implicit reference to its parent } } public static void main(String[] args) throws InterruptedException { while(true){ Thread T1 = new Thread(new Worker1()); Thread T2 = new Thread(new Worker2()); T1.start(); T2.start(); T1.join(); T2.join(); System.out.println(count); count = 0; Thread.sleep(500); } } } As expected the output of this program is generally along the lines of: -1521 -39 0 0 0 0 0 0 However, when I change: private static int count = 0; to private static volatile int count = 0; my output changes to: 0 3077 1 -3365 -1 -2 2144 3 0 -1 1 -2 6 1 1 I've read http://stackoverflow.com/questions/3488703/when-exactly-do-you-use-the-volatile-keyword-in-java so I feel like I've got a basic understanding of what the keyword does (maintain synchronization across cached copies of a variable in different threads but is not read-update-write safe). So my question is, why does adding the keyword make the code run worse, where worse is defined as further from the desired normal output of all 0's?
java
concurrency
synchronization
thread-safety
volatile
null
open
Why does marking a Java variable volatile make things less synchronized? === So I just learned about the volatile keyword while writing some examples for a section that I am TAing tomorrow. I wrote a quick program to demonstrate that the ++ and -- operations are not atomic. public class Q3 { private static int count = 0; private static class Worker1 implements Runnable{ public void run(){ for(int i = 0; i < 10000; i++) count++; //Inner class maintains an implicit reference to its parent } } private static class Worker2 implements Runnable{ public void run(){ for(int i = 0; i < 10000; i++) count--; //Inner class maintains an implicit reference to its parent } } public static void main(String[] args) throws InterruptedException { while(true){ Thread T1 = new Thread(new Worker1()); Thread T2 = new Thread(new Worker2()); T1.start(); T2.start(); T1.join(); T2.join(); System.out.println(count); count = 0; Thread.sleep(500); } } } As expected the output of this program is generally along the lines of: -1521 -39 0 0 0 0 0 0 However, when I change: private static int count = 0; to private static volatile int count = 0; my output changes to: 0 3077 1 -3365 -1 -2 2144 3 0 -1 1 -2 6 1 1 I've read http://stackoverflow.com/questions/3488703/when-exactly-do-you-use-the-volatile-keyword-in-java so I feel like I've got a basic understanding of what the keyword does (maintain synchronization across cached copies of a variable in different threads but is not read-update-write safe). So my question is, why does adding the keyword make the code run worse, where worse is defined as further from the desired normal output of all 0's?
0
8,067,861
11/09/2011 16:07:05
937,053
09/09/2011 15:15:27
1
0
Library/Tool for managing shared mmaped files
Disclaimer: This is probably a research question as I cannot find what I am looking for and it is rather specific. Problem: I have a custom search application that needs to read between 100K and 10M files that are between 0.01MB to about 10.0MB each. Each file contains one array that could be directly loaded as an array via mmap. I am looking for a solution to prefetch files into RAM before they are needed and if the system memory is full, eject ones that were already processed. I know this sounds alot like a combination of OS memory management and something like memcached. What I am actually looking for is something like memcached that doesn't return strings or values for a key, but rather the address for the start of a chosen array. In addition, (this is a different topic) I would like to be able to have the shared memory managed such that the distance between the CPU core and the RAM is the shortest on NUMA machines. My question is: "does a tool/library like this already exist?"
c
linux
shared-memory
null
null
null
open
Library/Tool for managing shared mmaped files === Disclaimer: This is probably a research question as I cannot find what I am looking for and it is rather specific. Problem: I have a custom search application that needs to read between 100K and 10M files that are between 0.01MB to about 10.0MB each. Each file contains one array that could be directly loaded as an array via mmap. I am looking for a solution to prefetch files into RAM before they are needed and if the system memory is full, eject ones that were already processed. I know this sounds alot like a combination of OS memory management and something like memcached. What I am actually looking for is something like memcached that doesn't return strings or values for a key, but rather the address for the start of a chosen array. In addition, (this is a different topic) I would like to be able to have the shared memory managed such that the distance between the CPU core and the RAM is the shortest on NUMA machines. My question is: "does a tool/library like this already exist?"
0
7,005,617
08/10/2011 03:38:41
887,126
08/10/2011 03:38:41
1
0
What's the most flexible IDE platform ? (easy to manipulate and modify)
I aim to develop an IDE with very specific features (meaning, developing a plug-in for Eclipse or Netbeans won't do the job). My question is which IDE is easier to manipulate (Eclipse or Netbeans,tell me if there are others flexible IDEs) I have seen Eclipse modified version like Adobe Flash Builder and I'm not sure how difficult the task is to develop such an IDE, Especially after looking to the Eclipse modular architecture i feel a bit discouraged on how to start modifying the core plug-ins. I'm not sure if IDEs like Aptana or JetBrains Collection (PHPStorm, WebStorm, RubyMine, PyCharm ...) are based on open source projects,if anyone has some informations please let me know . Finally, Would it be easier if i start the IDE developing from scratch ?or i should go on modifying existing projects ? Thanks in advance
eclipse
netbeans
ide
aptana
jetbrains
09/02/2011 14:37:41
not constructive
What's the most flexible IDE platform ? (easy to manipulate and modify) === I aim to develop an IDE with very specific features (meaning, developing a plug-in for Eclipse or Netbeans won't do the job). My question is which IDE is easier to manipulate (Eclipse or Netbeans,tell me if there are others flexible IDEs) I have seen Eclipse modified version like Adobe Flash Builder and I'm not sure how difficult the task is to develop such an IDE, Especially after looking to the Eclipse modular architecture i feel a bit discouraged on how to start modifying the core plug-ins. I'm not sure if IDEs like Aptana or JetBrains Collection (PHPStorm, WebStorm, RubyMine, PyCharm ...) are based on open source projects,if anyone has some informations please let me know . Finally, Would it be easier if i start the IDE developing from scratch ?or i should go on modifying existing projects ? Thanks in advance
4
8,306,551
11/29/2011 06:00:36
1,064,913
11/25/2011 02:52:04
22
0
Installing Javac on Mac OS X 10.6.8
I want to install Javac on my mac but I can't find a link anywhere. Is it available for mac?
java
osx
null
null
null
11/29/2011 06:36:12
not a real question
Installing Javac on Mac OS X 10.6.8 === I want to install Javac on my mac but I can't find a link anywhere. Is it available for mac?
1
9,634,440
03/09/2012 12:58:14
1,235,562
02/27/2012 12:19:12
1
0
Umbraco v5, MVC
The new Umbraco version 5 MVC CMS, is out, but has no samples, tutorials, documentation, how to get started, I am absolutely new to umbraco, but have worked with mvc, my question is where do i find sample applications, tutorials to get started. 1) sample projects<br/> 2) tutorial resources
c#
.net
umbraco
umbraco-blog
null
03/09/2012 17:31:45
not constructive
Umbraco v5, MVC === The new Umbraco version 5 MVC CMS, is out, but has no samples, tutorials, documentation, how to get started, I am absolutely new to umbraco, but have worked with mvc, my question is where do i find sample applications, tutorials to get started. 1) sample projects<br/> 2) tutorial resources
4
8,947,083
01/20/2012 19:52:30
74,817
03/06/2009 17:58:49
558
14
GCHelper raising exception
I am writing a program (called [Enchanting][1], to let kids program LEGO Mindstorms NXT robots more easily) that has a front-end (based on [Scratch][2], and written in Squeak Smalltalk) and a back-end (written in Java, using the [LeJOS NXJ][3] framework). Users drag and drop tiles to create code; it is converted to a java source file and then compiled. I have included the 32-bit Apache Harmony JDK, because the [LeJOS framework requires a 32-bit JDK][4], and because I could clearly redistribute it despite LeJOS offering a re-implementation of Java on an embedded computer. Things work fine under Windows XP, and even under Windows 7 Starter, both of which are 32-bit OSes. On Windows 7 (non-Starter, 64-bit), the backend fails. I've finally determined that it is Harmony. Here is the simplest command that produces the failure, `java -version`, and the output thereof (with the locale set to Greek -- but don't worry, almost all of the output is English): Microsoft Windows [Έκδοση 6.1.7600] Πνευματικά δικαιώματα (c) 2009 Microsoft Corporation. Με επιφύλαξη κάθε νόμιμου δικαιώματος. C:\Users\USERNAME>cd "\Program Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin" C:\Program Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin>java -version Exception raised while initializing helper class org/apache/harmony/drlvm/gc_gen/GCHelper This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Signal reported: ABORT Registers info is absent Command line: java -version Working directory: C:\Program Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin Environment variables: =::=::\ =C:=C:\Program Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\USERNAME\AppData\Roaming CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=COMPUTERNAME ComSpec=C:\Windows\system32\cmd.exe FP_NO_HOST_CHECK=NO HOMEDRIVE=C: HOMEPATH=\Users\USERNAME LOCALAPPDATA=C:\Users\USERNAME\AppData\Local LOGONSERVER=\\COMPUTERNAME NUMBER_OF_PROCESSORS=2 NXJ_HOME=C:\Program Files\leJOS NXJ OS=Windows_NT Path=C:\Program Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin\default;C:\Prog ram Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin\;C:\Program Files\ImageMagi ck-6.7.4-Q16;C:\Program Files\leJOS NXJ\bin;C:\Program Files\PC Connectivity Sol ution\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\sy stem32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell \v1.0\;C:\Program Files\Windows Live\Shared;C:\Program Files\QuickTime\QTSystem\ ;C:\Program Files\Pinnacle\Shared Files\;C:\Program Files\Pinnacle\Shared Files\ Filter\;C:\VXIPNP\WinNT\Bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 3, GenuineIntel PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0403 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files PROMPT=$P$G PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ PUBLIC=C:\Users\Public QTJAVA=C:\Program Files\Java\jre6\lib\ext\QTJava.zip SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Users\2FD9~1\AppData\Local\Temp TMP=C:\Users\2FD9~1\AppData\Local\Temp USERDOMAIN=COMPUTERNAME USERNAME=USERNAME USERPROFILE=C:\Users\USERNAME VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\ VXIPNPPATH=C:\VXIPNP\ windir=C:\Windows Loaded modules: c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\java.exe: 0x00400000:0x0040d000 c:\windows\system32\ntdll.dll: 0x77d50000:0x77e8c000 c:\windows\system32\kernel32.dll: 0x76c80000:0x76d54000 c:\windows\system32\kernelbase.dll: 0x76100000:0x7614a000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\hyprt.dll: 0x01d80000:0x01d97000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\hythr.dll: 0x01db0000:0x01e08000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\msvcr71.dll: 0x01f10000:0x01f66000 c:\windows\system32\ws2_32.dll: 0x77ee0000:0x77f15000 c:\windows\system32\msvcrt.dll: 0x77c00000:0x77cac000 c:\windows\system32\rpcrt4.dll: 0x76580000:0x76621000 c:\windows\system32\nsi.dll: 0x76570000:0x76576000 c:\windows\system32\advapi32.dll: 0x76e80000:0x76f20000 c:\windows\system32\sechost.dll: 0x77ec0000:0x77ed9000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\harmonyvm.dl l: 0x009a0000:0x00d27000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\icuuc34.dll: 0x01580000:0x01648000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\icudt34.dll: 0x01f70000:0x027e0000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\ch.dll: 0x00d30000:0x00fd0000 c:\windows\system32\user32.dll: 0x76a80000:0x76b49000 c:\windows\system32\gdi32.dll: 0x76e30000:0x76e7e000 c:\windows\system32\lpk.dll: 0x76c70000:0x76c7a000 c:\windows\system32\usp10.dll: 0x77cb0000:0x77d4d000 c:\windows\system32\dbghelp.dll: 0x6ec60000:0x6ed4b000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\hyzlib.dll: 0x01e10000:0x01e22000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\msvcp71.dll: 0x01e90000:0x01f0b000 c:\windows\system32\psapi.dll: 0x77eb0000:0x77eb5000 c:\windows\system32\userenv.dll: 0x75500000:0x75517000 c:\windows\system32\profapi.dll: 0x75ee0000:0x75eeb000 c:\windows\system32\imm32.dll: 0x77e90000:0x77eaf000 c:\windows\system32\msctf.dll: 0x76d60000:0x76e2c000 c:\windows\temp\logishrd\lvprcinj01.dll: 0x00200000:0x0021b000 c:\windows\system32\sspicli.dll: 0x75df0000:0x75e0b000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\em.dll: 0x003c0000:0x003e4000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\jitrino.dll: 0x01810000:0x01c93000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\gc_gen_uncom p.dll: 0x00410000:0x0044d000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\hynio.dll: 0x001d0000:0x001d6000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\vmi.dll: 0x003f0000:0x003f6000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\hyluni.dll: 0x00450000:0x00473000 c:\windows\system32\iphlpapi.dll: 0x73f20000:0x73f3c000 c:\windows\system32\winnsi.dll: 0x73f10000:0x73f17000 c:\windows\system32\mswsock.dll: 0x75920000:0x7595c000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\hyarchive.dll: 0x00480000:0x0048c000 No stack trace due to registers info absence C:\Program Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin> When I run that same command on Windows 7 starter, java spits out a version number like it should, and everything is happy. Any thoughts on what I can do to address this, or what the error message means? Thanks! [1]: http://enchanting.robotclub.ab.ca/ [2]: http://scratch.mit.edu/ [3]: http://lejos.sourceforge.net/ [4]: http://lejos.sourceforge.net/forum/viewtopic.php?t=2395#p11636
java
null
null
null
null
null
open
GCHelper raising exception === I am writing a program (called [Enchanting][1], to let kids program LEGO Mindstorms NXT robots more easily) that has a front-end (based on [Scratch][2], and written in Squeak Smalltalk) and a back-end (written in Java, using the [LeJOS NXJ][3] framework). Users drag and drop tiles to create code; it is converted to a java source file and then compiled. I have included the 32-bit Apache Harmony JDK, because the [LeJOS framework requires a 32-bit JDK][4], and because I could clearly redistribute it despite LeJOS offering a re-implementation of Java on an embedded computer. Things work fine under Windows XP, and even under Windows 7 Starter, both of which are 32-bit OSes. On Windows 7 (non-Starter, 64-bit), the backend fails. I've finally determined that it is Harmony. Here is the simplest command that produces the failure, `java -version`, and the output thereof (with the locale set to Greek -- but don't worry, almost all of the output is English): Microsoft Windows [Έκδοση 6.1.7600] Πνευματικά δικαιώματα (c) 2009 Microsoft Corporation. Με επιφύλαξη κάθε νόμιμου δικαιώματος. C:\Users\USERNAME>cd "\Program Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin" C:\Program Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin>java -version Exception raised while initializing helper class org/apache/harmony/drlvm/gc_gen/GCHelper This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Signal reported: ABORT Registers info is absent Command line: java -version Working directory: C:\Program Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin Environment variables: =::=::\ =C:=C:\Program Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin ALLUSERSPROFILE=C:\ProgramData APPDATA=C:\Users\USERNAME\AppData\Roaming CLASSPATH=.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip CommonProgramFiles=C:\Program Files\Common Files COMPUTERNAME=COMPUTERNAME ComSpec=C:\Windows\system32\cmd.exe FP_NO_HOST_CHECK=NO HOMEDRIVE=C: HOMEPATH=\Users\USERNAME LOCALAPPDATA=C:\Users\USERNAME\AppData\Local LOGONSERVER=\\COMPUTERNAME NUMBER_OF_PROCESSORS=2 NXJ_HOME=C:\Program Files\leJOS NXJ OS=Windows_NT Path=C:\Program Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin\default;C:\Prog ram Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin\;C:\Program Files\ImageMagi ck-6.7.4-Q16;C:\Program Files\leJOS NXJ\bin;C:\Program Files\PC Connectivity Sol ution\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\sy stem32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell \v1.0\;C:\Program Files\Windows Live\Shared;C:\Program Files\QuickTime\QTSystem\ ;C:\Program Files\Pinnacle\Shared Files\;C:\Program Files\Pinnacle\Shared Files\ Filter\;C:\VXIPNP\WinNT\Bin PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 3, GenuineIntel PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0403 ProgramData=C:\ProgramData ProgramFiles=C:\Program Files PROMPT=$P$G PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ PUBLIC=C:\Users\Public QTJAVA=C:\Program Files\Java\jre6\lib\ext\QTJava.zip SESSIONNAME=Console SystemDrive=C: SystemRoot=C:\Windows TEMP=C:\Users\2FD9~1\AppData\Local\Temp TMP=C:\Users\2FD9~1\AppData\Local\Temp USERDOMAIN=COMPUTERNAME USERNAME=USERNAME USERPROFILE=C:\Users\USERNAME VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\ VXIPNPPATH=C:\VXIPNP\ windir=C:\Windows Loaded modules: c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\java.exe: 0x00400000:0x0040d000 c:\windows\system32\ntdll.dll: 0x77d50000:0x77e8c000 c:\windows\system32\kernel32.dll: 0x76c80000:0x76d54000 c:\windows\system32\kernelbase.dll: 0x76100000:0x7614a000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\hyprt.dll: 0x01d80000:0x01d97000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\hythr.dll: 0x01db0000:0x01e08000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\msvcr71.dll: 0x01f10000:0x01f66000 c:\windows\system32\ws2_32.dll: 0x77ee0000:0x77f15000 c:\windows\system32\msvcrt.dll: 0x77c00000:0x77cac000 c:\windows\system32\rpcrt4.dll: 0x76580000:0x76621000 c:\windows\system32\nsi.dll: 0x76570000:0x76576000 c:\windows\system32\advapi32.dll: 0x76e80000:0x76f20000 c:\windows\system32\sechost.dll: 0x77ec0000:0x77ed9000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\harmonyvm.dl l: 0x009a0000:0x00d27000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\icuuc34.dll: 0x01580000:0x01648000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\icudt34.dll: 0x01f70000:0x027e0000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\ch.dll: 0x00d30000:0x00fd0000 c:\windows\system32\user32.dll: 0x76a80000:0x76b49000 c:\windows\system32\gdi32.dll: 0x76e30000:0x76e7e000 c:\windows\system32\lpk.dll: 0x76c70000:0x76c7a000 c:\windows\system32\usp10.dll: 0x77cb0000:0x77d4d000 c:\windows\system32\dbghelp.dll: 0x6ec60000:0x6ed4b000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\hyzlib.dll: 0x01e10000:0x01e22000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\msvcp71.dll: 0x01e90000:0x01f0b000 c:\windows\system32\psapi.dll: 0x77eb0000:0x77eb5000 c:\windows\system32\userenv.dll: 0x75500000:0x75517000 c:\windows\system32\profapi.dll: 0x75ee0000:0x75eeb000 c:\windows\system32\imm32.dll: 0x77e90000:0x77eaf000 c:\windows\system32\msctf.dll: 0x76d60000:0x76e2c000 c:\windows\temp\logishrd\lvprcinj01.dll: 0x00200000:0x0021b000 c:\windows\system32\sspicli.dll: 0x75df0000:0x75e0b000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\em.dll: 0x003c0000:0x003e4000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\jitrino.dll: 0x01810000:0x01c93000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\gc_gen_uncom p.dll: 0x00410000:0x0044d000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\hynio.dll: 0x001d0000:0x001d6000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\default\vmi.dll: 0x003f0000:0x003f6000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\hyluni.dll: 0x00450000:0x00473000 c:\windows\system32\iphlpapi.dll: 0x73f20000:0x73f3c000 c:\windows\system32\winnsi.dll: 0x73f10000:0x73f17000 c:\windows\system32\mswsock.dll: 0x75920000:0x7595c000 c:\program files\enchanting\thirdparty\harmony_jdk6\jre\bin\hyarchive.dll: 0x00480000:0x0048c000 No stack trace due to registers info absence C:\Program Files\Enchanting\ThirdParty\harmony_jdk6\jre\bin> When I run that same command on Windows 7 starter, java spits out a version number like it should, and everything is happy. Any thoughts on what I can do to address this, or what the error message means? Thanks! [1]: http://enchanting.robotclub.ab.ca/ [2]: http://scratch.mit.edu/ [3]: http://lejos.sourceforge.net/ [4]: http://lejos.sourceforge.net/forum/viewtopic.php?t=2395#p11636
0
7,131,282
08/20/2011 10:46:42
893,197
08/13/2011 15:46:13
6
0
develop image to text converstion application for mobile os
I was thinking to develop an image to text conversion application for android. Im looking if there is any existing api written in java or c/c++. Can anyone suggest me about it. Thanks in advance
java
android
c++
c
api
11/13/2011 11:35:28
not a real question
develop image to text converstion application for mobile os === I was thinking to develop an image to text conversion application for android. Im looking if there is any existing api written in java or c/c++. Can anyone suggest me about it. Thanks in advance
1
1,318,543
08/23/2009 13:27:07
10,429
09/15/2008 23:05:05
1,044
39
Should an Event that has no arguments define its own custom EventArgs or simply use System.EventArgs instead?
I have an event that is currently defined with no event arguments. That is, the EventArgs it sends is EventArgs.Empty. In this case, it is simplest to declare my Event handler as: EventHandler<object, System.EventArgs> MyCustomEvent; I do not plan on adding any event arguments to this event, but it is possible that any code could need to change in the future. Therefore, I am leaning towards having all my events always create an empty event args type that inheretis from `System.EventArgs`, even if there are no event args currently needed. Something like this: public class MyCustomEventArgs : EventArgs { } And then my event definition becomes the following: EventHandler<object, MyCustomEventArgs> MyCustomEvent; So my question is this: is it better to define my own `MyCustomEventArgs`, even if it does not add anything beyond inheriting from `System.EventArgs`, so that event arguments could be added in the future more easily? Or is it better to explicitly define my event as returning `System.EventArgs`, so that it is clearer to the user that there are no extra event args? I am leaning towards creating custom event arguments for all my events, even if the event arguments are empty. But I was wondering if others thought that making it clearer to the user that the event arguments are simply the default, would be better? Much thanks in advance, Mike
c#
events
eventargs
null
null
null
open
Should an Event that has no arguments define its own custom EventArgs or simply use System.EventArgs instead? === I have an event that is currently defined with no event arguments. That is, the EventArgs it sends is EventArgs.Empty. In this case, it is simplest to declare my Event handler as: EventHandler<object, System.EventArgs> MyCustomEvent; I do not plan on adding any event arguments to this event, but it is possible that any code could need to change in the future. Therefore, I am leaning towards having all my events always create an empty event args type that inheretis from `System.EventArgs`, even if there are no event args currently needed. Something like this: public class MyCustomEventArgs : EventArgs { } And then my event definition becomes the following: EventHandler<object, MyCustomEventArgs> MyCustomEvent; So my question is this: is it better to define my own `MyCustomEventArgs`, even if it does not add anything beyond inheriting from `System.EventArgs`, so that event arguments could be added in the future more easily? Or is it better to explicitly define my event as returning `System.EventArgs`, so that it is clearer to the user that there are no extra event args? I am leaning towards creating custom event arguments for all my events, even if the event arguments are empty. But I was wondering if others thought that making it clearer to the user that the event arguments are simply the default, would be better? Much thanks in advance, Mike
0
6,052,035
05/18/2011 23:07:40
501,173
11/08/2010 21:18:45
677
34
icon and text inline css issue
Where have a i gone wrong here ul.bullet { list-style-image:url('../images/bullet-blue-icon.png');vertical-align:middle;line-height:16px; } ul.bullet li { line-height:16px;font-size:14px;} The image is 16px x 16px Should dispplay absolutley inline with the li text so like this [ image ] text here But the image is off cock, ![enter image description here][1] [1]: http://i.stack.imgur.com/l3E2X.png
css
null
null
null
null
null
open
icon and text inline css issue === Where have a i gone wrong here ul.bullet { list-style-image:url('../images/bullet-blue-icon.png');vertical-align:middle;line-height:16px; } ul.bullet li { line-height:16px;font-size:14px;} The image is 16px x 16px Should dispplay absolutley inline with the li text so like this [ image ] text here But the image is off cock, ![enter image description here][1] [1]: http://i.stack.imgur.com/l3E2X.png
0