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
9,792,204
03/20/2012 17:46:49
1,223,958
02/21/2012 17:24:37
29
0
Why Order No. unable to fetch any result in magento?
I am using Magento's event Observer model to catch Order No. at an event sales_order_place_after i.e. when customer press place order tab. Now I am passing that order No. to query for fetching some data. I want to use external connection only n not Magento's Zend connection to access Mysql. See my below code-: class Sample_Event_Model_Observer { public function Mytestmethod($observer) { $event = $observer->getEvent(); $incrementid = $observer->getEvent()->getOrder()->getIncrementId(); global $con; $db_name = "magento"; $con = mysql_connect("localhost", "magento", "password"); If (!$con) { die('Could not connect: ' . mysql_error()); mysql_close($con); } $seldb = mysql_select_db($db_name, $con); If ($seldb == $db_name) { $query = "SELECT sfop.`po_number`,sfo.`created_at`,sfo.`customer_firstname` , sfo.`customer_lastname` , sfo.`customer_email` , sfo.`shipping_description` , sfoa. firstname, sfoa. lastname, sfoa. company, sfoa. street, sfoa. city, sfoa. region, sfoa.country_id, sfoa. postcode, sfoa. telephone, sfoa1. firstname,sfoa1. lastname, sfoa1. company, sfoa1. street, sfoa1. city, sfoa1. region, sfoa1.country_id, sfoa1. postcode, sfoa1. telephone, cg. customer_group_code, cg1. customer_group_code, cev. value, cev1. value, cev2. value, cev3. value, sfo.`increment_id` FROM `sales_flat_order_payment` sfop, `sales_flat_order` sfo, `sales_flat_order_address` sfoa, `sales_flat_order_address` sfoa1, `customer_entity` ce, `customer_entity` ce1, `customer_group` cg, `customer_group` cg1, `customer_entity_varchar` cev, `customer_entity_varchar` cev1, `customer_entity_varchar` cev2, `customer_entity_varchar` cev3 WHERE sfo.`entity_id` = sfop.`parent_id` AND sfo.`shipping_address_id` = sfoa.`entity_id` AND sfo.`billing_address_id` = sfoa1.`entity_id` AND sfo. ge_dealer_id = ce. entity_id AND ce. group_id = cg. customer_group_id AND sfo. ge_customer_id = ce1. entity_id AND ce1. group_id = cg1. customer_group_id AND sfo. ge_dealer_id = cev.entity_id AND cev. attribute_id = 5 AND sfo. ge_dealer_id = cev1.entity_id AND cev1. attribute_id = 7 AND sfo. ge_customer_id = cev2.entity_id AND cev2. attribute_id = 5 AND sfo. ge_customer_id = cev3.entity_id AND cev3. attribute_id = 7 AND sfo.`increment_id` =".".$incrementid; $result = mysql_query($query); if (!$result) { $str='Could not run query: ' . mysql_error(); } else { while($row = mysql_fetch_array($result)) { $str = "'". $row["po_number"] . "',". "'" . $row["created_at"] . "'," . "'" . $row["customer_firstname"] . "',". "'" . $row["customer_lastname"] . "'," . "'" . $row["customer_email"] . "'," . "'" . $row["shipping_description"]. "'," . "'" . $row["firstname"] . "'," . "'" . $row["lastname"] ."'," . "'" . $row["company"] . "'," . "'" . $row["street"] ."'," ."'" . $row["ship_to_city"] . "'," ."'" . $row["region"] . "'," ."'" . $row["country_id"] ."'," ."'" . $row["postcode"]."'," ."'" . $row["telephone"] . "'," ."'" . $row["firstname"] . "'," ."'" . $row["lastname"] ."'," ."'" . $row["company"]."'," ."'" . $row["street"] . "'," ."'" . $row["city"] ."'," ."'" . $row["region"] . "'," ."'" . $row["country_id"] ."'," ."'" . $row["postcode"] . "'," ."'" . $row["telephone"] . "'," ."'" . $row["customer_group_code"] ."'," ."'" . $row["customer_group_code"]."'," ."'" . $row["value"] . "'," ."'" . $row["value"] ."'," ."'" . $row["value"] . "'," ."'" . $row["value"] ."'," ."'" . $row["increment_id"]; } } } $eventmsg = "Current Event Triggered : <I>" . $event->getName() . "</I>". "<br />"."$incrementid" ."<br />".$str."<br />".$query; echo Mage::getSingleton('checkout/session')->addSuccess($eventmsg); } } ?> And my o/p is-: Current Event Triggered : sales_order_place_after 100000284 SELECT sfop.`po_number`,sfo.`created_at`,sfo.`customer_firstname` , sfo.`customer_lastname` , sfo.`customer_email` , sfo.`shipping_description` , sfoa. firstname, sfoa. lastname, sfoa. company, sfoa. street, sfoa. city, sfoa. region, sfoa.country_id, sfoa. postcode, sfoa. telephone, sfoa1. firstname, sfoa1. lastname, sfoa1. company, sfoa1. street, sfoa1. city, sfoa1. region, sfoa1.country_id, sfoa1. postcode, sfoa1. telephone, cg. customer_group_code, cg1. customer_group_code, cev. value, cev1. value, cev2. value, cev3. value, sfo.`increment_id` FROM `sales_flat_order_payment` sfop, `sales_flat_order` sfo, `sales_flat_order_address` sfoa, `sales_flat_order_address` sfoa1, `customer_entity` ce, `customer_entity` ce1, `customer_group` cg, `customer_group` cg1, `customer_entity_varchar` cev, `customer_entity_varchar` cev1, `customer_entity_varchar` cev2, `customer_entity_varchar` cev3 WHERE sfo.`entity_id` = sfop.`parent_id` AND sfo.`shipping_address_id` = sfoa.`entity_id` AND sfo.`billing_address_id` = sfoa1.`entity_id` AND sfo. ge_dealer_id = ce. entity_id AND ce. group_id = cg. customer_group_id AND sfo. ge_customer_id = ce1. entity_id AND ce1. group_id = cg1. customer_group_id AND sfo. ge_dealer_id = cev.entity_id AND cev. attribute_id = 5 AND sfo. ge_dealer_id = cev1.entity_id AND cev1. attribute_id = 7 AND sfo. ge_customer_id = cev2.entity_id AND cev2. attribute_id = 5 AND sfo. ge_customer_id = cev3.entity_id AND cev3. attribute_id = 7 AND sfo.`increment_id` = 100000284 But I am unable to get value of $str which I need to use in Insert query. incremntid is the order id generated, once customer places order. It's data type is varchar(50). I am unable to fetch result from my query. Plz help me...I guess some problem with incrementid which I am passing in where condition . Also when I echo that query I am getting that no. but don't know why that query don't work... Plz guide me...
php
mysql
magento
fetch
observer-pattern
03/29/2012 20:40:22
too localized
Why Order No. unable to fetch any result in magento? === I am using Magento's event Observer model to catch Order No. at an event sales_order_place_after i.e. when customer press place order tab. Now I am passing that order No. to query for fetching some data. I want to use external connection only n not Magento's Zend connection to access Mysql. See my below code-: class Sample_Event_Model_Observer { public function Mytestmethod($observer) { $event = $observer->getEvent(); $incrementid = $observer->getEvent()->getOrder()->getIncrementId(); global $con; $db_name = "magento"; $con = mysql_connect("localhost", "magento", "password"); If (!$con) { die('Could not connect: ' . mysql_error()); mysql_close($con); } $seldb = mysql_select_db($db_name, $con); If ($seldb == $db_name) { $query = "SELECT sfop.`po_number`,sfo.`created_at`,sfo.`customer_firstname` , sfo.`customer_lastname` , sfo.`customer_email` , sfo.`shipping_description` , sfoa. firstname, sfoa. lastname, sfoa. company, sfoa. street, sfoa. city, sfoa. region, sfoa.country_id, sfoa. postcode, sfoa. telephone, sfoa1. firstname,sfoa1. lastname, sfoa1. company, sfoa1. street, sfoa1. city, sfoa1. region, sfoa1.country_id, sfoa1. postcode, sfoa1. telephone, cg. customer_group_code, cg1. customer_group_code, cev. value, cev1. value, cev2. value, cev3. value, sfo.`increment_id` FROM `sales_flat_order_payment` sfop, `sales_flat_order` sfo, `sales_flat_order_address` sfoa, `sales_flat_order_address` sfoa1, `customer_entity` ce, `customer_entity` ce1, `customer_group` cg, `customer_group` cg1, `customer_entity_varchar` cev, `customer_entity_varchar` cev1, `customer_entity_varchar` cev2, `customer_entity_varchar` cev3 WHERE sfo.`entity_id` = sfop.`parent_id` AND sfo.`shipping_address_id` = sfoa.`entity_id` AND sfo.`billing_address_id` = sfoa1.`entity_id` AND sfo. ge_dealer_id = ce. entity_id AND ce. group_id = cg. customer_group_id AND sfo. ge_customer_id = ce1. entity_id AND ce1. group_id = cg1. customer_group_id AND sfo. ge_dealer_id = cev.entity_id AND cev. attribute_id = 5 AND sfo. ge_dealer_id = cev1.entity_id AND cev1. attribute_id = 7 AND sfo. ge_customer_id = cev2.entity_id AND cev2. attribute_id = 5 AND sfo. ge_customer_id = cev3.entity_id AND cev3. attribute_id = 7 AND sfo.`increment_id` =".".$incrementid; $result = mysql_query($query); if (!$result) { $str='Could not run query: ' . mysql_error(); } else { while($row = mysql_fetch_array($result)) { $str = "'". $row["po_number"] . "',". "'" . $row["created_at"] . "'," . "'" . $row["customer_firstname"] . "',". "'" . $row["customer_lastname"] . "'," . "'" . $row["customer_email"] . "'," . "'" . $row["shipping_description"]. "'," . "'" . $row["firstname"] . "'," . "'" . $row["lastname"] ."'," . "'" . $row["company"] . "'," . "'" . $row["street"] ."'," ."'" . $row["ship_to_city"] . "'," ."'" . $row["region"] . "'," ."'" . $row["country_id"] ."'," ."'" . $row["postcode"]."'," ."'" . $row["telephone"] . "'," ."'" . $row["firstname"] . "'," ."'" . $row["lastname"] ."'," ."'" . $row["company"]."'," ."'" . $row["street"] . "'," ."'" . $row["city"] ."'," ."'" . $row["region"] . "'," ."'" . $row["country_id"] ."'," ."'" . $row["postcode"] . "'," ."'" . $row["telephone"] . "'," ."'" . $row["customer_group_code"] ."'," ."'" . $row["customer_group_code"]."'," ."'" . $row["value"] . "'," ."'" . $row["value"] ."'," ."'" . $row["value"] . "'," ."'" . $row["value"] ."'," ."'" . $row["increment_id"]; } } } $eventmsg = "Current Event Triggered : <I>" . $event->getName() . "</I>". "<br />"."$incrementid" ."<br />".$str."<br />".$query; echo Mage::getSingleton('checkout/session')->addSuccess($eventmsg); } } ?> And my o/p is-: Current Event Triggered : sales_order_place_after 100000284 SELECT sfop.`po_number`,sfo.`created_at`,sfo.`customer_firstname` , sfo.`customer_lastname` , sfo.`customer_email` , sfo.`shipping_description` , sfoa. firstname, sfoa. lastname, sfoa. company, sfoa. street, sfoa. city, sfoa. region, sfoa.country_id, sfoa. postcode, sfoa. telephone, sfoa1. firstname, sfoa1. lastname, sfoa1. company, sfoa1. street, sfoa1. city, sfoa1. region, sfoa1.country_id, sfoa1. postcode, sfoa1. telephone, cg. customer_group_code, cg1. customer_group_code, cev. value, cev1. value, cev2. value, cev3. value, sfo.`increment_id` FROM `sales_flat_order_payment` sfop, `sales_flat_order` sfo, `sales_flat_order_address` sfoa, `sales_flat_order_address` sfoa1, `customer_entity` ce, `customer_entity` ce1, `customer_group` cg, `customer_group` cg1, `customer_entity_varchar` cev, `customer_entity_varchar` cev1, `customer_entity_varchar` cev2, `customer_entity_varchar` cev3 WHERE sfo.`entity_id` = sfop.`parent_id` AND sfo.`shipping_address_id` = sfoa.`entity_id` AND sfo.`billing_address_id` = sfoa1.`entity_id` AND sfo. ge_dealer_id = ce. entity_id AND ce. group_id = cg. customer_group_id AND sfo. ge_customer_id = ce1. entity_id AND ce1. group_id = cg1. customer_group_id AND sfo. ge_dealer_id = cev.entity_id AND cev. attribute_id = 5 AND sfo. ge_dealer_id = cev1.entity_id AND cev1. attribute_id = 7 AND sfo. ge_customer_id = cev2.entity_id AND cev2. attribute_id = 5 AND sfo. ge_customer_id = cev3.entity_id AND cev3. attribute_id = 7 AND sfo.`increment_id` = 100000284 But I am unable to get value of $str which I need to use in Insert query. incremntid is the order id generated, once customer places order. It's data type is varchar(50). I am unable to fetch result from my query. Plz help me...I guess some problem with incrementid which I am passing in where condition . Also when I echo that query I am getting that no. but don't know why that query don't work... Plz guide me...
3
10,282,565
04/23/2012 14:30:52
1,351,569
04/23/2012 14:27:40
1
0
Why aren't assignment operators overloadable in VB.NET?
Why aren't the assignment operators (+=, -=, *=, /=) overloadable in VB.NET?
vb.net
operator-overloading
null
null
null
04/23/2012 22:37:02
not constructive
Why aren't assignment operators overloadable in VB.NET? === Why aren't the assignment operators (+=, -=, *=, /=) overloadable in VB.NET?
4
6,228,111
06/03/2011 14:05:36
326,439
04/26/2010 23:59:10
160
18
Publishing a common workspace setup
I want to set up certain configurations and preferences in IBM RAD (or say eclipse) so that a big team will be able to use the set-up already done. this would reduce the inconsistencies and rework effort in the team. Preferably I want to keep that in subversion. Right now, when created a workspace in my personal desktop and added it to SVN, everytime my team mates check it out obviously the .metadata and other eclipse internal files change based on their input. Is there a standard practice/process to publish a common workspace setting in RAD/Eclipse? Thanks
eclipse
svn
process
rad
null
null
open
Publishing a common workspace setup === I want to set up certain configurations and preferences in IBM RAD (or say eclipse) so that a big team will be able to use the set-up already done. this would reduce the inconsistencies and rework effort in the team. Preferably I want to keep that in subversion. Right now, when created a workspace in my personal desktop and added it to SVN, everytime my team mates check it out obviously the .metadata and other eclipse internal files change based on their input. Is there a standard practice/process to publish a common workspace setting in RAD/Eclipse? Thanks
0
5,380,235
03/21/2011 15:58:14
217,071
11/23/2009 14:41:15
490
14
Is it possible to replace Spring @Scope("request") with JSR-330 @Scope variant?
Or, can I bound a custom implementation of `org.springframework.beans.factory.config.Scope` interface with a specific `@Scope`-annotated annotation? For example, I have customized a new scope type: @javax.inject.Scope @Retention(RUNTIME) @interface Conversation {} class ConversationScope implements Scope { ... } class ConversationScopeConfigurer extends BeanFactoryPostProcessor { beanFactory.registerScope("conversation", new ConversationScope()); } Now I want to use it as, @Component @Conversation class Topic { ... } instead of, @Component @org.springframework.context.annotation.Scope("conversation") class Topic { ... } Is it possible? Is there something like "AnnotationPostProcessor" in spring-context?
java
spring
jsr330
null
null
null
open
Is it possible to replace Spring @Scope("request") with JSR-330 @Scope variant? === Or, can I bound a custom implementation of `org.springframework.beans.factory.config.Scope` interface with a specific `@Scope`-annotated annotation? For example, I have customized a new scope type: @javax.inject.Scope @Retention(RUNTIME) @interface Conversation {} class ConversationScope implements Scope { ... } class ConversationScopeConfigurer extends BeanFactoryPostProcessor { beanFactory.registerScope("conversation", new ConversationScope()); } Now I want to use it as, @Component @Conversation class Topic { ... } instead of, @Component @org.springframework.context.annotation.Scope("conversation") class Topic { ... } Is it possible? Is there something like "AnnotationPostProcessor" in spring-context?
0
7,568,315
09/27/2011 11:25:30
966,727
09/27/2011 09:50:00
1
0
Paypal express checkout shipping calculation in oscommerce
I want to integrate paypal express checkout in oscommerce shop.How does it calculate shipping cost?How can pass a shipping charge based on location?
paypal
null
null
null
null
09/27/2011 13:27:05
not a real question
Paypal express checkout shipping calculation in oscommerce === I want to integrate paypal express checkout in oscommerce shop.How does it calculate shipping cost?How can pass a shipping charge based on location?
1
8,995,238
01/24/2012 22:31:24
1,168,114
01/24/2012 22:26:47
1
0
Solving factorials with large Wilson's theorem
I am trying to calculate a factorial of 100 in c++. In other words, I am trying to calculate 100!.Can Wilson's theorem help me to do this? If so, what would a code look like?
c++
factorial
null
null
null
01/24/2012 22:38:23
not a real question
Solving factorials with large Wilson's theorem === I am trying to calculate a factorial of 100 in c++. In other words, I am trying to calculate 100!.Can Wilson's theorem help me to do this? If so, what would a code look like?
1
6,649,380
07/11/2011 11:25:42
74,314
03/05/2009 16:17:05
13,694
760
algorithm to find places in sorted array
I have a sorted array of keys and value like Array ( [1] => Array ( [value] => 65 ...... ) [0] => Array ( [value] => 65 ) [5] => Array ( [value] => 35 ) [4] => Array ( [value] => 3 ) [2] => Array ( [value] => 0 ) [3] => Array ( [value] => 0 ) ) I search for simple algorithm that run over this array and return array of places like : places['1'] = keys => array(1,0), value => 65 places['2'] = keys => array(5), value => 35 places['3'] = keys => array(4), value => 3 places['2'] = keys => array(2,3), value => 0 so in the first place we have key 1 + 0, and the value is 65 and so on....... I try to loop with `foreach` and add a lot of `if` conditions, I search something simple thanks
php
arrays
place
null
null
null
open
algorithm to find places in sorted array === I have a sorted array of keys and value like Array ( [1] => Array ( [value] => 65 ...... ) [0] => Array ( [value] => 65 ) [5] => Array ( [value] => 35 ) [4] => Array ( [value] => 3 ) [2] => Array ( [value] => 0 ) [3] => Array ( [value] => 0 ) ) I search for simple algorithm that run over this array and return array of places like : places['1'] = keys => array(1,0), value => 65 places['2'] = keys => array(5), value => 35 places['3'] = keys => array(4), value => 3 places['2'] = keys => array(2,3), value => 0 so in the first place we have key 1 + 0, and the value is 65 and so on....... I try to loop with `foreach` and add a lot of `if` conditions, I search something simple thanks
0
6,665,791
07/12/2011 14:27:35
818,000
06/27/2011 19:24:23
51
0
In C# How would I create an unknown number of threads?
I want to do one per processor, but I don't know how many cores the certain computer will have. So I always thought I should use threadpool, but when I asked a question about that the only answer I got was don't use it so I kind of gave up on the threadpool.
c#
multithreading
null
null
null
07/12/2011 15:02:00
not a real question
In C# How would I create an unknown number of threads? === I want to do one per processor, but I don't know how many cores the certain computer will have. So I always thought I should use threadpool, but when I asked a question about that the only answer I got was don't use it so I kind of gave up on the threadpool.
1
1,742,213
11/16/2009 13:31:43
210,317
11/13/2009 09:55:33
25
4
problem with IPv4 protocol...
using IPv4 protocol around 4 billion computers can be connected.(including classA, class B, class C networks). What should be done if the number exceeds beyond 4 billion? what are the consequences of such a situation?
ip
protocol
null
null
null
11/16/2009 13:47:58
off topic
problem with IPv4 protocol... === using IPv4 protocol around 4 billion computers can be connected.(including classA, class B, class C networks). What should be done if the number exceeds beyond 4 billion? what are the consequences of such a situation?
2
9,670,479
03/12/2012 16:01:03
984,260
10/07/2011 15:27:54
85
1
installing english-dictionary in linux
I am using redhat 5.7 linux. For several text applications, I need to look-up synonyms or meanings on web, which I do not prefer. Is there a way to install a dictionary program in linux. I gave quick search to previous SO questions, but could not find a solution. I would be grateful. I also have access to ubuntu, so a solution for that is also fine.
linux
software-tools
null
null
null
03/15/2012 23:01:05
not constructive
installing english-dictionary in linux === I am using redhat 5.7 linux. For several text applications, I need to look-up synonyms or meanings on web, which I do not prefer. Is there a way to install a dictionary program in linux. I gave quick search to previous SO questions, but could not find a solution. I would be grateful. I also have access to ubuntu, so a solution for that is also fine.
4
5,282,902
03/12/2011 13:52:50
656,630
03/12/2011 13:52:50
1
0
Close Facebox to an event
Hi so when someone visits my site i would like to appear the facebox with the message "Click [like-button] to enter or wait 20 seconds" and when the visitor clicks the like button or the 20s are gone,the facebox disappear.Also the close button and click outside the box closing should be removed. This is what i tried. <script type="text/javascript"> var sec = 10 var timer = setInterval(function() { $('#hideMsg span').text(sec--); if (sec == -1) { $('#hideMsg').fadeOut('fast'); clearInterval(timer); } }, 1000); </script> </head> <body> <div id="hideMsg" style="display:none;"> Click <iframe src="http://www.facebook.com/plugins/like.php?href=link&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=trebuchet+ms&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe><br /> to enter or wait <span>10</span> Seconds! </div> <script type="text/javascript"> jQuery.facebox({ div: '#hideMsg' }) </script>
events
facebox
null
null
null
null
open
Close Facebox to an event === Hi so when someone visits my site i would like to appear the facebox with the message "Click [like-button] to enter or wait 20 seconds" and when the visitor clicks the like button or the 20s are gone,the facebox disappear.Also the close button and click outside the box closing should be removed. This is what i tried. <script type="text/javascript"> var sec = 10 var timer = setInterval(function() { $('#hideMsg span').text(sec--); if (sec == -1) { $('#hideMsg').fadeOut('fast'); clearInterval(timer); } }, 1000); </script> </head> <body> <div id="hideMsg" style="display:none;"> Click <iframe src="http://www.facebook.com/plugins/like.php?href=link&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=trebuchet+ms&amp;colorscheme=light&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe><br /> to enter or wait <span>10</span> Seconds! </div> <script type="text/javascript"> jQuery.facebox({ div: '#hideMsg' }) </script>
0
10,047,518
04/06/2012 18:20:31
900,132
08/18/2011 07:51:54
191
12
What is the recommended document structure for front end development?
What is the most coherent directory structure followed by the community for the front end (HTML) development? There are lot of factors to be considered like easy updating and maintenance, ease in back end integration, which would follow MVC pattern. Explanation regarding the same is highly appreciated.
html
mvc
frontend
null
null
04/06/2012 22:14:25
not constructive
What is the recommended document structure for front end development? === What is the most coherent directory structure followed by the community for the front end (HTML) development? There are lot of factors to be considered like easy updating and maintenance, ease in back end integration, which would follow MVC pattern. Explanation regarding the same is highly appreciated.
4
9,747,173
03/17/2012 04:12:33
1,275,286
03/17/2012 03:59:25
1
0
It's belong to array or for loop?
Okay I have problem,I didn't know how to solve this problem, actualy I really new of PHP and confused of this problem,I don't know how to put it in looping, okay first I have 3 data : B max is 24,C max is 32,E max 32.and I want create this loop in PHP<br> B C E<br> 1 1 1 <br> value is 0 <br><br> B C E<br> 1 1 2 <br> value is 1<br><br> B C E<br> 2 1 1 <br> value is 256<br><br> B C E<br> 3 1 1 <br> value is 512<br><br> B C E<br> 4 1 1 <br> value is 768<br><br> B C E<br> 24 1 1 <br> value is 5888
php
algorithm
loops
null
null
03/17/2012 12:00:07
not a real question
It's belong to array or for loop? === Okay I have problem,I didn't know how to solve this problem, actualy I really new of PHP and confused of this problem,I don't know how to put it in looping, okay first I have 3 data : B max is 24,C max is 32,E max 32.and I want create this loop in PHP<br> B C E<br> 1 1 1 <br> value is 0 <br><br> B C E<br> 1 1 2 <br> value is 1<br><br> B C E<br> 2 1 1 <br> value is 256<br><br> B C E<br> 3 1 1 <br> value is 512<br><br> B C E<br> 4 1 1 <br> value is 768<br><br> B C E<br> 24 1 1 <br> value is 5888
1
10,408,196
05/02/2012 05:30:29
1,369,193
05/02/2012 05:05:36
1
0
can't pass parameters to controller from View on MVC3
this is my controller's actionResult [HttpPost] public ActionResult Add(Reservation modelo, string boton) { ViewBag.idClassroom = modelo.idClassroom; ViewBag.star = modelo.start; ViewBag.idRequester = modelo.idRequester; if (boton.Equals("Reservar")) if (_actions != null) _actions.ReserveClassroom(modelo.idClassroom,modelo.start,modelo.idRequester); return RedirectToAction("Index", "Home"); and this is my View @model EvaluacionMVC.Domain.Reservation @{ ViewBag.Title = "Add"; } <h2>Add</h2> <h3>El salon @Model.idClassroom va a ser reservado a las @Model.idReservation horas</h3> @using (Html.BeginForm()) { //<div style="display: none">@Model.start</div> <input name="boton" type="submit" value="Reservar" /> <input name="boton" type="submit" value="Cancelar" /> } but when i press the button Reservar it dont pass the parameters it should like the idClassroom, start date and the idRequester. PS. sorry for my bad english is not my native languaje :s
asp.net-mvc-3
null
null
null
null
null
open
can't pass parameters to controller from View on MVC3 === this is my controller's actionResult [HttpPost] public ActionResult Add(Reservation modelo, string boton) { ViewBag.idClassroom = modelo.idClassroom; ViewBag.star = modelo.start; ViewBag.idRequester = modelo.idRequester; if (boton.Equals("Reservar")) if (_actions != null) _actions.ReserveClassroom(modelo.idClassroom,modelo.start,modelo.idRequester); return RedirectToAction("Index", "Home"); and this is my View @model EvaluacionMVC.Domain.Reservation @{ ViewBag.Title = "Add"; } <h2>Add</h2> <h3>El salon @Model.idClassroom va a ser reservado a las @Model.idReservation horas</h3> @using (Html.BeginForm()) { //<div style="display: none">@Model.start</div> <input name="boton" type="submit" value="Reservar" /> <input name="boton" type="submit" value="Cancelar" /> } but when i press the button Reservar it dont pass the parameters it should like the idClassroom, start date and the idRequester. PS. sorry for my bad english is not my native languaje :s
0
9,596,060
03/07/2012 04:57:58
748,943
05/11/2011 15:02:07
21
4
How to use Spring Roo domain model in a regular web app
I have built a little model using Roo. There are 6 objects in the model that have various relationships - it was neat, it took like 20 minutes! Now that I have it, I want to create Spring MVC project and use the domain model - but I want to keep the web project totally separate from the Roo project (I don't understand Spring MVC to use the scaffolding in Roo yet). So I've created the dependency in the pom.xml of the web project and I can build and deploy the web project using 'mvn tomcat:run'. However, when the web tries to use the Spring Roo objects I get exceptions like this: java.lang.IllegalStateException: Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?) at com.loquatic.clcmops.consignortool.entities.Consignor_Roo_Jpa_ActiveRecord.entityManager_aroundBody0(Consignor_Roo_Jpa_ActiveRecord.aj:19) at com.loquatic.clcmops.consignortool.entities.Consignor_Roo_Jpa_ActiveRecord.ajc$interMethod$com_loquatic_clcmops_consignortool_entities_Consignor_Roo_Jpa_ActiveRecord$com_loquatic_clcmops_consignortool_entities_Consignor$entityManager(Consignor_Roo_Jpa_ActiveRecord.aj:1) at com.loquatic.clcmops.consignortool.entities.Consignor.entityManager(Consignor.java:1) I have done this in a standalone project for a project where I had a class that had a main() method and I had to add a line of code to get the context loaded correctly (this basically: http://stackoverflow.com/questions/3284496/how-to-use-junit-tests-with-spring-roo-problems-with-entitymanager ). This being Spring MVC I sort of assumed it was happening automagically - I am obviously mistaken. So do I need to do something in the web project to get the context loaded for the Roo jar file? Or do I need to change something in the roo jar file project? Do I need annotate a controller with something to make this happy?
spring-roo
null
null
null
null
null
open
How to use Spring Roo domain model in a regular web app === I have built a little model using Roo. There are 6 objects in the model that have various relationships - it was neat, it took like 20 minutes! Now that I have it, I want to create Spring MVC project and use the domain model - but I want to keep the web project totally separate from the Roo project (I don't understand Spring MVC to use the scaffolding in Roo yet). So I've created the dependency in the pom.xml of the web project and I can build and deploy the web project using 'mvn tomcat:run'. However, when the web tries to use the Spring Roo objects I get exceptions like this: java.lang.IllegalStateException: Entity manager has not been injected (is the Spring Aspects JAR configured as an AJC/AJDT aspects library?) at com.loquatic.clcmops.consignortool.entities.Consignor_Roo_Jpa_ActiveRecord.entityManager_aroundBody0(Consignor_Roo_Jpa_ActiveRecord.aj:19) at com.loquatic.clcmops.consignortool.entities.Consignor_Roo_Jpa_ActiveRecord.ajc$interMethod$com_loquatic_clcmops_consignortool_entities_Consignor_Roo_Jpa_ActiveRecord$com_loquatic_clcmops_consignortool_entities_Consignor$entityManager(Consignor_Roo_Jpa_ActiveRecord.aj:1) at com.loquatic.clcmops.consignortool.entities.Consignor.entityManager(Consignor.java:1) I have done this in a standalone project for a project where I had a class that had a main() method and I had to add a line of code to get the context loaded correctly (this basically: http://stackoverflow.com/questions/3284496/how-to-use-junit-tests-with-spring-roo-problems-with-entitymanager ). This being Spring MVC I sort of assumed it was happening automagically - I am obviously mistaken. So do I need to do something in the web project to get the context loaded for the Roo jar file? Or do I need to change something in the roo jar file project? Do I need annotate a controller with something to make this happy?
0
5,455,618
03/28/2011 06:59:29
679,766
02/22/2011 13:38:10
1
1
I have to retrieve data from database table and generate a xml file for this data using java
I have to retrieve data from database table and generate a xml file for this data using java
java
mysql
xml
null
null
03/28/2011 13:51:23
not a real question
I have to retrieve data from database table and generate a xml file for this data using java === I have to retrieve data from database table and generate a xml file for this data using java
1
8,995,204
01/24/2012 22:27:56
751,564
05/13/2011 00:09:18
267
20
Problems with .htaccess
I'm trying my hands at using the .htaccess file to redirect all page requests from localhost/seg to localhost/seg/trunk/public/index.php. So to do this I've added my .htaccess file to the directory located at localhost/seg. Now I'm new to this, and I find all the documentation and all forums very confusing. Here are the problems I'm encountering: -Any code written in `<ifmodule mod_rewrite.c> </ifmodule>` tags are not being executed, but removing the tags creates an internal server error. In fact, I can't even put the line: RewriteEngine On Without it not giving me an internal server error. I have changed all instances of `AllowOverride None` to `AllowOverride All` in my http.conf file on my wamp running locally. I know there is something fundamental that I am doing wrong but I have no idea what it is...
.htaccess
null
null
null
null
01/26/2012 01:00:54
off topic
Problems with .htaccess === I'm trying my hands at using the .htaccess file to redirect all page requests from localhost/seg to localhost/seg/trunk/public/index.php. So to do this I've added my .htaccess file to the directory located at localhost/seg. Now I'm new to this, and I find all the documentation and all forums very confusing. Here are the problems I'm encountering: -Any code written in `<ifmodule mod_rewrite.c> </ifmodule>` tags are not being executed, but removing the tags creates an internal server error. In fact, I can't even put the line: RewriteEngine On Without it not giving me an internal server error. I have changed all instances of `AllowOverride None` to `AllowOverride All` in my http.conf file on my wamp running locally. I know there is something fundamental that I am doing wrong but I have no idea what it is...
2
1,599,800
10/21/2009 09:54:18
91,607
04/16/2009 12:44:26
420
3
Flex 3 ,ASP.NET and WCF
I want to create a RIA app. and because Flash is so popular, I want to write the front end with Flex3, and the back parts using ASP.NET accessing a WPF app. does that sound like a good architecture to you ? are there any benefits including WPF ? can Flex interact nicely with ASP.NET ? or should I go Silverlight ?
asp.net
flex3
.net
null
null
null
open
Flex 3 ,ASP.NET and WCF === I want to create a RIA app. and because Flash is so popular, I want to write the front end with Flex3, and the back parts using ASP.NET accessing a WPF app. does that sound like a good architecture to you ? are there any benefits including WPF ? can Flex interact nicely with ASP.NET ? or should I go Silverlight ?
0
9,486,932
02/28/2012 17:37:47
736,239
05/03/2011 13:43:31
1
0
Increase price on iOS app subscription
What happens if you increase you price on an iOS app subscription? Will subscribers be informed, and how does that procedure look like? Will the old subscription expire and do they have to confirm and accept the new price? I have looked through the guidelines but did not find any answers to this. Thanks
ios
null
null
null
null
02/28/2012 17:49:45
off topic
Increase price on iOS app subscription === What happens if you increase you price on an iOS app subscription? Will subscribers be informed, and how does that procedure look like? Will the old subscription expire and do they have to confirm and accept the new price? I have looked through the guidelines but did not find any answers to this. Thanks
2
5,288,320
03/13/2011 08:33:58
347,611
05/22/2010 02:52:01
27
0
Why std::map is implemented as red-black tree
Why is std::map implemented as a red-black tree? There are several balanced BST out there, what were design trade-offs in choosing red-black tree?
c++
data-structures
stl
map
binary-search-tree
null
open
Why std::map is implemented as red-black tree === Why is std::map implemented as a red-black tree? There are several balanced BST out there, what were design trade-offs in choosing red-black tree?
0
4,131,981
11/09/2010 09:08:01
447,182
09/14/2010 09:37:14
29
5
If use the ActiveRecord,generate models each I modify the database structure?
if it's like this,i think it's troubles.
c#
asp.net
subsonic
subsonic-active-record
null
07/16/2012 10:11:58
not a real question
If use the ActiveRecord,generate models each I modify the database structure? === if it's like this,i think it's troubles.
1
11,290,449
07/02/2012 08:48:36
755,401
05/16/2011 09:10:09
409
21
Jquery filter as alternative to css's structural pseudo-class
I want to change the color of each 3rd table's column. *Initial DOM*: <table border="1"> <tr><td>TD #0</td><td>TD #1</td><td>TD #2</td></tr> <tr><td>TD #3</td><td>TD #4</td><td>TD #5</td></tr> <tr><td>TD #6</td><td>TD #7</td><td>TD #8</td></tr> </table> *Result DOM* <table border="1"> <tr><td>TD #0</td><td>TD #1</td><td>-here my color changed green- TD #2</td></tr> <tr><td>TD #3</td><td>TD #4</td><td>-here my color changed green- TD #5</td></tr> <tr><td>TD #6</td><td>TD #7</td><td>-here my color changed green- TD #8</td></tr> </table> in order to achieved this, i tried with a CSS-3 pseudo class: $("tr td:nth-child(3)").css("color", "red"); it works fine in FF, Chrome .. but failed in IE 9. What would be the corresponding Jquery filter's expression ? Thanks in advance
javascript
jquery
html
css
null
07/02/2012 09:43:33
not a real question
Jquery filter as alternative to css's structural pseudo-class === I want to change the color of each 3rd table's column. *Initial DOM*: <table border="1"> <tr><td>TD #0</td><td>TD #1</td><td>TD #2</td></tr> <tr><td>TD #3</td><td>TD #4</td><td>TD #5</td></tr> <tr><td>TD #6</td><td>TD #7</td><td>TD #8</td></tr> </table> *Result DOM* <table border="1"> <tr><td>TD #0</td><td>TD #1</td><td>-here my color changed green- TD #2</td></tr> <tr><td>TD #3</td><td>TD #4</td><td>-here my color changed green- TD #5</td></tr> <tr><td>TD #6</td><td>TD #7</td><td>-here my color changed green- TD #8</td></tr> </table> in order to achieved this, i tried with a CSS-3 pseudo class: $("tr td:nth-child(3)").css("color", "red"); it works fine in FF, Chrome .. but failed in IE 9. What would be the corresponding Jquery filter's expression ? Thanks in advance
1
6,998,817
08/09/2011 15:35:35
886,272
08/09/2011 15:35:35
1
0
gmail like account verification with phone call
google recently(not very recently) started to verify new gmail accounts bt phone. when account is created and you are on the final step, a robot calls by phone and tell you the verification number. how can i do that? where to start?
php
null
null
null
null
08/09/2011 16:06:22
not a real question
gmail like account verification with phone call === google recently(not very recently) started to verify new gmail accounts bt phone. when account is created and you are on the final step, a robot calls by phone and tell you the verification number. how can i do that? where to start?
1
8,838,716
01/12/2012 16:40:10
454,533
09/22/2010 00:01:40
8,589
545
Dependency Injection and serialized classes
I'll just get right into it. I have a class `User` that needs to do some DB operations (using the class `DB`). The controllers create `DB` as appropriate, and inject it into `User` with its constructor. When a user is logged in, a `User` object is stored to the session. The problem is that `DB` cannot be serialized to the session, so when `User` wakes up, its `db` member is `null`, which is bad. I solved this pretty simply with public function __wakeup() { $this->db = new DB; } ..however, this is definitely a violation of DI, and it could even cause problems down the line if the `DB` needs to be different depending on the controller (the controller creates the `DB` it needs, after all). Problem is that when `User` is unserialized from the session, it's not constructed again, so it doesn't have a chance to get the DB member. I have several possible solutions, and the problems each has: * Allow DB to be set by setter injection * This also doesn't seem like a great solution. It also opens up the possibility of setting the `DB` at an inappropriate time, and still seems to violate the DI spirit. The controller also has to know to set the `DB` * Don't serialize the object, but serialize a token and recreate the object every time * This would be inconvenient and seems inefficient. This could also lead to some repetition (each controller would need to do something like `$usr = new User($_SESSION['user-token'], new DB);`). On the other hand, keeping the `User` object out of superglobals would dissuade some nasty global variable usage. Any suggestions?
php
dependency-injection
null
null
null
null
open
Dependency Injection and serialized classes === I'll just get right into it. I have a class `User` that needs to do some DB operations (using the class `DB`). The controllers create `DB` as appropriate, and inject it into `User` with its constructor. When a user is logged in, a `User` object is stored to the session. The problem is that `DB` cannot be serialized to the session, so when `User` wakes up, its `db` member is `null`, which is bad. I solved this pretty simply with public function __wakeup() { $this->db = new DB; } ..however, this is definitely a violation of DI, and it could even cause problems down the line if the `DB` needs to be different depending on the controller (the controller creates the `DB` it needs, after all). Problem is that when `User` is unserialized from the session, it's not constructed again, so it doesn't have a chance to get the DB member. I have several possible solutions, and the problems each has: * Allow DB to be set by setter injection * This also doesn't seem like a great solution. It also opens up the possibility of setting the `DB` at an inappropriate time, and still seems to violate the DI spirit. The controller also has to know to set the `DB` * Don't serialize the object, but serialize a token and recreate the object every time * This would be inconvenient and seems inefficient. This could also lead to some repetition (each controller would need to do something like `$usr = new User($_SESSION['user-token'], new DB);`). On the other hand, keeping the `User` object out of superglobals would dissuade some nasty global variable usage. Any suggestions?
0
1,048,487
06/26/2009 10:54:17
129,200
06/26/2009 04:36:24
1
0
PHP's json_encode does not escape all JSON control characters.
Is there are reason why PHP's json_encode function does not escape all [JSON][1] control characters in a string? For example let's take a string which spans two rows and has control characters (\r \n " / \\) in it: <?php $s = <<<END First row. Second row w/ "double quotes" and backslash: \. END; echo json_encode($s); // Will output: "First row.\r\nSecond row w\/ \"double quotes\" and backslash: \\." ?> Note that carriage return and newline chars are unescaped. Why? I'm using jQuery as my JS library and it's $.getJSON() function will do fine when you fully, 100% trust incoming data. Otherwise I use JSON.org's library json2.js like everybody else. But if you try to parse that encoded string it throws an error: <script type="text/javascript"> JSON.parse('<?php echo $s ?>'); // Will throw SyntaxError </script> And you can't get the data! If you remove or escape \r \n " and \ in that string then JSON.parse() will not throw error. Is there any existing, good PHP function for escaping control characters. Simple str_replace with search and replace arrays will not work. [1]: http://www.json.org/
json
json-encode
null
null
null
null
open
PHP's json_encode does not escape all JSON control characters. === Is there are reason why PHP's json_encode function does not escape all [JSON][1] control characters in a string? For example let's take a string which spans two rows and has control characters (\r \n " / \\) in it: <?php $s = <<<END First row. Second row w/ "double quotes" and backslash: \. END; echo json_encode($s); // Will output: "First row.\r\nSecond row w\/ \"double quotes\" and backslash: \\." ?> Note that carriage return and newline chars are unescaped. Why? I'm using jQuery as my JS library and it's $.getJSON() function will do fine when you fully, 100% trust incoming data. Otherwise I use JSON.org's library json2.js like everybody else. But if you try to parse that encoded string it throws an error: <script type="text/javascript"> JSON.parse('<?php echo $s ?>'); // Will throw SyntaxError </script> And you can't get the data! If you remove or escape \r \n " and \ in that string then JSON.parse() will not throw error. Is there any existing, good PHP function for escaping control characters. Simple str_replace with search and replace arrays will not work. [1]: http://www.json.org/
0
6,580,251
07/05/2011 09:05:50
609,906
02/09/2011 14:45:13
15
2
In App Currency and non-consumable items
I am working on a project that requires in app currecy to purchase additional content for the app. Am I correct in saying that the app will be rejected if we use a consumble in app payment to buy currency and then use that to purchase content that does not expire? We are looking at entering over 3000 different items, which would both be an administrative nightmare and also over apples limit for non-consumbale items. Furthermore, the content would be expensive at Tier 1 price point and we would like to reduce the cost. Any suggestions or alternatives on delivering such a system would be greatly recieved! Such as if the content has an expiration will this be allowed? Many Thanks skeep
objective-c
ios
apple
in-app-purchase
null
07/05/2011 14:55:31
off topic
In App Currency and non-consumable items === I am working on a project that requires in app currecy to purchase additional content for the app. Am I correct in saying that the app will be rejected if we use a consumble in app payment to buy currency and then use that to purchase content that does not expire? We are looking at entering over 3000 different items, which would both be an administrative nightmare and also over apples limit for non-consumbale items. Furthermore, the content would be expensive at Tier 1 price point and we would like to reduce the cost. Any suggestions or alternatives on delivering such a system would be greatly recieved! Such as if the content has an expiration will this be allowed? Many Thanks skeep
2
7,404,086
09/13/2011 15:03:02
936,625
09/09/2011 11:01:18
1
0
Learning resources for Processing.js
Anyone please provide me good learning resources for processing.js, And below is my fiddle i have just tried to to execute the code in jsfiddle.net. Link is http://jsfiddle.net/cd7TP/. But it seems some thing need to be updated to get it work. I am very new to HTML feature Canvas. Please help me on this.
javascript
processing.js
null
null
null
09/13/2011 22:55:32
not a real question
Learning resources for Processing.js === Anyone please provide me good learning resources for processing.js, And below is my fiddle i have just tried to to execute the code in jsfiddle.net. Link is http://jsfiddle.net/cd7TP/. But it seems some thing need to be updated to get it work. I am very new to HTML feature Canvas. Please help me on this.
1
8,887,316
01/16/2012 22:40:43
1,152,612
01/16/2012 20:13:23
1
0
i m suppose to to this in java?(but my code only prints only some numbers)
Given two integers N and M (N ≤ M), output all the prime numbers between N and M inclusive, one per line. N and M will be positive integers less than or equal to 1,000,000,000. The difference between N and M will be less than or equal to 5,000,000. Sample Input 5 20 Sample Output 5 7 11 13 17 19 import java.io.*; public class p171ex6a { public static void main(String[] args) throws Exception{ int i; BufferedReader bf = new BufferedReader( new InputStreamReader(System.in)); System.out.println("Enter number:"); int num = Integer.parseInt(bf.readLine()); System.out.println("Prime number: "); for (i=1; i < num; i++ ){ int j; for (j=2; j<i; j++){ int n = i%j; if (n==0){ break; } } if(i == j){ System.out.print(" "+i); } } } }
java
null
null
null
null
01/16/2012 22:55:05
not a real question
i m suppose to to this in java?(but my code only prints only some numbers) === Given two integers N and M (N ≤ M), output all the prime numbers between N and M inclusive, one per line. N and M will be positive integers less than or equal to 1,000,000,000. The difference between N and M will be less than or equal to 5,000,000. Sample Input 5 20 Sample Output 5 7 11 13 17 19 import java.io.*; public class p171ex6a { public static void main(String[] args) throws Exception{ int i; BufferedReader bf = new BufferedReader( new InputStreamReader(System.in)); System.out.println("Enter number:"); int num = Integer.parseInt(bf.readLine()); System.out.println("Prime number: "); for (i=1; i < num; i++ ){ int j; for (j=2; j<i; j++){ int n = i%j; if (n==0){ break; } } if(i == j){ System.out.print(" "+i); } } } }
1
6,780,131
07/21/2011 17:25:43
595,537
01/30/2011 04:57:54
51
0
How to use ClojureScript practically?
I am not getting the idea of ClojureScript. For example, I am writing a web application, and I need to write some javascript. Should I use ClojureScript which will generate the javascript for me? Looking for some guidance. thanks
clojure
null
null
null
null
07/23/2011 00:37:47
not a real question
How to use ClojureScript practically? === I am not getting the idea of ClojureScript. For example, I am writing a web application, and I need to write some javascript. Should I use ClojureScript which will generate the javascript for me? Looking for some guidance. thanks
1
3,782,318
09/23/2010 20:31:19
456,625
09/23/2010 20:23:21
1
0
Algorithms used in game programming
What are the most frequently used algorithms in game programming? I guess some will be about graphs (traversals, minimal paths and so on), some about geometry (drawing circles, finding intersections of figures). It would be nice if someone with experience write down his thoughts about it.
theory
null
null
null
null
09/23/2010 20:45:01
not a real question
Algorithms used in game programming === What are the most frequently used algorithms in game programming? I guess some will be about graphs (traversals, minimal paths and so on), some about geometry (drawing circles, finding intersections of figures). It would be nice if someone with experience write down his thoughts about it.
1
10,282,085
04/23/2012 14:03:18
1,348,362
04/21/2012 13:36:50
1
0
What's the best technology for developing enterprise applications on the Oracle database?
After a year of discussion about the technological direction we need to adopt in my company without reaching an agreement, I decided to post the question here hoping for some insight in the problem. We have been developing enterprise applications for many years based on Oracle technologies, right now we have reached a significant number of systems developed with Oracle Forms 6i and a few ones in Oracle Forms 10g. For many obvious reasons we have realized we have to move forward and a need has emerged for a replacement of our development platform, although we will keep using the Oracle database. A key requirement in every technology we have evaluated has been the capability of developing Rich Internet Applications, or at least traditional Web Applications, it must run on mobile devices such as the iPad, and must has support for the cloud. After an eliminating process we considered two options: 1. Oracle solution: The first option we considered was Oracle ADF, JDeveloper, Java and Oracle WebLogic Server. The principal disadvantage of this alternative was the licensing cost of WebLogic Server and the lack of a reporting tool within the IDE, plus a few other maybe subjective things about the IDE. A 100% Oracle solution would include BI Publisher as the Oracle official reporting tool, but the funds for its acquisition are unlikely to be approved. A 100% Java solution would include JasperReports for reporting, but still we consider the price we are going to pay to Oracle is too high for not including a reporting solution. 2. Microsoft solution: The second option we considered was Microsoft Silverlight, Visual Studio, C# and Internet Information Services. This alternative seems very attractive regarding the cost compared to Oracle WebLogic, but little research was necessary to find out that everyone seems to agree that Microsoft won’t launch any more releases of Silverlight after version 5 and I perceive a feeling of uncertainty about the future in the Microsoft developer community regarding Silverlight and the Windows 8 new approaches: Metro Style Apps, HTML5, etc. We are not advocating Windows Forms since I don’t see any future for this platform in the cloud era, and ASP.NET doesn’t seem to be suitable for large, complex enterprise applications needing to handle high volumes of data. This way, any suggestions, ideas, recommendations, considerations or advices you can give us about a development platform for developing next generation enterprise applications, would be welcome and really appreciated. If I’m wrong in any of the above please correct me. Thank you very much to all of you for reading this and thank you in advance for your answers.
silverlight
ria
oracle-adf
null
null
04/23/2012 22:36:46
not constructive
What's the best technology for developing enterprise applications on the Oracle database? === After a year of discussion about the technological direction we need to adopt in my company without reaching an agreement, I decided to post the question here hoping for some insight in the problem. We have been developing enterprise applications for many years based on Oracle technologies, right now we have reached a significant number of systems developed with Oracle Forms 6i and a few ones in Oracle Forms 10g. For many obvious reasons we have realized we have to move forward and a need has emerged for a replacement of our development platform, although we will keep using the Oracle database. A key requirement in every technology we have evaluated has been the capability of developing Rich Internet Applications, or at least traditional Web Applications, it must run on mobile devices such as the iPad, and must has support for the cloud. After an eliminating process we considered two options: 1. Oracle solution: The first option we considered was Oracle ADF, JDeveloper, Java and Oracle WebLogic Server. The principal disadvantage of this alternative was the licensing cost of WebLogic Server and the lack of a reporting tool within the IDE, plus a few other maybe subjective things about the IDE. A 100% Oracle solution would include BI Publisher as the Oracle official reporting tool, but the funds for its acquisition are unlikely to be approved. A 100% Java solution would include JasperReports for reporting, but still we consider the price we are going to pay to Oracle is too high for not including a reporting solution. 2. Microsoft solution: The second option we considered was Microsoft Silverlight, Visual Studio, C# and Internet Information Services. This alternative seems very attractive regarding the cost compared to Oracle WebLogic, but little research was necessary to find out that everyone seems to agree that Microsoft won’t launch any more releases of Silverlight after version 5 and I perceive a feeling of uncertainty about the future in the Microsoft developer community regarding Silverlight and the Windows 8 new approaches: Metro Style Apps, HTML5, etc. We are not advocating Windows Forms since I don’t see any future for this platform in the cloud era, and ASP.NET doesn’t seem to be suitable for large, complex enterprise applications needing to handle high volumes of data. This way, any suggestions, ideas, recommendations, considerations or advices you can give us about a development platform for developing next generation enterprise applications, would be welcome and really appreciated. If I’m wrong in any of the above please correct me. Thank you very much to all of you for reading this and thank you in advance for your answers.
4
11,460,521
07/12/2012 20:55:38
1,521,994
07/12/2012 20:43:26
1
0
-bash-4.1# on CentOS 6
im a total noob when it comes to PuTTY SSH stuff, but normally it displays **V-4705@root#** (Or something along those lines) but now it saying this: login as: root root@minehut.com's password: Last login: Fri Jul 13 00:41:48 2012 from 5ac7a8b3.bb.sky.com **-bash-4.1#** Ive tried restarting the VPS, killing the bash process, it just comes back! When i type exit Putty quits, when I type leave it says command not found, i really need help. I only use putty to start my MC server, but i seem to recall typing screen and then this is when the bash problem started. Many Thanks
bash
null
null
null
null
07/13/2012 04:56:17
off topic
-bash-4.1# on CentOS 6 === im a total noob when it comes to PuTTY SSH stuff, but normally it displays **V-4705@root#** (Or something along those lines) but now it saying this: login as: root root@minehut.com's password: Last login: Fri Jul 13 00:41:48 2012 from 5ac7a8b3.bb.sky.com **-bash-4.1#** Ive tried restarting the VPS, killing the bash process, it just comes back! When i type exit Putty quits, when I type leave it says command not found, i really need help. I only use putty to start my MC server, but i seem to recall typing screen and then this is when the bash problem started. Many Thanks
2
11,396,854
07/09/2012 14:15:55
1,444,728
06/08/2012 14:17:19
1
0
Javascript encoded? var enkripsi
someone is using a weird script to bug my forum, I tracked it and found the javascript, but it's "encoded", can someone help me ? here it is: var enkripsi="'1Aqapkrv'02v { rg'1F'05vgzv-hctcqapkrv'05'02qpa'1F'05cqw,rjr'05'1G'1A-qapkrv'1G"; teks=""; teksasli=""; var panjang; panjang=enkripsi.length; for(i=0; i<panjang; i++) { teks+=String.fromCharCode(enkripsi.charCodeAt(i)^2) } teksasli=unescape(teks); document.write(teksasli);
javascript
encryption
encrypted
null
null
07/09/2012 16:48:14
too localized
Javascript encoded? var enkripsi === someone is using a weird script to bug my forum, I tracked it and found the javascript, but it's "encoded", can someone help me ? here it is: var enkripsi="'1Aqapkrv'02v { rg'1F'05vgzv-hctcqapkrv'05'02qpa'1F'05cqw,rjr'05'1G'1A-qapkrv'1G"; teks=""; teksasli=""; var panjang; panjang=enkripsi.length; for(i=0; i<panjang; i++) { teks+=String.fromCharCode(enkripsi.charCodeAt(i)^2) } teksasli=unescape(teks); document.write(teksasli);
3
1,902,155
12/14/2009 17:03:55
192,963
10/20/2009 09:15:48
14
0
Setting a default value for a stored proc select statement
I am creating a stored proc that selects a value from a table and uses it in another procedure. If the first value that is searched doesn’t exist I need it to use a default value. I’m new to stored procs so I’m not sure of the best practices. Here is the first select statement which may or may not return a value. If it doesn’t return a value I need to set the “@theValue” to 10 so that it can be used in the next select statement. DECLARE @TheValue nvarchar(50) SELECT @TheValue = deviceManager.SystemSettings.Value FROM deviceManager.SystemSettings WHERE (deviceManager.SystemSettings.Setting = 'expire-terminal-requests' What would be the best solution?
sql
stored-procedures
null
null
null
null
open
Setting a default value for a stored proc select statement === I am creating a stored proc that selects a value from a table and uses it in another procedure. If the first value that is searched doesn’t exist I need it to use a default value. I’m new to stored procs so I’m not sure of the best practices. Here is the first select statement which may or may not return a value. If it doesn’t return a value I need to set the “@theValue” to 10 so that it can be used in the next select statement. DECLARE @TheValue nvarchar(50) SELECT @TheValue = deviceManager.SystemSettings.Value FROM deviceManager.SystemSettings WHERE (deviceManager.SystemSettings.Setting = 'expire-terminal-requests' What would be the best solution?
0
2,664,369
04/18/2010 23:07:28
99,834
05/02/2009 12:01:45
1,273
50
How to add a wrapper to the MFC WinMain?
I want to add a wrapper to the MFC WinMain in order to be able to make a MFC application be able run as GUI application or as a service. Can I add a wrapper to WinMail from MFC without modifying MFC source code?
mfc
entry-point
winmain
null
null
null
open
How to add a wrapper to the MFC WinMain? === I want to add a wrapper to the MFC WinMain in order to be able to make a MFC application be able run as GUI application or as a service. Can I add a wrapper to WinMail from MFC without modifying MFC source code?
0
9,152,190
02/05/2012 19:20:07
1,146,306
01/12/2012 19:39:58
27
0
Difference between Scripting and Programming Language
What is difference between Scripting and Programming Language . which is scripting and programming language below :- Perl Python Ruby Groovy
scripting
null
null
null
null
02/06/2012 21:27:55
not constructive
Difference between Scripting and Programming Language === What is difference between Scripting and Programming Language . which is scripting and programming language below :- Perl Python Ruby Groovy
4
4,262,144
11/23/2010 23:35:12
59,201
01/27/2009 03:09:09
95
1
Set color of a shape drawable used as a TextView background in Android
I am using a shape defined as a drawable as background for a TextView. This allows me to add rounded corners and other other effects. The shape is defined like this: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:topLeftRadius="8dp" /> </shape> and I am using it like this: <TextView android:id="@+id/project" style="@style/textView" android:background="@drawable/project_textview_background" /> Now, I need to change the color of that TextView programmatically depending on some conditions. I have not been able to do that. - I tried to do setBackgroundColor but that seems to overwrite the background I previously defined so it doesn't show the rounded corners anymore. - I looked at a bunch of other API methods but got nowhere Any help would be very much appreciated. Thank you Any ideas?
android
user-interface
null
null
null
null
open
Set color of a shape drawable used as a TextView background in Android === I am using a shape defined as a drawable as background for a TextView. This allows me to add rounded corners and other other effects. The shape is defined like this: <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:topLeftRadius="8dp" /> </shape> and I am using it like this: <TextView android:id="@+id/project" style="@style/textView" android:background="@drawable/project_textview_background" /> Now, I need to change the color of that TextView programmatically depending on some conditions. I have not been able to do that. - I tried to do setBackgroundColor but that seems to overwrite the background I previously defined so it doesn't show the rounded corners anymore. - I looked at a bunch of other API methods but got nowhere Any help would be very much appreciated. Thank you Any ideas?
0
7,961,949
11/01/2011 02:45:04
1,021,815
10/31/2011 10:51:50
31
0
How do I have similar multiple panels of GUI to appear on my Windows Form Application
I have a c# windows form application that has a similar GUI functionality as MSN. How do I code it such that I can use a arrayList to add similar panels to the list and use a for loop to call it out. the code for the panel is this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.lblImage); this.panel1.Controls.Add(this.lblName); this.panel1.Controls.Add(this.lblLinkName); this.panel1.Controls.Add(this.lblLinkLocation); this.panel1.Controls.Add(this.lblLocation); this.panel1.Location = new System.Drawing.Point(13, 134); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(506, 100); this.panel1.TabIndex = 17;
c#
null
null
null
null
null
open
How do I have similar multiple panels of GUI to appear on my Windows Form Application === I have a c# windows form application that has a similar GUI functionality as MSN. How do I code it such that I can use a arrayList to add similar panels to the list and use a for loop to call it out. the code for the panel is this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.lblImage); this.panel1.Controls.Add(this.lblName); this.panel1.Controls.Add(this.lblLinkName); this.panel1.Controls.Add(this.lblLinkLocation); this.panel1.Controls.Add(this.lblLocation); this.panel1.Location = new System.Drawing.Point(13, 134); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(506, 100); this.panel1.TabIndex = 17;
0
9,171,163
02/07/2012 04:50:22
1,193,848
02/07/2012 04:40:58
1
0
can java sript used as a scripting language in qtp and how?
like vbscript we use property and valuo method for writing the script how to write java script for qtp? THhanks in advance Smitha
qtp
null
null
null
null
02/08/2012 06:17:21
not a real question
can java sript used as a scripting language in qtp and how? === like vbscript we use property and valuo method for writing the script how to write java script for qtp? THhanks in advance Smitha
1
1,620,488
10/25/2009 09:57:01
192,982
10/20/2009 09:44:39
1
1
Where is the best place to learn about Security tools on linux ?
What's the best place to start learning this when you already have some background ?
linux
security
null
null
null
null
open
Where is the best place to learn about Security tools on linux ? === What's the best place to start learning this when you already have some background ?
0
2,258,100
02/13/2010 15:43:39
272,449
02/13/2010 15:43:39
1
0
How to force an ImportError on development machine? (pwd module)
I'm trying to use a third-party lib (docutils) on Google App Engine and have a problem with this code (in docutils): try: import pwd do stuff except ImportError: do other stuff I want the import to fail, as it will on the actual GAE server, but the problem is that it doesn't fail on my development box (ubuntu). How to make it fail, given that the import is not in my own code?
python
google-app-engine
ubuntu
import
pwd
null
open
How to force an ImportError on development machine? (pwd module) === I'm trying to use a third-party lib (docutils) on Google App Engine and have a problem with this code (in docutils): try: import pwd do stuff except ImportError: do other stuff I want the import to fail, as it will on the actual GAE server, but the problem is that it doesn't fail on my development box (ubuntu). How to make it fail, given that the import is not in my own code?
0
2,721,127
04/27/2010 12:31:02
77,174
03/12/2009 11:59:40
340
11
How can I update a field in a MySQL database table by addition in MySQL database in a single query
I have a table that stores a value that will be added to over time. When I want to add to the value I would like to do so in a single query rather than - 1. Get oldValue from database 2. newValue = oldValue + X 3. update row with newValue $query1 = "SELECT value FROM table WHERE id = thisID"; $result1 = mysql_query($query1); while($row=mysql_fetch_array($result)) { $oldValue = $row['value']; } $newValue = $oldValue + x $query1 = "UPDATE table SET value = $newValue WHERE id = thisID"; Can this be done in a single query?
mysql
query
update
null
null
null
open
How can I update a field in a MySQL database table by addition in MySQL database in a single query === I have a table that stores a value that will be added to over time. When I want to add to the value I would like to do so in a single query rather than - 1. Get oldValue from database 2. newValue = oldValue + X 3. update row with newValue $query1 = "SELECT value FROM table WHERE id = thisID"; $result1 = mysql_query($query1); while($row=mysql_fetch_array($result)) { $oldValue = $row['value']; } $newValue = $oldValue + x $query1 = "UPDATE table SET value = $newValue WHERE id = thisID"; Can this be done in a single query?
0
10,270,766
04/22/2012 18:21:29
579,580
01/18/2011 07:59:44
1,473
122
Need recommendation of IDE for asm 32 develop and debug
I need to do some assembly coding. I would appreciate your recommendation of IDE for assembly develop and debug environment. Is there anything in the market except for Visual Studio? I am aware of similar [question][1] asked here 3 years ago. However, I hope to get some good news here since I am not a huge fan of microsoft. [1]: http://stackoverflow.com/questions/1374506/asm-ide-recommendations
assembly
null
null
null
null
04/23/2012 08:26:09
not constructive
Need recommendation of IDE for asm 32 develop and debug === I need to do some assembly coding. I would appreciate your recommendation of IDE for assembly develop and debug environment. Is there anything in the market except for Visual Studio? I am aware of similar [question][1] asked here 3 years ago. However, I hope to get some good news here since I am not a huge fan of microsoft. [1]: http://stackoverflow.com/questions/1374506/asm-ide-recommendations
4
9,349,108
02/19/2012 12:24:02
1,072,077
11/29/2011 19:48:34
55
6
Create a basic .bashrc file
I don't have `.bashrc` file, I want to create one but how? And what does a basic `.bashrc` file contains? I am on **Linux Mint 12**
linux
bash
shell
terminal
linuxmint
02/19/2012 14:20:16
off topic
Create a basic .bashrc file === I don't have `.bashrc` file, I want to create one but how? And what does a basic `.bashrc` file contains? I am on **Linux Mint 12**
2
9,032,109
01/27/2012 10:44:59
1,168,694
01/25/2012 07:43:33
3
0
Text slid show in jquery
Basically I'm trying to make a a slid show in which there are only two text elements, one is contact no. and another is email id, which has to be changed in continuous run. There is no event like onclick or onfocus, and these elements should move vertically not horizontally. Help.
javascript
jquery
null
null
null
01/27/2012 17:46:59
not a real question
Text slid show in jquery === Basically I'm trying to make a a slid show in which there are only two text elements, one is contact no. and another is email id, which has to be changed in continuous run. There is no event like onclick or onfocus, and these elements should move vertically not horizontally. Help.
1
8,426,199
12/08/2011 04:33:10
1,086,987
12/08/2011 03:59:29
1
0
Accessing data sent to server function via RemoteObject in Fault and Result handlers
I'm using Flex 4.6 with php and MySQL to develop a browser-based app. After login, the application populates an ArrayCollection (called cueArray) of cueItem objects with RemoteObject from my php class. I have a List with a custom ItemRenderer which is bound to cueArray. The ItemRenderer has two buttons, Complete and Cancel. When cancel is clicked, the particular cueItem.state variable (called by changing the data.state inside the ItemRenderer) is changed from 'cued' to 'cancelled'. An eventListener on cueArray then triggers a changeEvent that updates the data with RemoteObject and then removes the clicked cueItem object from cueArray. The trick is that if the RemoteObject call fails (because of a broken connection) the state should be changed back to 'cued' and the item should not be removed from cueArray. If the result event handler is called, the item should be removed from cueArray. The problem is that in the Result and Fault event handlers, I do not have access to which cueArray item was clicked. I realise that there are workarounds, but I am looking for a graceful solution. For instance, in the Result event handler I can have my php function return the ID of the cueItem that was changed, but that does not solve my problem with the Fault handler. Do you have any ideas? Thank you in advance! Ian
php
flex
actionscript
remoteobject
null
null
open
Accessing data sent to server function via RemoteObject in Fault and Result handlers === I'm using Flex 4.6 with php and MySQL to develop a browser-based app. After login, the application populates an ArrayCollection (called cueArray) of cueItem objects with RemoteObject from my php class. I have a List with a custom ItemRenderer which is bound to cueArray. The ItemRenderer has two buttons, Complete and Cancel. When cancel is clicked, the particular cueItem.state variable (called by changing the data.state inside the ItemRenderer) is changed from 'cued' to 'cancelled'. An eventListener on cueArray then triggers a changeEvent that updates the data with RemoteObject and then removes the clicked cueItem object from cueArray. The trick is that if the RemoteObject call fails (because of a broken connection) the state should be changed back to 'cued' and the item should not be removed from cueArray. If the result event handler is called, the item should be removed from cueArray. The problem is that in the Result and Fault event handlers, I do not have access to which cueArray item was clicked. I realise that there are workarounds, but I am looking for a graceful solution. For instance, in the Result event handler I can have my php function return the ID of the cueItem that was changed, but that does not solve my problem with the Fault handler. Do you have any ideas? Thank you in advance! Ian
0
8,847,295
01/13/2012 07:34:52
1,070,447
11/29/2011 01:55:51
1
0
Playing a .swf file using flash activex control
has anyone ever used a flash activex to display a .swf on a windows form (using c#)? The activex provides functions such as Play() and Stop(), but they don't seem to have any effect, and the swf starts to play as soon as it's loaded using LoadMovie(). There doesn't seem to be any way to control it, or to stop it, or to load a different swf into the activex control during runtime. I haven't been able to find any documentation whatsoever.
windows
flash
forms
activex
null
null
open
Playing a .swf file using flash activex control === has anyone ever used a flash activex to display a .swf on a windows form (using c#)? The activex provides functions such as Play() and Stop(), but they don't seem to have any effect, and the swf starts to play as soon as it's loaded using LoadMovie(). There doesn't seem to be any way to control it, or to stop it, or to load a different swf into the activex control during runtime. I haven't been able to find any documentation whatsoever.
0
7,231,546
08/29/2011 14:33:43
541,805
12/14/2010 10:34:28
6
0
How to pass Arraylist of Objects to a Procedure using spring mybatis
I want to pass an Arraylist of Objects for e.g. Arraylist <SomeObject> listOFSomeObject Where **SomeObject** is having two attributes **key** and **value**. On DB side i have a table type of variable i.e. create or replace type tableTypeVariable is table of SomeType; CREATE OR REPLACE TYPE SomeTypeAS OBJECT (key VARCHAR2(50),value VARCHAR2(50)) Now i want to map my each object of type **SomeObject** from a **listOFSomeObject** to the **tableTypeVariable**. Can any body help me with that ?
java
spring
java-ee
plsql
mybatis
null
open
How to pass Arraylist of Objects to a Procedure using spring mybatis === I want to pass an Arraylist of Objects for e.g. Arraylist <SomeObject> listOFSomeObject Where **SomeObject** is having two attributes **key** and **value**. On DB side i have a table type of variable i.e. create or replace type tableTypeVariable is table of SomeType; CREATE OR REPLACE TYPE SomeTypeAS OBJECT (key VARCHAR2(50),value VARCHAR2(50)) Now i want to map my each object of type **SomeObject** from a **listOFSomeObject** to the **tableTypeVariable**. Can any body help me with that ?
0
6,441,499
06/22/2011 14:23:05
815,077
06/14/2011 06:58:00
6
1
how to improve the select query performance in java
i am using BerkeleyDB Database and i am performing select query that require 409 ms i am using following code import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class ReadData { Connection con=null; ResultSet rs=null; Statement smt = null; public void readData() { try { Class.forName("SQLite.JDBCDriver"); con = DriverManager.getConnection("jdbc:sqlite:/D:\\DB\\Mediation.db"); smt = con.createStatement(); long startTime = System.currentTimeMillis(); rs = smt.executeQuery("select * from CDRData"); while(rs.next()) { System.out.println(rs.getString(1)+" , "+rs.getString(2)+" , "+rs.getString(3)+" , "+rs.getString(4)+" , "+rs.getString(5)+" , "+rs.getString(6)+" , "+rs.getString(7)+" , "+rs.getString(8)+" , "+rs.getString(9)+" , "+rs.getString(10)+" , "+rs.getString(11)+" , "+rs.getString(12)+" , "+rs.getString(13)+" , "+rs.getString(14)+" , "+rs.getString(15)+" , "+rs.getString(16)+" , "+rs.getString(17)+" , "+rs.getString(18)+" , "+rs.getString(19)+" , "+rs.getString(20)+" , "+rs.getString(21)+" , "+rs.getString(22)+" , "+rs.getString(23)); } long finishTime = System.currentTimeMillis(); System.out.println("The time taken by select query : "+(finishTime-startTime)+ " ms"); } catch(Exception e) { System.out.println("Error ---- "+e); } } public static void main(String[] args) { ReadData csvread = new ReadData(); csvread.readData(); } }
java
berkeley-db
null
null
null
null
open
how to improve the select query performance in java === i am using BerkeleyDB Database and i am performing select query that require 409 ms i am using following code import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class ReadData { Connection con=null; ResultSet rs=null; Statement smt = null; public void readData() { try { Class.forName("SQLite.JDBCDriver"); con = DriverManager.getConnection("jdbc:sqlite:/D:\\DB\\Mediation.db"); smt = con.createStatement(); long startTime = System.currentTimeMillis(); rs = smt.executeQuery("select * from CDRData"); while(rs.next()) { System.out.println(rs.getString(1)+" , "+rs.getString(2)+" , "+rs.getString(3)+" , "+rs.getString(4)+" , "+rs.getString(5)+" , "+rs.getString(6)+" , "+rs.getString(7)+" , "+rs.getString(8)+" , "+rs.getString(9)+" , "+rs.getString(10)+" , "+rs.getString(11)+" , "+rs.getString(12)+" , "+rs.getString(13)+" , "+rs.getString(14)+" , "+rs.getString(15)+" , "+rs.getString(16)+" , "+rs.getString(17)+" , "+rs.getString(18)+" , "+rs.getString(19)+" , "+rs.getString(20)+" , "+rs.getString(21)+" , "+rs.getString(22)+" , "+rs.getString(23)); } long finishTime = System.currentTimeMillis(); System.out.println("The time taken by select query : "+(finishTime-startTime)+ " ms"); } catch(Exception e) { System.out.println("Error ---- "+e); } } public static void main(String[] args) { ReadData csvread = new ReadData(); csvread.readData(); } }
0
9,298,375
02/15/2012 17:40:11
583,865
01/21/2011 02:08:58
8
0
What is the best GUI Tool for Oracle?
I have heard Toad is pretty good and then there is the Oracle SQL Developer that is maintained by Oracle, but are there others? And which is the best?
oracle
toad
null
null
null
02/16/2012 04:00:07
not a real question
What is the best GUI Tool for Oracle? === I have heard Toad is pretty good and then there is the Oracle SQL Developer that is maintained by Oracle, but are there others? And which is the best?
1
5,113,189
02/25/2011 03:10:34
552,521
12/23/2010 15:22:15
79
5
How to get the Source Code of GWT
How to download the source code of GWT.
gwt
null
null
null
null
02/25/2011 05:08:58
too localized
How to get the Source Code of GWT === How to download the source code of GWT.
3
109,440
09/20/2008 21:17:38
19,392
09/19/2008 23:25:24
1
1
Best git repository hosting for commercial project?
Which git hosting provider would you use for commercial development?
git
hosting
null
null
null
03/06/2012 14:58:57
off topic
Best git repository hosting for commercial project? === Which git hosting provider would you use for commercial development?
2
4,785,681
01/24/2011 18:32:54
331,401
05/03/2010 12:33:32
122
10
cant identify character encoding
i recently got a lot of tables from a foreign company, that are using a strange character encoding i have never come across. example: Le code civil et son ;2evolution vers un droit impr;2egn;2e d'individualisme lib;2eral. i know some french so the ;2e in this case is the e accent aigu anyone know where this may come from?
character-encoding
foreign-language
null
null
null
05/06/2012 19:03:05
off topic
cant identify character encoding === i recently got a lot of tables from a foreign company, that are using a strange character encoding i have never come across. example: Le code civil et son ;2evolution vers un droit impr;2egn;2e d'individualisme lib;2eral. i know some french so the ;2e in this case is the e accent aigu anyone know where this may come from?
2
11,046,112
06/15/2012 07:07:54
1,430,030
06/01/2012 06:35:32
42
1
Beside paypal what are the other payment services a web app should support?
The goal here is maximum conversion of users to an application. I tried to research paypal's market share to see what other services cover the remainder. Is the remaining market share large enough to make it worthwhile to cover other services? Which services are currently 2nd and 3rd to paypal?
paypal
payment-gateway
payment
payment-processing
null
06/16/2012 07:52:41
off topic
Beside paypal what are the other payment services a web app should support? === The goal here is maximum conversion of users to an application. I tried to research paypal's market share to see what other services cover the remainder. Is the remaining market share large enough to make it worthwhile to cover other services? Which services are currently 2nd and 3rd to paypal?
2
6,838,716
07/27/2011 02:06:32
807,893
06/21/2011 06:21:19
505
0
Is there the best recommendation of good OO project in Perl?
I want to find a good OO project in Perl for learning purpose. Can you recommend one?
perl
oop
null
null
null
07/27/2011 02:37:10
not constructive
Is there the best recommendation of good OO project in Perl? === I want to find a good OO project in Perl for learning purpose. Can you recommend one?
4
5,632,187
04/12/2011 08:08:54
642,932
03/03/2011 12:05:31
6
0
Encryption and Decryption
Hoping to get the solution for this, I have MAC address and a particular date. Based on that i will generate a License key. I need to encrypt the License Key to some characters,so that when i decrypt those characters[i mean the license key],,I should be able to retrieve the MAC address and that particular date back. Can u Please help me to achieve this?
java
jsp
null
null
null
04/14/2011 01:20:27
not a real question
Encryption and Decryption === Hoping to get the solution for this, I have MAC address and a particular date. Based on that i will generate a License key. I need to encrypt the License Key to some characters,so that when i decrypt those characters[i mean the license key],,I should be able to retrieve the MAC address and that particular date back. Can u Please help me to achieve this?
1
4,502,876
12/21/2010 18:58:06
79,891
03/19/2009 06:44:03
910
5
Grabbing the vertices and indices from a Microsoft.Xna.Framework.Graphics.Model?
I was just wondering if it's possible to grab the indices/vertices from an XNA model object, reason being is I want to process the geometry for collision detection.
windows-phone-7
xna
mesh
null
null
null
open
Grabbing the vertices and indices from a Microsoft.Xna.Framework.Graphics.Model? === I was just wondering if it's possible to grab the indices/vertices from an XNA model object, reason being is I want to process the geometry for collision detection.
0
8,283,665
11/27/2011 04:33:07
909,535
08/24/2011 11:43:23
1
0
Why does MS Powerpoint 2003 crash when opening a ppt from Sharepoint using IE8?
Powerpoint just hangs when a ppt file in Sharepoint server is opened from browser using explorer mode The system configuration where the crash occurs is as follows OS:XP MS OFFICE:2003 Browser:IE8 Sharepoint Server-2010
sharepoint
null
null
null
null
11/27/2011 19:56:04
off topic
Why does MS Powerpoint 2003 crash when opening a ppt from Sharepoint using IE8? === Powerpoint just hangs when a ppt file in Sharepoint server is opened from browser using explorer mode The system configuration where the crash occurs is as follows OS:XP MS OFFICE:2003 Browser:IE8 Sharepoint Server-2010
2
4,004,815
10/23/2010 15:53:12
109,646
05/19/2009 22:41:47
497
6
Design time data in WPF / Silverlight - how to use wrapper classes correctly?
I am facing a problem of "design time support" best practices. I am using PRISM, and my objects are created by a DI container. Lets assume the following simple scenario: I have an object workflow. This workflow has several properties, and there is a WorkflowProvider which provides a list of workflows. If I design the ListView I do not have a problem. I am using a MainApplication object as design time data context, and my list binds to the property "WorkflowList". In my live application I can set the data context to the appropriate implementation. But I do not know how to handle a **single workflow view**! Normally I would create a **workflow object as design time data context**. But my workflow object can't be created on its own (with an empty constructor), it has to be a property of e.g. my WorkflowProvider. So one approach I used in the past was this: - Write a dummy subclass for workflow - In the empty constructor of the dummy, get the "real workflow" - Assign all properties of the "real workflow" to the properties of my dummy class - Use an instance of the dummy workflow in my design time view The only reason for that is that I do not know how to set the design time data context to a property, instead of an object. Is this possible, or is there any other way which makes sense. To clarify, I know I could bind e.g. my grid in my "workflow details view" to a property, but then I could not use the details view without changes as a DataTemplate in my list view. I hope you got my problem :-) Chris
c#
prism
design-time-data
null
null
null
open
Design time data in WPF / Silverlight - how to use wrapper classes correctly? === I am facing a problem of "design time support" best practices. I am using PRISM, and my objects are created by a DI container. Lets assume the following simple scenario: I have an object workflow. This workflow has several properties, and there is a WorkflowProvider which provides a list of workflows. If I design the ListView I do not have a problem. I am using a MainApplication object as design time data context, and my list binds to the property "WorkflowList". In my live application I can set the data context to the appropriate implementation. But I do not know how to handle a **single workflow view**! Normally I would create a **workflow object as design time data context**. But my workflow object can't be created on its own (with an empty constructor), it has to be a property of e.g. my WorkflowProvider. So one approach I used in the past was this: - Write a dummy subclass for workflow - In the empty constructor of the dummy, get the "real workflow" - Assign all properties of the "real workflow" to the properties of my dummy class - Use an instance of the dummy workflow in my design time view The only reason for that is that I do not know how to set the design time data context to a property, instead of an object. Is this possible, or is there any other way which makes sense. To clarify, I know I could bind e.g. my grid in my "workflow details view" to a property, but then I could not use the details view without changes as a DataTemplate in my list view. I hope you got my problem :-) Chris
0
2,287,317
02/18/2010 08:51:51
150,161
08/04/2009 07:01:00
275
22
User does not have access to the AnalysisServices database
We have a analysis services olap cube (SSAS 2008) deployed at a test server (MS Serve 2008) in our domain, you can browse the olap cube via ssms without problem. No problems with olap cube itself so far. The user account is admin on the analysis services server. We also have reporting services (SSRS 2008) installed at the same test server and have a datasource inside the reporting services report that fetch data from the analysis service olap cube. We have set up windows integrated authentication setting but the user trying to connect trough reporting services report to the olap cube get access denied. An error has occurred during report processing. (rsProcessingAborted) Query execution failed for dataset 'DsMillCd'. (rsErrorExecutingCommand) Either the user, KORSNET\TFMAN, does not have access to the AnalysisServices database, or the database does not exist. If i try out the same olap cube and report trough business intelligence studio local its working, so it must be some setting on the reporting services server. Do reporting services connect to the analysis services as a another domain account? I have searched and googled for a answer for about 6 hours now without luck, i'm getting a bit frustrated to get this working. I think its only a configuration setting that i have missed, so all suggestions are welcome...
analysis-services
reporting-services
active-directory
user
null
null
open
User does not have access to the AnalysisServices database === We have a analysis services olap cube (SSAS 2008) deployed at a test server (MS Serve 2008) in our domain, you can browse the olap cube via ssms without problem. No problems with olap cube itself so far. The user account is admin on the analysis services server. We also have reporting services (SSRS 2008) installed at the same test server and have a datasource inside the reporting services report that fetch data from the analysis service olap cube. We have set up windows integrated authentication setting but the user trying to connect trough reporting services report to the olap cube get access denied. An error has occurred during report processing. (rsProcessingAborted) Query execution failed for dataset 'DsMillCd'. (rsErrorExecutingCommand) Either the user, KORSNET\TFMAN, does not have access to the AnalysisServices database, or the database does not exist. If i try out the same olap cube and report trough business intelligence studio local its working, so it must be some setting on the reporting services server. Do reporting services connect to the analysis services as a another domain account? I have searched and googled for a answer for about 6 hours now without luck, i'm getting a bit frustrated to get this working. I think its only a configuration setting that i have missed, so all suggestions are welcome...
0
11,009,416
06/13/2012 06:37:18
1,437,107
06/05/2012 10:30:45
2
0
fm application fro android phone in eclipse
I have got error while running AndroidManifest.xml. It says that org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/C:/Users/user/space/demoApp/AndroidManifest.xml at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:214). How to solve it?
android
manifest
null
null
null
06/25/2012 18:54:38
not a real question
fm application fro android phone in eclipse === I have got error while running AndroidManifest.xml. It says that org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/C:/Users/user/space/demoApp/AndroidManifest.xml at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:214). How to solve it?
1
2,383,837
03/05/2010 00:52:33
269,160
02/09/2010 01:54:15
27
0
Pointer arithmetic and arrays: what's really legal?
Consider the following statements: int *pFarr, *pVarr; int farr[3] = {11,22,33}; int varr[3] = {7,8,9}; pFarr = &(farr[0]); pVarr = varr; At this stage, both pointers are pointing at the start of each respective array address. For *pFarr, we are presently looking at 11 and for *pVarr, 7. Equally, if I request the contents of each array through *farr and *varr, i also get 11 and 7. So far so good. Now, let's try `pFarr++` and `pVarr++`. Great. We're now looking at 22 and 8, as expected. But now... Trying to move up `farr++` and `varr++` ... and we get "wrong type of argument to increment". Now, I recognize the difference between an array pointer and a regular pointer, but since their behaviour is similar, why this limitation? This is further confusing to me when I also consider that in the same program I can call the following function in an ostensibly correct way and in another incorrect way, and I get the same behaviour, though in contrast to what happened in the code posted above!? working_on_pointers ( pFarr, farr ); // calling with expected parameters working_on_pointers ( farr, pFarr ); // calling with inverted parameters . void working_on_pointers ( int *pExpect, int aExpect[] ) { printf("%i", *pExpect); // displays the contents of pExpect ok printf("%i", *aExpect); // displays the contents of aExpect ok pExpect++; // no warnings or errors aExpect++; // no warnings or errors printf("%i", *pExpect); // displays the next element or an overflow element (with no errors) printf("%i", *aExpect); // displays the next element or an overflow element (with no errors) } Could someone help me to understand why array pointers and pointers behave in similar ways in some contexts, but different in others? So many thanks.
c
pointers
arrays
pointer-arithmetic
null
null
open
Pointer arithmetic and arrays: what's really legal? === Consider the following statements: int *pFarr, *pVarr; int farr[3] = {11,22,33}; int varr[3] = {7,8,9}; pFarr = &(farr[0]); pVarr = varr; At this stage, both pointers are pointing at the start of each respective array address. For *pFarr, we are presently looking at 11 and for *pVarr, 7. Equally, if I request the contents of each array through *farr and *varr, i also get 11 and 7. So far so good. Now, let's try `pFarr++` and `pVarr++`. Great. We're now looking at 22 and 8, as expected. But now... Trying to move up `farr++` and `varr++` ... and we get "wrong type of argument to increment". Now, I recognize the difference between an array pointer and a regular pointer, but since their behaviour is similar, why this limitation? This is further confusing to me when I also consider that in the same program I can call the following function in an ostensibly correct way and in another incorrect way, and I get the same behaviour, though in contrast to what happened in the code posted above!? working_on_pointers ( pFarr, farr ); // calling with expected parameters working_on_pointers ( farr, pFarr ); // calling with inverted parameters . void working_on_pointers ( int *pExpect, int aExpect[] ) { printf("%i", *pExpect); // displays the contents of pExpect ok printf("%i", *aExpect); // displays the contents of aExpect ok pExpect++; // no warnings or errors aExpect++; // no warnings or errors printf("%i", *pExpect); // displays the next element or an overflow element (with no errors) printf("%i", *aExpect); // displays the next element or an overflow element (with no errors) } Could someone help me to understand why array pointers and pointers behave in similar ways in some contexts, but different in others? So many thanks.
0
5,373,432
03/21/2011 03:10:01
606,543
02/07/2011 14:10:20
132
2
is displaymember needed?
i got an enum public enum colorStatus { green= 1, blue= 2, orange= 3, } When i bind it to the datagridviewcombobox, it works perfect. ((DataGridViewComboBoxColumn)dgSale.Columns["color"]).DataSource = Enum.GetValues(typeof(colorStatus)); **Questions:** 1) What is `DisplayMember and ValueMember` that i should set for that datagridviewcombobox?
c#
winforms
null
null
null
null
open
is displaymember needed? === i got an enum public enum colorStatus { green= 1, blue= 2, orange= 3, } When i bind it to the datagridviewcombobox, it works perfect. ((DataGridViewComboBoxColumn)dgSale.Columns["color"]).DataSource = Enum.GetValues(typeof(colorStatus)); **Questions:** 1) What is `DisplayMember and ValueMember` that i should set for that datagridviewcombobox?
0
7,590,678
09/28/2011 23:04:32
304,611
03/29/2010 21:29:12
6
2
How to roll out many-to-one file sharing re-using existing frameworks and/or hosted services?
We are working on a new product that requires non-technical users to provide us with large datasets, typically 500K - 3GB in size, and are looking for easy ways to allow lots of users to share these files with us. We’d like to provide clean and simple user experience similar to DropBox but we’d prefer not to develop it ourselves. Email is not an option. Our default would be to just implement our own browser-based AFAX file upload and develop the backend ourselves, but this strikes me as re-inventing the wheel. The main issue is that we need to support a many-to-one uploading model: 1000s of users, each with their own private folder, uploading files to be shared with us. I have been looking at file sharing services and most seem to be focused on a push / publish model, i.e. enabling end users that want to share their files. We’re looking for a solution that is more of a pull model, i.e. enabling us to ask users to agree to send us some data, and then once they’ve done so, making it trivially easy for them to send us the files e.g. via a short-lived drop box with a clean upload UX. I think what we might need is something like an a server-side framework, libraries, and/or SaaS hosted file sharing service that gives us: - Easy management of user-specific drop boxes (e.g. setting them up w expiry dates, sending email invites, etc) - Easy UI for upload: either desktop integration (like DropBox) or a modern AJAX UI (drag files into the browser) - Good end user UX (progress bars, option to restart upload, etc) - No additional accounts: users can either use existing authentication credentials from our site (e.g. via SSO) or can use a one-time encrypted URL to get access to an upload folder. Users should not need to create an account anywhere, nor need to figure out how to set up folder sharing. Branded using our brand (vs a 3rd party) - Strong security - A business model compatible with this scenario (e.g. priced per server or per GB transferred, not per user) In addition, it would be cool to have things like: - Email invitations to one-time web-based “drop boxes”, optionally with an expiration - Notifications sent to us when an end-user invitation has been used / users have uploaded files - Optionally backable by Amazon S3 or some similar scalable store Can anyone suggest existing libraries and/or services that might solve part of this for us?
file-upload
storage
saas
dropbox
null
09/29/2011 11:21:56
not a real question
How to roll out many-to-one file sharing re-using existing frameworks and/or hosted services? === We are working on a new product that requires non-technical users to provide us with large datasets, typically 500K - 3GB in size, and are looking for easy ways to allow lots of users to share these files with us. We’d like to provide clean and simple user experience similar to DropBox but we’d prefer not to develop it ourselves. Email is not an option. Our default would be to just implement our own browser-based AFAX file upload and develop the backend ourselves, but this strikes me as re-inventing the wheel. The main issue is that we need to support a many-to-one uploading model: 1000s of users, each with their own private folder, uploading files to be shared with us. I have been looking at file sharing services and most seem to be focused on a push / publish model, i.e. enabling end users that want to share their files. We’re looking for a solution that is more of a pull model, i.e. enabling us to ask users to agree to send us some data, and then once they’ve done so, making it trivially easy for them to send us the files e.g. via a short-lived drop box with a clean upload UX. I think what we might need is something like an a server-side framework, libraries, and/or SaaS hosted file sharing service that gives us: - Easy management of user-specific drop boxes (e.g. setting them up w expiry dates, sending email invites, etc) - Easy UI for upload: either desktop integration (like DropBox) or a modern AJAX UI (drag files into the browser) - Good end user UX (progress bars, option to restart upload, etc) - No additional accounts: users can either use existing authentication credentials from our site (e.g. via SSO) or can use a one-time encrypted URL to get access to an upload folder. Users should not need to create an account anywhere, nor need to figure out how to set up folder sharing. Branded using our brand (vs a 3rd party) - Strong security - A business model compatible with this scenario (e.g. priced per server or per GB transferred, not per user) In addition, it would be cool to have things like: - Email invitations to one-time web-based “drop boxes”, optionally with an expiration - Notifications sent to us when an end-user invitation has been used / users have uploaded files - Optionally backable by Amazon S3 or some similar scalable store Can anyone suggest existing libraries and/or services that might solve part of this for us?
1
7,760,370
10/13/2011 21:00:23
994,338
10/13/2011 20:54:35
1
0
Small business owner page
I have a small tattoo shop in coralville, ia. i had previously created a page for this business and connected it with my personal facebook page. heres whats up though, i would like to have customers, friends, and myself to be able to check-in to my business. im not what you would call a computer savy person. is there any way you can help me or lend me some helpful hints to achieve this? Thank you. Jerry Mendoza Hot Spot Tattoo and Piercing
types
facebook-page
check-in
null
null
10/14/2011 18:20:04
off topic
Small business owner page === I have a small tattoo shop in coralville, ia. i had previously created a page for this business and connected it with my personal facebook page. heres whats up though, i would like to have customers, friends, and myself to be able to check-in to my business. im not what you would call a computer savy person. is there any way you can help me or lend me some helpful hints to achieve this? Thank you. Jerry Mendoza Hot Spot Tattoo and Piercing
2
543,318
02/12/2009 21:19:11
46,724
12/16/2008 16:30:38
127
12
ReSharper: Can it stand in as a co-programmer?
The comments [here][1] got me thinking. If you are a new Developer without a mentor and no one to collaborate on for your projects; can a tool, **ReSharper** in this case, stand in that capacity? Does it need another tool or process, system or human, to accomplish this. I am in no position to get a fellow dev soon and I fear StackOverFlow will BAN me long before I run out of ignorant questions. In my case can tools like **ReSharper**, **StyleCop**, **ReFlector** make a significant difference. In **ReSharpers** case does the refactoring capabilities really pan out from the learning perspective or is it simply `*poof*` your code is better with little chance of gaining understanding as to WHY I should have extracted that method stub? I desperately want to get to the point where I am *capable* of answering as many questions here as I ask. Have a blessed day and thank you for your time. [1]: http://stackoverflow.com/questions/543087/custom-class-for-dealing-with-embedding-in-forms/543115#543115
resharper
career-development
solo-developer
tools
null
12/10/2011 17:23:03
not constructive
ReSharper: Can it stand in as a co-programmer? === The comments [here][1] got me thinking. If you are a new Developer without a mentor and no one to collaborate on for your projects; can a tool, **ReSharper** in this case, stand in that capacity? Does it need another tool or process, system or human, to accomplish this. I am in no position to get a fellow dev soon and I fear StackOverFlow will BAN me long before I run out of ignorant questions. In my case can tools like **ReSharper**, **StyleCop**, **ReFlector** make a significant difference. In **ReSharpers** case does the refactoring capabilities really pan out from the learning perspective or is it simply `*poof*` your code is better with little chance of gaining understanding as to WHY I should have extracted that method stub? I desperately want to get to the point where I am *capable* of answering as many questions here as I ask. Have a blessed day and thank you for your time. [1]: http://stackoverflow.com/questions/543087/custom-class-for-dealing-with-embedding-in-forms/543115#543115
4
4,651,395
01/10/2011 20:51:55
380,956
07/01/2010 09:58:34
37
3
MPMoviePlayer Bad-Access error after playing video....
I´ve created an new ViewController (only with the .h and .m file) and added that code to play a video. After the video has finished, i get a "Exe_bad_access" error. Whats wrong with that? How can i do correct memory management when playing video? #import "TestPlayingVideoViewController.h" #import <MediaPlayer/MediaPlayer.h> @implementation TestPlayingVideoViewController - (void)viewDidLoad { [super viewDidLoad]; [self.view setBackgroundColor:[UIColor darkGrayColor]]; UIButton* btn = [[UIButton alloc] initWithFrame:CGRectMake(50 , 50, 200, 25)]; [btn setTitle:@"press me" forState:UIControlStateNormal]; [btn addTarget:self action:@selector(action:) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:btn]; [btn release]; } - (void)action:(id)sender { NSLog(@"UIButton was clicked"); NSString *url = [[NSBundle mainBundle] pathForResource:@"mymovie" ofType:@"m4v"]; MPMoviePlayerViewController* moviePlayerController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL fileURLWithPath:url] ]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayBackComplete:) name:MPMoviePlayerPlaybackDidFinishNotification object:moviePlayerController.moviePlayer]; [moviePlayerController.moviePlayer play]; //[self.view addSubview:moviePlayerController.view]; [self presentMoviePlayerViewControllerAnimated:moviePlayerController]; } - (void) moviePlayBackComplete:(NSNotification*) notification { MPMoviePlayerController* player = [notification object]; [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:player]; [self dismissMoviePlayerViewControllerAnimated]; [player stop]; //[self.view removeFromSuperView]; [player release]; } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; // Release any cached data, images, etc that aren't in use. } - (void)viewDidUnload { // Release any retained subviews of the main view. // e.g. self.myOutlet = nil; } - (void)dealloc { [super dealloc]; } @end
iphone
video
mpmovieplayercontroller
exc-bad-access
null
null
open
MPMoviePlayer Bad-Access error after playing video.... === I´ve created an new ViewController (only with the .h and .m file) and added that code to play a video. After the video has finished, i get a "Exe_bad_access" error. Whats wrong with that? How can i do correct memory management when playing video? #import "TestPlayingVideoViewController.h" #import <MediaPlayer/MediaPlayer.h> @implementation TestPlayingVideoViewController - (void)viewDidLoad { [super viewDidLoad]; [self.view setBackgroundColor:[UIColor darkGrayColor]]; UIButton* btn = [[UIButton alloc] initWithFrame:CGRectMake(50 , 50, 200, 25)]; [btn setTitle:@"press me" forState:UIControlStateNormal]; [btn addTarget:self action:@selector(action:) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:btn]; [btn release]; } - (void)action:(id)sender { NSLog(@"UIButton was clicked"); NSString *url = [[NSBundle mainBundle] pathForResource:@"mymovie" ofType:@"m4v"]; MPMoviePlayerViewController* moviePlayerController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL fileURLWithPath:url] ]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayBackComplete:) name:MPMoviePlayerPlaybackDidFinishNotification object:moviePlayerController.moviePlayer]; [moviePlayerController.moviePlayer play]; //[self.view addSubview:moviePlayerController.view]; [self presentMoviePlayerViewControllerAnimated:moviePlayerController]; } - (void) moviePlayBackComplete:(NSNotification*) notification { MPMoviePlayerController* player = [notification object]; [[NSNotificationCenter defaultCenter] removeObserver:self name:MPMoviePlayerPlaybackDidFinishNotification object:player]; [self dismissMoviePlayerViewControllerAnimated]; [player stop]; //[self.view removeFromSuperView]; [player release]; } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; // Release any cached data, images, etc that aren't in use. } - (void)viewDidUnload { // Release any retained subviews of the main view. // e.g. self.myOutlet = nil; } - (void)dealloc { [super dealloc]; } @end
0
10,888,539
06/04/2012 21:20:06
1,433,953
06/03/2012 19:45:27
1
0
python cgi ajax lag
im using a python script to display text to the screen with ajax but it's laggy and sometimes not even working.. here's the python script <!-- language: python --> #!/usr/bin/env python import cgi, cgitb form = cgi.FieldStorage() q = form.getvalue('q') print "Content-Type: text/html\n" print q and the html <!DOCTYPE html> <html> <head> <script type="text/javascript"> function show(str){ var xmlhttp; if (str.length == 0){ document.getElementById("hint").innerHTML = ""; return; } if(window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } else{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4 && xmlhttp.status==200){ document.getElementById("hint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","../cgi-bin/ajax_test.py?q="+str,true); xmlhttp.send(); } </script> </head> <body> <form action=""> <input type="text" id="txt1" onkeyup="show(this.value)" /> </form> <span id="hint"></span> </body> </html> is it my code's fault? or is it because cgi/python is slow?
python
ajax
cgi
null
null
null
open
python cgi ajax lag === im using a python script to display text to the screen with ajax but it's laggy and sometimes not even working.. here's the python script <!-- language: python --> #!/usr/bin/env python import cgi, cgitb form = cgi.FieldStorage() q = form.getvalue('q') print "Content-Type: text/html\n" print q and the html <!DOCTYPE html> <html> <head> <script type="text/javascript"> function show(str){ var xmlhttp; if (str.length == 0){ document.getElementById("hint").innerHTML = ""; return; } if(window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } else{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4 && xmlhttp.status==200){ document.getElementById("hint").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","../cgi-bin/ajax_test.py?q="+str,true); xmlhttp.send(); } </script> </head> <body> <form action=""> <input type="text" id="txt1" onkeyup="show(this.value)" /> </form> <span id="hint"></span> </body> </html> is it my code's fault? or is it because cgi/python is slow?
0
5,464,823
03/28/2011 20:42:00
680,930
03/28/2011 20:38:43
1
0
Complie C++ Libraries in Windows
I'm writing some C++ programs on Windows and I would like to use some libraries I found online but all the ones I find are in the format .tar.gz. Am I still able to use these on a windows computer? And if so, can I distribute my program and have others use it without having to install and compile the packages?
c++
windows
programming-languages
compilation
null
03/28/2011 21:27:53
not a real question
Complie C++ Libraries in Windows === I'm writing some C++ programs on Windows and I would like to use some libraries I found online but all the ones I find are in the format .tar.gz. Am I still able to use these on a windows computer? And if so, can I distribute my program and have others use it without having to install and compile the packages?
1
4,674,037
01/12/2011 21:02:45
536,607
12/09/2010 15:14:36
1
0
A function that will convert input string to the actual object
I am unsure how to describe what I am looking for, so hopefully the situation will make it somewhat clear. I have an object with a number of properties (let's say object.one, object.two, object.three). There are about 30 of these properties and they all hold a string ("Pass" or "Fail"). Right now the existing code checks whether the property has value "Pass" or "Fail" and then runs some code that prints stuff out. That is, the same snippet of code is duplicated 30 times, one for each of these properties. The code looks something like this If (object.one = ... )<br/> ...<br> End if<br> If (object.two = ... )<br> ...<br> End if<br> If (object.three = ... )<br> ...<br> End if I want to use a loop to clean this mess up (each block is huge), but am not sure how to do it. I was thinking perhaps there was a way such that I might be able to construct a string like "object.one" and run some function that will tell the compiler that this is actually an object's property? That way I could create an array containing the object's name like my array = {"object.one", "object.two", "object.three"} and then do something like, in pseudocode For each string in my array<br> &nbsp;&nbsp;&nbsp;If (some_function(string) = ...)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br> &nbsp;&nbsp;&nbsp;End If Essentially, it would take those massive blocks of duplicated code and reduce it to just one block. Is there such a some_function that I am looking for? This is in VB.net
vb.net
null
null
null
null
null
open
A function that will convert input string to the actual object === I am unsure how to describe what I am looking for, so hopefully the situation will make it somewhat clear. I have an object with a number of properties (let's say object.one, object.two, object.three). There are about 30 of these properties and they all hold a string ("Pass" or "Fail"). Right now the existing code checks whether the property has value "Pass" or "Fail" and then runs some code that prints stuff out. That is, the same snippet of code is duplicated 30 times, one for each of these properties. The code looks something like this If (object.one = ... )<br/> ...<br> End if<br> If (object.two = ... )<br> ...<br> End if<br> If (object.three = ... )<br> ...<br> End if I want to use a loop to clean this mess up (each block is huge), but am not sure how to do it. I was thinking perhaps there was a way such that I might be able to construct a string like "object.one" and run some function that will tell the compiler that this is actually an object's property? That way I could create an array containing the object's name like my array = {"object.one", "object.two", "object.three"} and then do something like, in pseudocode For each string in my array<br> &nbsp;&nbsp;&nbsp;If (some_function(string) = ...)<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;...<br> &nbsp;&nbsp;&nbsp;End If Essentially, it would take those massive blocks of duplicated code and reduce it to just one block. Is there such a some_function that I am looking for? This is in VB.net
0
5,012,609
02/16/2011 04:44:04
74,984
03/07/2009 06:48:45
500
7
Adding library code to your project, or use precompiled binaries?
I need some advice on my project. I am going to use various C++ libraries to accomplish different tasks. I am using Visual Studio 2008. To me, it seems to get a little out of hand when I add the actual source code of the library to my project's path. It seems easier to just use the include files of the library, and just link precompiled binaries to my application. So my question is this. Is it better for me to include the source code of each library to my project, compile and link, or will it be better to just compile the libraries separately (or download a precompiled version) and link it to my program? Are there any pitfalls of the second way? Thanks
c++
visual-studio-2008
precompiled
null
null
null
open
Adding library code to your project, or use precompiled binaries? === I need some advice on my project. I am going to use various C++ libraries to accomplish different tasks. I am using Visual Studio 2008. To me, it seems to get a little out of hand when I add the actual source code of the library to my project's path. It seems easier to just use the include files of the library, and just link precompiled binaries to my application. So my question is this. Is it better for me to include the source code of each library to my project, compile and link, or will it be better to just compile the libraries separately (or download a precompiled version) and link it to my program? Are there any pitfalls of the second way? Thanks
0
3,634,293
09/03/2010 08:59:12
198,079
10/28/2009 12:51:31
8
0
iPhone background network connection by timer
I need to write an application, that every 10 minutes it should be awaken from suspended mode, get user location via gps and send this information to the server by network. Depending on the response it should return to the suspended mode or show local notification to the user. Is there a way to do this on iOS 4? I've tried different approaches, but the only working for me was to start monitoring user location in backgroind and declare the application as location background application. In that case it worked in background and has a network connection. But this approach takes a lot of power and not accepted cause application should work 24/7. May be there is a way to write some daemon that should work in background and wake my application every 10 minutes?
iphone
objective-c
background
iphone-sdk-4.0
null
null
open
iPhone background network connection by timer === I need to write an application, that every 10 minutes it should be awaken from suspended mode, get user location via gps and send this information to the server by network. Depending on the response it should return to the suspended mode or show local notification to the user. Is there a way to do this on iOS 4? I've tried different approaches, but the only working for me was to start monitoring user location in backgroind and declare the application as location background application. In that case it worked in background and has a network connection. But this approach takes a lot of power and not accepted cause application should work 24/7. May be there is a way to write some daemon that should work in background and wake my application every 10 minutes?
0
2,149,499
01/27/2010 18:50:31
63,623
02/07/2009 07:35:19
120
9
Should a Federal Tax Id be encrypted in a database?
My first inclination is to say yes, since it's essentially a corporation's SSN which I would encrypt. However, I'm not sure whether SOX or and Federal guidelines actually require it to be encrypted. Anyone know for sure?
database
encryption
security
null
null
01/28/2010 01:48:32
off topic
Should a Federal Tax Id be encrypted in a database? === My first inclination is to say yes, since it's essentially a corporation's SSN which I would encrypt. However, I'm not sure whether SOX or and Federal guidelines actually require it to be encrypted. Anyone know for sure?
2
3,018,054
06/10/2010 20:05:57
115,730
06/02/2009 02:01:00
21,524
707
Retrieve names of running processes
First off, I know that similar questions have been asked, but the answers provided haven't been very helpful so far (they all recommend one of the following options). I have a user application that needs to determine if a particular process is running. Here's what I know about the process: - The name - The user (`root`) - It *should* already be running, since it's a LaunchDaemon, which means - Its parent process should be `launchd` (pid 1) I've tried several ways to get this, but none have worked so far. Here's what I've tried: 1. Running `ps` and parsing the output. This works, but it's slow (`fork`/`exec` is expensive), and I'd like this to be as fast as possible. 2. Using the `GetBSDProcessList` function [listed here][qa1123]. This also works, but the way in which they say to retrieve the process name (accessing `kp_proc.p_comm` from each `kinfo_proc` structure) is flawed. The resulting `char*` only contains the first 16 characters of the process name, which can be seen in the definition of the `kp_proc` structure: <pre>#define MAXCOMLEN 16 //defined in param.h struct extern_proc { //defined in proc.h ...snip... char p_comm[MAXCOMLEN+1]; ...snip... };</pre> 3. Using [libProc.h][libproc] to retrieve process information: <pre>pid_t pids[1024]; int numberOfProcesses = proc_listpids(PROC_ALL_PIDS, 0, NULL, 0); proc_listpids(PROC_ALL_PIDS, 0, pids, sizeof(pids)); for (int i = 0; i &lt; numberOfProcesses; ++i) { if (pids[i] == 0) { continue; } char name[1024]; proc_name(pids[i], name, sizeof(name)); printf("Found process: %s\n", name); }</pre> This works, except it has the same flaw as `GetBSDProcessList`. Only the first portion of the process name is returned. 4. Using the [ProcessManager function][pm] in Carbon: <pre>ProcessSerialNumber psn; psn.lowLongOfPSN = kNoProcess; psn.highLongOfPSN = 0; while (GetNextProcess(&psn) == noErr) { CFStringRef procName = NULL; if (CopyProcessName(&psn, &procName) == noErr) { NSLog(@"Found process: %@", (NSString *)procName); } CFRelease(procName); }</pre> This does not work. It only returns process that are registered with the WindowServer (or something like that). In other words, it only returns apps with UIs, and only for the current user. 5. I can't use [`-[NSWorkspace launchedApplications]`][nsws], since this must be 10.5-compatible. I know that it's *possible* to retrieve the name of running processes (since `ps` can do it), but the question is "Can I do it without forking and exec'ing `ps`?". Any suggestions? [qa1123]: http://developer.apple.com/mac/library/qa/qa2001/qa1123.html [libproc]: http://www.opensource.apple.com/source/Libc/Libc-594.1.4/darwin/libproc.h [pm]: http://developer.apple.com/mac/library/documentation/Carbon/Reference/Process_Manager/Reference/reference.html [nsws]: http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSWorkspace_Class/Reference/Reference.html#//apple_ref/doc/uid/20000391-BCIEGAJI
c
objective-c
osx
process
carbon
null
open
Retrieve names of running processes === First off, I know that similar questions have been asked, but the answers provided haven't been very helpful so far (they all recommend one of the following options). I have a user application that needs to determine if a particular process is running. Here's what I know about the process: - The name - The user (`root`) - It *should* already be running, since it's a LaunchDaemon, which means - Its parent process should be `launchd` (pid 1) I've tried several ways to get this, but none have worked so far. Here's what I've tried: 1. Running `ps` and parsing the output. This works, but it's slow (`fork`/`exec` is expensive), and I'd like this to be as fast as possible. 2. Using the `GetBSDProcessList` function [listed here][qa1123]. This also works, but the way in which they say to retrieve the process name (accessing `kp_proc.p_comm` from each `kinfo_proc` structure) is flawed. The resulting `char*` only contains the first 16 characters of the process name, which can be seen in the definition of the `kp_proc` structure: <pre>#define MAXCOMLEN 16 //defined in param.h struct extern_proc { //defined in proc.h ...snip... char p_comm[MAXCOMLEN+1]; ...snip... };</pre> 3. Using [libProc.h][libproc] to retrieve process information: <pre>pid_t pids[1024]; int numberOfProcesses = proc_listpids(PROC_ALL_PIDS, 0, NULL, 0); proc_listpids(PROC_ALL_PIDS, 0, pids, sizeof(pids)); for (int i = 0; i &lt; numberOfProcesses; ++i) { if (pids[i] == 0) { continue; } char name[1024]; proc_name(pids[i], name, sizeof(name)); printf("Found process: %s\n", name); }</pre> This works, except it has the same flaw as `GetBSDProcessList`. Only the first portion of the process name is returned. 4. Using the [ProcessManager function][pm] in Carbon: <pre>ProcessSerialNumber psn; psn.lowLongOfPSN = kNoProcess; psn.highLongOfPSN = 0; while (GetNextProcess(&psn) == noErr) { CFStringRef procName = NULL; if (CopyProcessName(&psn, &procName) == noErr) { NSLog(@"Found process: %@", (NSString *)procName); } CFRelease(procName); }</pre> This does not work. It only returns process that are registered with the WindowServer (or something like that). In other words, it only returns apps with UIs, and only for the current user. 5. I can't use [`-[NSWorkspace launchedApplications]`][nsws], since this must be 10.5-compatible. I know that it's *possible* to retrieve the name of running processes (since `ps` can do it), but the question is "Can I do it without forking and exec'ing `ps`?". Any suggestions? [qa1123]: http://developer.apple.com/mac/library/qa/qa2001/qa1123.html [libproc]: http://www.opensource.apple.com/source/Libc/Libc-594.1.4/darwin/libproc.h [pm]: http://developer.apple.com/mac/library/documentation/Carbon/Reference/Process_Manager/Reference/reference.html [nsws]: http://developer.apple.com/mac/library/documentation/cocoa/reference/ApplicationKit/Classes/NSWorkspace_Class/Reference/Reference.html#//apple_ref/doc/uid/20000391-BCIEGAJI
0
11,491,114
07/15/2012 10:17:29
1,152,980
01/17/2012 01:13:04
129
2
Mediawiki widgets load but don't display.
I have a working mediawiki instance where I have added the "widgets" extension. With this I have added the youtube widget extension. It works perfectly. I am now moving to a new server and have installed the same extension(s). However a problem occurs in that mediawiki obviously *recognizes* and "loads" the extensions, but my youtube videos don't output a display. There are no errors displayed on-page. It's just blank. It "feels" like a cache issue of some sort but a hard refresh doesn't do anything. Here is an example. The video header is where a video should be outputting. https://216.70.110.23:7081/index.php?title=Ableton_Live:Tempo_changes#Arrangement_view
mediawiki
widgets
null
null
null
07/16/2012 12:28:49
off topic
Mediawiki widgets load but don't display. === I have a working mediawiki instance where I have added the "widgets" extension. With this I have added the youtube widget extension. It works perfectly. I am now moving to a new server and have installed the same extension(s). However a problem occurs in that mediawiki obviously *recognizes* and "loads" the extensions, but my youtube videos don't output a display. There are no errors displayed on-page. It's just blank. It "feels" like a cache issue of some sort but a hard refresh doesn't do anything. Here is an example. The video header is where a video should be outputting. https://216.70.110.23:7081/index.php?title=Ableton_Live:Tempo_changes#Arrangement_view
2
4,211,828
11/18/2010 05:02:22
251,153
01/14/2010 23:18:20
10,839
334
GCD block triggering EXC_BAD_ACCESS on invoke
I'm making a non-garbage-collected MacFUSE Cocoa application, inside of which I want to use a GCD block as a delegate. However, my program crashes during the invocation of the block, leaving only an `EXC_BAD_ACCESS` in its trail. My program uses a framework built agains the Mac OS 10.5 SDK that does not support garbage collection (nor 64 bits) and the MacFUSE framework. The program builds with no warning or error as a 32-bit program. Other build settings (such as optimization level) were left to their original values. So I have my application controller, from which I create this block and call ` runWithContinuation:` AFSPasswordPrompt* prompt = [[AFSPasswordPrompt alloc] initWithIcon:icon]; dispatch_block_t continuation = ^{ archive.password = prompt.password; [self mountFilesystem:fsController]; [prompt performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:NO]; }; [prompt runWithContinuation:continuation]; `runWithContinuation:` retains the block and instantiates a nib. The block is called only once the user dismisses the password prompt by pressing the "Open" button. -(void)runWithContinuation:(dispatch_block_t)block { continuation = [block retain]; [passwordPrompt instantiateNibWithOwner:self topLevelObjects:NULL]; imageView.image = image; [window makeKeyWindow]; } -(IBAction)open:(id)sender { continuation(); [self close]; } -(void)close { [window close]; [continuation release]; } My problem is that when I hit `continuation()`, my program triggers an `EXC_BAD_ACCESS`, and the last stack frame is called `??`. Right under it is the `open:` method call. I really don't know where it's coming from. NSZombies are enabled, and they don't report anything. Any ideas?
cocoa
osx
gcd
macfuse
null
null
open
GCD block triggering EXC_BAD_ACCESS on invoke === I'm making a non-garbage-collected MacFUSE Cocoa application, inside of which I want to use a GCD block as a delegate. However, my program crashes during the invocation of the block, leaving only an `EXC_BAD_ACCESS` in its trail. My program uses a framework built agains the Mac OS 10.5 SDK that does not support garbage collection (nor 64 bits) and the MacFUSE framework. The program builds with no warning or error as a 32-bit program. Other build settings (such as optimization level) were left to their original values. So I have my application controller, from which I create this block and call ` runWithContinuation:` AFSPasswordPrompt* prompt = [[AFSPasswordPrompt alloc] initWithIcon:icon]; dispatch_block_t continuation = ^{ archive.password = prompt.password; [self mountFilesystem:fsController]; [prompt performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:NO]; }; [prompt runWithContinuation:continuation]; `runWithContinuation:` retains the block and instantiates a nib. The block is called only once the user dismisses the password prompt by pressing the "Open" button. -(void)runWithContinuation:(dispatch_block_t)block { continuation = [block retain]; [passwordPrompt instantiateNibWithOwner:self topLevelObjects:NULL]; imageView.image = image; [window makeKeyWindow]; } -(IBAction)open:(id)sender { continuation(); [self close]; } -(void)close { [window close]; [continuation release]; } My problem is that when I hit `continuation()`, my program triggers an `EXC_BAD_ACCESS`, and the last stack frame is called `??`. Right under it is the `open:` method call. I really don't know where it's coming from. NSZombies are enabled, and they don't report anything. Any ideas?
0
11,221,081
06/27/2012 07:10:13
529,065
12/03/2010 07:38:48
95
8
jaxws import. binding file being ignored
I am trying to generate my java classes using jaxws. The problem is that my binding files are being ignored. I have two binding files in the bindingDirectory. Maybe someone could help ? <profiles> <profile> <id>Generate model (POJOS) from wsdl</id> <activation> <activeByDefault>true</activeByDefault> </activation> <build> <!-- JAX-WS provides a tool called wsimport which takes the WSDL of a web service and generates proxy classes or the WSDL's service and port definitions. These can then be used to access the web service endpoint. --> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxws-maven-plugin</artifactId> <executions> <execution> <id>Id1</id> <goals> <goal>wsimport</goal> </goals> <configuration> <wsdlUrls> <wsdlUrl>http://intan.local:8080/toa/ws/airService?wsdl</wsdlUrl> </wsdlUrls> <target>2.1</target> <xjcArgs> <xjcArg>-XautoNameResolution</xjcArg> </xjcArgs> <verbose>true</verbose> <extension>true</extension> <bindingDirectory>src/main/resources/schemas/2011b/xjb</bindingDirectory> <keep>true</keep> <packageName>gr.intan.toa._2011b</packageName> <sourceDestDir>src/main/generated</sourceDestDir> <extension>true</extension> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>javax.xml</groupId> <artifactId>webservices-api</artifactId> <version>1.4</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-xjc</artifactId> <version>2.1.12</version> </dependency> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>jaxws-rt</artifactId> <version>2.1.4</version> </dependency> </dependencies> <configuration> <target>2.1</target> <xjcArgs> <xjcArg>-XautoNameResolution</xjcArg> </xjcArgs> <bindingDirectory>src/main/resources/schemas/2011b/xjb</bindingDirectory> <keep>true</keep> </configuration> </plugin> </plugins> </build> </profile> thanks in advance
java
maven
wsdl
jaxb
null
null
open
jaxws import. binding file being ignored === I am trying to generate my java classes using jaxws. The problem is that my binding files are being ignored. I have two binding files in the bindingDirectory. Maybe someone could help ? <profiles> <profile> <id>Generate model (POJOS) from wsdl</id> <activation> <activeByDefault>true</activeByDefault> </activation> <build> <!-- JAX-WS provides a tool called wsimport which takes the WSDL of a web service and generates proxy classes or the WSDL's service and port definitions. These can then be used to access the web service endpoint. --> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jaxws-maven-plugin</artifactId> <executions> <execution> <id>Id1</id> <goals> <goal>wsimport</goal> </goals> <configuration> <wsdlUrls> <wsdlUrl>http://intan.local:8080/toa/ws/airService?wsdl</wsdlUrl> </wsdlUrls> <target>2.1</target> <xjcArgs> <xjcArg>-XautoNameResolution</xjcArg> </xjcArgs> <verbose>true</verbose> <extension>true</extension> <bindingDirectory>src/main/resources/schemas/2011b/xjb</bindingDirectory> <keep>true</keep> <packageName>gr.intan.toa._2011b</packageName> <sourceDestDir>src/main/generated</sourceDestDir> <extension>true</extension> </configuration> </execution> </executions> <dependencies> <dependency> <groupId>javax.xml</groupId> <artifactId>webservices-api</artifactId> <version>1.4</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-xjc</artifactId> <version>2.1.12</version> </dependency> <dependency> <groupId>com.sun.xml.ws</groupId> <artifactId>jaxws-rt</artifactId> <version>2.1.4</version> </dependency> </dependencies> <configuration> <target>2.1</target> <xjcArgs> <xjcArg>-XautoNameResolution</xjcArg> </xjcArgs> <bindingDirectory>src/main/resources/schemas/2011b/xjb</bindingDirectory> <keep>true</keep> </configuration> </plugin> </plugins> </build> </profile> thanks in advance
0
10,924,138
06/07/2012 00:25:21
993,588
10/13/2011 13:43:31
46
2
Accessing jSON values jQuery
I have jSON being returned like so: { "response": { "2012-07-01": { "Variations": [ { "ID": 293, "InternalItemID": "xyz", "RRP": "50.00", "Price": "40.00", "Available": 65, "RedeemableDate": "2012-07-01" }, { "ID": 107, "InternalItemID": "xxx", "RRP": "50.00", "Price": "10.00", "Available": 15, "RedeemableDate": "2012-07-01" }, { "ID": 200, "InternalItemID": "Item name", "RRP": "50.00", "Price": "40.00", "Available": 65, "RedeemableDate": "2012-07-01" } ] } } } I need to cycle through it and access the various values. I am currently trying to do this like so: var calevents = []; $.each(data.response, function(index,item){ calDate = index; child = item.Variations; if ($.isEmptyObject(child) == false){ calPrice = child[0].Price; calID = child[0].ID; calAvailable = child[0].Available; calevents.push({ 'id': calID, 'title': buildEventTitle(calAvailable,calDate.substring(calDate.length,calDate.length-2),child[0].Price, calID, child[0].RRP), 'start': $.fullCalendar.parseDate(calDate), 'end': $.fullCalendar.parseDate(calDate), 'allDay': true }); } }); but am getting child[0] is not defined errors. Where am I going wrong?
jquery
json
null
null
null
null
open
Accessing jSON values jQuery === I have jSON being returned like so: { "response": { "2012-07-01": { "Variations": [ { "ID": 293, "InternalItemID": "xyz", "RRP": "50.00", "Price": "40.00", "Available": 65, "RedeemableDate": "2012-07-01" }, { "ID": 107, "InternalItemID": "xxx", "RRP": "50.00", "Price": "10.00", "Available": 15, "RedeemableDate": "2012-07-01" }, { "ID": 200, "InternalItemID": "Item name", "RRP": "50.00", "Price": "40.00", "Available": 65, "RedeemableDate": "2012-07-01" } ] } } } I need to cycle through it and access the various values. I am currently trying to do this like so: var calevents = []; $.each(data.response, function(index,item){ calDate = index; child = item.Variations; if ($.isEmptyObject(child) == false){ calPrice = child[0].Price; calID = child[0].ID; calAvailable = child[0].Available; calevents.push({ 'id': calID, 'title': buildEventTitle(calAvailable,calDate.substring(calDate.length,calDate.length-2),child[0].Price, calID, child[0].RRP), 'start': $.fullCalendar.parseDate(calDate), 'end': $.fullCalendar.parseDate(calDate), 'allDay': true }); } }); but am getting child[0] is not defined errors. Where am I going wrong?
0
3,141,861
06/29/2010 14:50:55
247,184
01/09/2010 18:42:25
1,580
156
SQL: CASE and selecting multiple COLUMS
How can I do this: Based on the select Case below I want to show TWO separate columns within one WHEN? The two lines below which are commented is what something I would like to have and I am sure it is something very simple I am missing....however i get syntax error select person.FirstName, person.LastName, CASE --WHEN substatus is not null then 'HasSubstatus', null --else null, 'DoesNotHaveSubstatus' WHEN substatus is not null then 'HasSubstatus' else null end from Person person
sql
mysql
query
sybase
null
null
open
SQL: CASE and selecting multiple COLUMS === How can I do this: Based on the select Case below I want to show TWO separate columns within one WHEN? The two lines below which are commented is what something I would like to have and I am sure it is something very simple I am missing....however i get syntax error select person.FirstName, person.LastName, CASE --WHEN substatus is not null then 'HasSubstatus', null --else null, 'DoesNotHaveSubstatus' WHEN substatus is not null then 'HasSubstatus' else null end from Person person
0
11,355,084
07/06/2012 02:26:41
1,493,785
07/01/2012 02:47:47
1
0
Programming A Calculator , Need Assistance
When implementing a calculator into an application, would I be able to use my own formula, and if so how would I be able to do that?
xcode
xcode4.3
null
null
null
07/06/2012 02:42:55
not a real question
Programming A Calculator , Need Assistance === When implementing a calculator into an application, would I be able to use my own formula, and if so how would I be able to do that?
1
4,416,902
12/11/2010 13:20:45
538,856
12/11/2010 12:28:01
1
0
software that support apple's http live streaming
Is there any client or player on PC or linux platform which supports Apple http live streaming draft propsal. That is, it is able to reload the m3u8 playlist automatically to do live streaming. I tried apple's sample page(http://devimages.apple.com/iphone/samples/bipbopall.html) for iphone on Safari and Chrome, not work. Thanks
http-live-streaming
null
null
null
null
null
open
software that support apple's http live streaming === Is there any client or player on PC or linux platform which supports Apple http live streaming draft propsal. That is, it is able to reload the m3u8 playlist automatically to do live streaming. I tried apple's sample page(http://devimages.apple.com/iphone/samples/bipbopall.html) for iphone on Safari and Chrome, not work. Thanks
0
9,947,241
03/30/2012 16:52:12
384,016
07/05/2010 21:59:54
1,247
14
Should I use TTD at the beginning of a new project
I am working on a new PHP project and while I like TTD, I am finding that it seem to be more hindering than being helpful at this stage of the project. I started off writing unit tests however now that I am deeper into prototyping of some the application features, I find myself rewriting bits and pieces of the core framework along with writing the tests. It just seems like I am spending a lot more time rewriting tests where maybe I should wait until I am in more of an alpha/beta phase of the project. Should I be writing unit test from the beginning even though there is a high chance I am going to have to rewrite them?
unit-testing
tdd
null
null
null
04/02/2012 22:48:19
not constructive
Should I use TTD at the beginning of a new project === I am working on a new PHP project and while I like TTD, I am finding that it seem to be more hindering than being helpful at this stage of the project. I started off writing unit tests however now that I am deeper into prototyping of some the application features, I find myself rewriting bits and pieces of the core framework along with writing the tests. It just seems like I am spending a lot more time rewriting tests where maybe I should wait until I am in more of an alpha/beta phase of the project. Should I be writing unit test from the beginning even though there is a high chance I am going to have to rewrite them?
4
7,780,585
10/15/2011 20:52:17
997,055
10/15/2011 16:54:15
1
0
Someone needs to create programs of unrelated subjects in the least time possible - what tools should he use/learn?
***Note: This is big because I wrote a lot of examples just to make the question the most clear I could. You can just read the question. Feel free to read the examples if you are not sure of what I'm asking.*** **QUESTION:** A programmer will have a job where he will need to create a wide range of applications of unrelated problems, possibly problems that are completely new to the programmer, possibly with multiple requeriments (ex: databases+3d graphics+networking), in the least time possible counting from the instant he is asked to do so. Those applications doesn't need to be optimized but they need to be optimizable if required. What tools/languages/libraries should he learn? **EXAMPLES:** For instance that person would/could need: - True object oriented base (I think that is the name) - he needs to, for instance: get all instances of a class calling Class.instances, modify a Class in runtime - also, retrieve a reference to the Class object of a instance calling instance.type and being able to compare between classes like: *myBird.type.isChildrenOf(Animal) //compares if type of myBird instance is inherited from Animal*. Other features like keeping track of past states of instances, for instance, *if (last(pos)=[3,0,0]) then //checks if last state of vector pos was [3,0,0]* and automatically synchronizing instances between different applications, for instance, *game = create Game; //creates instance of class Game game.syncronize("www.mygame.com",51320); //syncronizes "game" instance to that hosted by "www.mygame.com" on port 51320. * - Good mathematical base including types that represent 2d/3d vertexes, matrixes, mathematical functions, geometric objects. Even better if every other library was actually based on that mathematical base, for instance, if every function of the other libraries that requires a xy pair could receive just a 2d vertex instead of 2 integers/floats. I would love it even more if there was no "integer", "float" etc but rather a type "number" with arbitrary precision and support for complex numbers. Methods to integrate, rotate 3d meshes, check for interceptions etc. would be nice. - Great array support, including the hability to create them without lots of code. Arrays that resize automatically, that aren't bound to specific types, that are smart enough to use the proper internal representation based on what the programmer users. Functions to sort, loop though all elements, find elements based on their variables, for instance *(array.search(type=Bird,|velocity|>[3]) to search for all elements of array whose type is Bird and modulus of velocity > 3)*. - Multi-threading support including smart threads that avoid inconsistency by themselves in an easy manner. Even better if the whole language was based in multi-threading. For instance, a "*foreach <x> in <y> do <f>*" that automatically creates a thread running function f for each instance x in array y and returns the threads created; or a "when <expression> do <f>" that will run the function <f> whenever during the execution of the program <expression> comes true. - Really huge 2d graphics support, including functions to render texts, geometric forms, sprites, apply effects, etc., on a bitmap. Support for plotting graphics of mathematical functions. Support for GUI. - Good 3d graphics support including functions to load, modify and save 3d meshes in many formats and render them in different projections modes without the programmer having to worry about more advanced topics (but giving the options to do so). - Huge networking support including the capacity of stabilishing TCP connections, sending UDP messages, make a HTTP request. It would also be cool a feature to simulate a browser including rendering html, css, etc., pages, running javascript. - Objects to work with databases like Mysql, to work with files. - You got the point. BUT, NOTE! 1: It doesn't have to be a specific language or library - it can be any combination of languages and libraries if they enable that person of making it's job. 2: It doesn't have to have ALL features on start. If it just has lots of libraries and a fast method for searching and installing them, that counts. But note that, for basic things like a strong array/objects/mathematic base, it is very important that they are built-in in the language or else the libraries won't integrate. For instance, there are libraries for everything in C++, but whenever I need, for instance, to draw a point on screen using allegro [graphics library] I have to write something like point(x1,x2). But the points of my programs are usually represented as 2d vertexes. Now if I have a function that expects a reference to a function that accepts a vector: *function f(&function(vector) f)* I would have to write a wrapper for the function point so I can send it to f. It becomes a big problem when I find myself having to write wrappers for every function of an entire library when I need to integrate them to the remaining of my program. Also, for instance. I found the library Wild Magic 5 to compute geometry stuff, and the library Ogre3d to do 3d rendering stuff. Both libraries contains different representations of 3d vectors, though. So if I wish to use a result from Wild Magic on Ogre3d I have to make a conversion. That problem, when many many libraries are used, become a huge problem. So this is it. Sorry if I wrote too much but I've learned programming and realized all those problems I'm having with the use of libraries. The time I take to make a new program is enourm either because C++ lacks many features, is coustly to write and because finding and installing libraries there is very time consuming (I don't know if I'm doing it right, though). Any light and advises from you more advanced programs is welcome. Thank you.
programming-languages
integration
productivity
libraries
null
10/16/2011 08:52:45
not constructive
Someone needs to create programs of unrelated subjects in the least time possible - what tools should he use/learn? === ***Note: This is big because I wrote a lot of examples just to make the question the most clear I could. You can just read the question. Feel free to read the examples if you are not sure of what I'm asking.*** **QUESTION:** A programmer will have a job where he will need to create a wide range of applications of unrelated problems, possibly problems that are completely new to the programmer, possibly with multiple requeriments (ex: databases+3d graphics+networking), in the least time possible counting from the instant he is asked to do so. Those applications doesn't need to be optimized but they need to be optimizable if required. What tools/languages/libraries should he learn? **EXAMPLES:** For instance that person would/could need: - True object oriented base (I think that is the name) - he needs to, for instance: get all instances of a class calling Class.instances, modify a Class in runtime - also, retrieve a reference to the Class object of a instance calling instance.type and being able to compare between classes like: *myBird.type.isChildrenOf(Animal) //compares if type of myBird instance is inherited from Animal*. Other features like keeping track of past states of instances, for instance, *if (last(pos)=[3,0,0]) then //checks if last state of vector pos was [3,0,0]* and automatically synchronizing instances between different applications, for instance, *game = create Game; //creates instance of class Game game.syncronize("www.mygame.com",51320); //syncronizes "game" instance to that hosted by "www.mygame.com" on port 51320. * - Good mathematical base including types that represent 2d/3d vertexes, matrixes, mathematical functions, geometric objects. Even better if every other library was actually based on that mathematical base, for instance, if every function of the other libraries that requires a xy pair could receive just a 2d vertex instead of 2 integers/floats. I would love it even more if there was no "integer", "float" etc but rather a type "number" with arbitrary precision and support for complex numbers. Methods to integrate, rotate 3d meshes, check for interceptions etc. would be nice. - Great array support, including the hability to create them without lots of code. Arrays that resize automatically, that aren't bound to specific types, that are smart enough to use the proper internal representation based on what the programmer users. Functions to sort, loop though all elements, find elements based on their variables, for instance *(array.search(type=Bird,|velocity|>[3]) to search for all elements of array whose type is Bird and modulus of velocity > 3)*. - Multi-threading support including smart threads that avoid inconsistency by themselves in an easy manner. Even better if the whole language was based in multi-threading. For instance, a "*foreach <x> in <y> do <f>*" that automatically creates a thread running function f for each instance x in array y and returns the threads created; or a "when <expression> do <f>" that will run the function <f> whenever during the execution of the program <expression> comes true. - Really huge 2d graphics support, including functions to render texts, geometric forms, sprites, apply effects, etc., on a bitmap. Support for plotting graphics of mathematical functions. Support for GUI. - Good 3d graphics support including functions to load, modify and save 3d meshes in many formats and render them in different projections modes without the programmer having to worry about more advanced topics (but giving the options to do so). - Huge networking support including the capacity of stabilishing TCP connections, sending UDP messages, make a HTTP request. It would also be cool a feature to simulate a browser including rendering html, css, etc., pages, running javascript. - Objects to work with databases like Mysql, to work with files. - You got the point. BUT, NOTE! 1: It doesn't have to be a specific language or library - it can be any combination of languages and libraries if they enable that person of making it's job. 2: It doesn't have to have ALL features on start. If it just has lots of libraries and a fast method for searching and installing them, that counts. But note that, for basic things like a strong array/objects/mathematic base, it is very important that they are built-in in the language or else the libraries won't integrate. For instance, there are libraries for everything in C++, but whenever I need, for instance, to draw a point on screen using allegro [graphics library] I have to write something like point(x1,x2). But the points of my programs are usually represented as 2d vertexes. Now if I have a function that expects a reference to a function that accepts a vector: *function f(&function(vector) f)* I would have to write a wrapper for the function point so I can send it to f. It becomes a big problem when I find myself having to write wrappers for every function of an entire library when I need to integrate them to the remaining of my program. Also, for instance. I found the library Wild Magic 5 to compute geometry stuff, and the library Ogre3d to do 3d rendering stuff. Both libraries contains different representations of 3d vectors, though. So if I wish to use a result from Wild Magic on Ogre3d I have to make a conversion. That problem, when many many libraries are used, become a huge problem. So this is it. Sorry if I wrote too much but I've learned programming and realized all those problems I'm having with the use of libraries. The time I take to make a new program is enourm either because C++ lacks many features, is coustly to write and because finding and installing libraries there is very time consuming (I don't know if I'm doing it right, though). Any light and advises from you more advanced programs is welcome. Thank you.
4
10,602,077
05/15/2012 13:44:55
1,396,257
05/15/2012 13:15:11
1
0
How to send secure variable from one page to another in php
I want to send a variable to a page, so that data is displayed from database using that variable. I cannot use session variable because i have many pages each with different value for the variable. For example I have four pages, A,B,C,D. When a user visits A, it will redirect to a master page with a variable from A, extract A's data from db and display A's data on the master page, similarly for B,C,D. I don't want to use session because these pages will increase, and I will have to use a different session variable for each page. Please tell me a good solution to this problem.
php5
null
null
null
null
05/21/2012 21:21:02
not a real question
How to send secure variable from one page to another in php === I want to send a variable to a page, so that data is displayed from database using that variable. I cannot use session variable because i have many pages each with different value for the variable. For example I have four pages, A,B,C,D. When a user visits A, it will redirect to a master page with a variable from A, extract A's data from db and display A's data on the master page, similarly for B,C,D. I don't want to use session because these pages will increase, and I will have to use a different session variable for each page. Please tell me a good solution to this problem.
1
6,808,647
07/24/2011 18:06:47
826,314
07/02/2011 18:56:52
8
0
How to draw square in assembly language
T want to draw square in assembly language. I have ridden something about `int 10h`. Does anybody know, how to do it? Please place here me some piece of code what can I use for drawing a squares, or some quality tutorials. Tnaks.
assembly
null
null
null
null
07/26/2011 09:43:36
not a real question
How to draw square in assembly language === T want to draw square in assembly language. I have ridden something about `int 10h`. Does anybody know, how to do it? Please place here me some piece of code what can I use for drawing a squares, or some quality tutorials. Tnaks.
1
7,460,013
09/18/2011 07:04:38
939,212
09/11/2011 14:03:18
1
0
Devise custom sign_in error
I have a custom SessionsController using Devise, but have a error. <pre> NoMethodError in Users::SessionsController#create undefined method `serialize_into_session' for Symbol:Class Rails.root: /home/kewang/rails/devisetest Application Trace | Framework Trace | Full Trace devise (1.4.5) lib/devise/rails/warden_compat.rb:19:in `serialize' warden (1.0.5) lib/warden/session_serializer.rb:25:in `store' warden (1.0.5) lib/warden/proxy.rb:161:in `set_user' devise (1.4.5) lib/devise/controllers/helpers.rb:111:in `sign_in' app/controllers/users/sessions_controller.rb:3:in `create' </pre> app/controllers/users/sessions_controller.rb class Users::SessionsController < Devise::SessionsController def create sign_in(resource_name, resource) end end app/helpers/application_helper.rb module ApplicationHelper def resource_name :user end def resource @resource ||= User.new end def devise_mapping @devise_mapping ||= Devise.mappings[:user] end end config/routes.rb devise_for :users, :controllers => { :sessions => "users/sessions" } what can i do? My development enviroment is Rails 3.1.0, Ruby 1.9.2
ruby-on-rails-3
devise
null
null
null
null
open
Devise custom sign_in error === I have a custom SessionsController using Devise, but have a error. <pre> NoMethodError in Users::SessionsController#create undefined method `serialize_into_session' for Symbol:Class Rails.root: /home/kewang/rails/devisetest Application Trace | Framework Trace | Full Trace devise (1.4.5) lib/devise/rails/warden_compat.rb:19:in `serialize' warden (1.0.5) lib/warden/session_serializer.rb:25:in `store' warden (1.0.5) lib/warden/proxy.rb:161:in `set_user' devise (1.4.5) lib/devise/controllers/helpers.rb:111:in `sign_in' app/controllers/users/sessions_controller.rb:3:in `create' </pre> app/controllers/users/sessions_controller.rb class Users::SessionsController < Devise::SessionsController def create sign_in(resource_name, resource) end end app/helpers/application_helper.rb module ApplicationHelper def resource_name :user end def resource @resource ||= User.new end def devise_mapping @devise_mapping ||= Devise.mappings[:user] end end config/routes.rb devise_for :users, :controllers => { :sessions => "users/sessions" } what can i do? My development enviroment is Rails 3.1.0, Ruby 1.9.2
0
239,019
10/27/2008 03:41:28
17,205
09/18/2008 04:28:50
1,013
62
Which language would you use for the self-study of SICP?
I've caught the bug to learn functional programming for real. So my next self-study project is to work through the [Structure and Interpretation of Computer Programs][1]. Unfortunately, I've never learned Lisp, as I was not a CS major in college. While SICP does not emphasize the tools for programming, doing the exercises entails picking a Lisp-like language to use. It seems like some implementation of [Scheme][2] would be the path of least resistance. On the other hand, I hear of others who have used [Common Lisp][3] and [Clojure][4]. It seems to me that Common Lisp or Clojure would be more likely to be used in production code, and therefore slightly better for my resume. BTW, I fully get the argument that learning a language is worthwhile for its own sake, but learning a language that helps my resume is still a benefit. I'm a capitalist and an academic about my learning. If you had to self-study SICP, which language would you pick and why? Ideally, I would like to use a language that can run on the JVM. I can certainly work with a language where REPL works with bash and emacs. [1]: http://mitpress.mit.edu/sicp/ [2]: http://plt-scheme.org/ [3]: http://gigamonkeys.com/book/ [4]: http://clojure.org
functional-programming
sicp
lisp
clojure
scheme
04/19/2012 17:25:35
not constructive
Which language would you use for the self-study of SICP? === I've caught the bug to learn functional programming for real. So my next self-study project is to work through the [Structure and Interpretation of Computer Programs][1]. Unfortunately, I've never learned Lisp, as I was not a CS major in college. While SICP does not emphasize the tools for programming, doing the exercises entails picking a Lisp-like language to use. It seems like some implementation of [Scheme][2] would be the path of least resistance. On the other hand, I hear of others who have used [Common Lisp][3] and [Clojure][4]. It seems to me that Common Lisp or Clojure would be more likely to be used in production code, and therefore slightly better for my resume. BTW, I fully get the argument that learning a language is worthwhile for its own sake, but learning a language that helps my resume is still a benefit. I'm a capitalist and an academic about my learning. If you had to self-study SICP, which language would you pick and why? Ideally, I would like to use a language that can run on the JVM. I can certainly work with a language where REPL works with bash and emacs. [1]: http://mitpress.mit.edu/sicp/ [2]: http://plt-scheme.org/ [3]: http://gigamonkeys.com/book/ [4]: http://clojure.org
4
9,627,441
03/09/2012 00:52:00
126,353
06/21/2009 00:34:56
5,453
133
"Cannot GET /" with Connect on Node.js
I'm trying to start serving some static web pages using `connect` like this: var connect = require("connect"); var nowjs = require("now"); var io = require("socket.io"); var app = connect.createServer( connect.static(__dirname + '/public') ); app.listen(8180); So I added a simple `index.html` at the `/public` directory on the same directory as the `app.js` file is, but when I try to view the page on my browser I get this response from node: > Cannot GET / What I'm doing wrong and how I can correct it?
http
node.js
connect
null
null
null
open
"Cannot GET /" with Connect on Node.js === I'm trying to start serving some static web pages using `connect` like this: var connect = require("connect"); var nowjs = require("now"); var io = require("socket.io"); var app = connect.createServer( connect.static(__dirname + '/public') ); app.listen(8180); So I added a simple `index.html` at the `/public` directory on the same directory as the `app.js` file is, but when I try to view the page on my browser I get this response from node: > Cannot GET / What I'm doing wrong and how I can correct it?
0
11,528,735
07/17/2012 18:36:34
1,532,695
07/17/2012 18:33:30
1
0
Filtering files with python
I generated data from the netstat -a command in the terminal, now from there the result is all the incoming and outgoing ip addresses which i wrote to a file, how to I retrieve only the ip address via columns? Also, how do I retrieve data by column parameters for example starting at column 10 and ending at column 27?. I have tried the filter function but it didnt work. Thanks!
python
null
null
null
null
07/17/2012 19:51:23
not a real question
Filtering files with python === I generated data from the netstat -a command in the terminal, now from there the result is all the incoming and outgoing ip addresses which i wrote to a file, how to I retrieve only the ip address via columns? Also, how do I retrieve data by column parameters for example starting at column 10 and ending at column 27?. I have tried the filter function but it didnt work. Thanks!
1
2,937,686
05/30/2010 05:45:16
353,870
05/30/2010 05:45:16
1
0
.GIF re edit! Can't figure it out!!
http://img227.imageshack.us/img227/1892/hatersgonna.gif That is the photo.. I am trying to cut around it so its a little smaller and make him walk the opposite direction. The reason I am doing this is for a VBulletin forum signature since it marquees left to right. I have tried editing the animation in Photoshop and I flipped the canvas to horizontal... I can't figure this out.. I've been at it for HOURS. hah Also if anyone can make it just a little darker that would be amazing. "no I'm not asking for free help" but any help would be great Thank you so much
graphics
image
animation
photoshop
null
05/30/2010 06:12:19
off topic
.GIF re edit! Can't figure it out!! === http://img227.imageshack.us/img227/1892/hatersgonna.gif That is the photo.. I am trying to cut around it so its a little smaller and make him walk the opposite direction. The reason I am doing this is for a VBulletin forum signature since it marquees left to right. I have tried editing the animation in Photoshop and I flipped the canvas to horizontal... I can't figure this out.. I've been at it for HOURS. hah Also if anyone can make it just a little darker that would be amazing. "no I'm not asking for free help" but any help would be great Thank you so much
2
3,096,244
06/22/2010 18:56:51
264,575
02/02/2010 17:25:22
62
0
Get GAC entries by Public Key
Is there a way to scan all the assemblies in the GAC and return a list of names of assemblies with a specified Public Key Token during runtime? I know the Public Key of all the GAC assemblies that I am interested in loading, but don't necessarily know the names or version numbers.
c#
assemblies
runtime
gac
null
null
open
Get GAC entries by Public Key === Is there a way to scan all the assemblies in the GAC and return a list of names of assemblies with a specified Public Key Token during runtime? I know the Public Key of all the GAC assemblies that I am interested in loading, but don't necessarily know the names or version numbers.
0
1,117,215
07/12/2009 23:41:29
61,027
01/31/2009 18:11:04
5,738
367
Good audio reverb source?
Is there any good C or C-like source code for an audio reverb (besides Freeverb). There are endless examples of low-pass filters that sound great, but it's terribly difficult to find source for a good-sounding reverb. Why is that? Is it a hard enough problem that the good implementations are held onto and not published?
audio
signal-processing
null
null
null
null
open
Good audio reverb source? === Is there any good C or C-like source code for an audio reverb (besides Freeverb). There are endless examples of low-pass filters that sound great, but it's terribly difficult to find source for a good-sounding reverb. Why is that? Is it a hard enough problem that the good implementations are held onto and not published?
0
7,446,862
09/16/2011 15:20:07
931,064
09/06/2011 15:58:09
50
0
Navigation bar based on role in asp.net website
How to create a navigation bar based on user roles, some user dont have access to some pages home, users, messages, org only few have access to org. and there are similar situations in my website. Guide me on this.
asp.net
asp
uinavigationbar
null
null
09/16/2011 20:48:11
not a real question
Navigation bar based on role in asp.net website === How to create a navigation bar based on user roles, some user dont have access to some pages home, users, messages, org only few have access to org. and there are similar situations in my website. Guide me on this.
1
7,737,747
10/12/2011 09:13:42
874,911
09/20/2010 06:46:52
1
0
Face book multi friend selector
I wan to show the facebook popup to the user from where user select the friends and when he click select then the selected user ids return. I want to do this Flex but if you can tell me how to do it in php it will also very helpful for me.
multi-friend-selector
null
null
null
null
null
open
Face book multi friend selector === I wan to show the facebook popup to the user from where user select the friends and when he click select then the selected user ids return. I want to do this Flex but if you can tell me how to do it in php it will also very helpful for me.
0
1,290,050
08/17/2009 19:52:26
84,424
03/30/2009 02:54:02
165
14
How to: select normalized view from denormalized data using CTE?
This is a very standard newbie question, but I am looking for an expert clever way to do this with little code. (I know how to do this long hand, with procedural code and cursors, so we can skip that part of the answer.) **Basically, I have a de-normalized data set for which I need to extract a normalized table in a set processing way**. The raw data comes from Excel, which I attach as a table to query from MS SQL. A single field (in Excel and therefore SQL) has a comma separated list of departments that each product participates. I know that I should normalize the data, but it is coming from Excel (and it is not practical for the user to do so). I know I can do this with a procedure to loop through each record (like a cursor or with statement) but that seems unnecessary with the tools available today. **Is there a single statement where I can extract a primary key with a "participates" field for these records?** Think of the source as: <kbd>ProductID</kbd><kbd>Departments</kbd><br /> <kbd>&nbsp;123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;1,3,5,15&nbsp;&nbsp;</kbd><br /> <kbd>&nbsp;456&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;2,4,5,16&nbsp;&nbsp;</kbd><br /> I did the normal select * from dbo.split( CommaSepField) but this only works on one record at a time (and you cannot provide a field's value in with a table valued function. Not to mention, how do you union all these single result sets? Unionizing all the result sets got me thinking about Common Table Expressions, but I cannot quite figure out how to (1) get the primary key in with the expanded fields, and (2) how to format the query to work. The output of course would be: <kbd>ProductID</kbd><kbd>Dept</kbd><br /> <kbd>&nbsp;123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;1&nbsp;&nbsp;</kbd><br/> <kbd>&nbsp;123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;3&nbsp;&nbsp;</kbd><br/> <kbd>&nbsp;123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;5&nbsp;&nbsp;</kbd><br/> <kbd>&nbsp;123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;15&nbsp;</kbd><br/> <kbd>&nbsp;456&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;2&nbsp;&nbsp;</kbd><br/> <kbd>&nbsp;456&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;4&nbsp;&nbsp;</kbd><br/> <kbd>&nbsp;456&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;5&nbsp;&nbsp;</kbd><br/> <kbd>&nbsp;456&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;16&nbsp;</kbd><br/> I researched this quite a bit in StackOverflow and Google, but didn't really find an answer that could apply. I apologize if I missed it. Please send links :D.
sql
common-table-expression
normalize
data
select
null
open
How to: select normalized view from denormalized data using CTE? === This is a very standard newbie question, but I am looking for an expert clever way to do this with little code. (I know how to do this long hand, with procedural code and cursors, so we can skip that part of the answer.) **Basically, I have a de-normalized data set for which I need to extract a normalized table in a set processing way**. The raw data comes from Excel, which I attach as a table to query from MS SQL. A single field (in Excel and therefore SQL) has a comma separated list of departments that each product participates. I know that I should normalize the data, but it is coming from Excel (and it is not practical for the user to do so). I know I can do this with a procedure to loop through each record (like a cursor or with statement) but that seems unnecessary with the tools available today. **Is there a single statement where I can extract a primary key with a "participates" field for these records?** Think of the source as: <kbd>ProductID</kbd><kbd>Departments</kbd><br /> <kbd>&nbsp;123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;1,3,5,15&nbsp;&nbsp;</kbd><br /> <kbd>&nbsp;456&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;2,4,5,16&nbsp;&nbsp;</kbd><br /> I did the normal select * from dbo.split( CommaSepField) but this only works on one record at a time (and you cannot provide a field's value in with a table valued function. Not to mention, how do you union all these single result sets? Unionizing all the result sets got me thinking about Common Table Expressions, but I cannot quite figure out how to (1) get the primary key in with the expanded fields, and (2) how to format the query to work. The output of course would be: <kbd>ProductID</kbd><kbd>Dept</kbd><br /> <kbd>&nbsp;123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;1&nbsp;&nbsp;</kbd><br/> <kbd>&nbsp;123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;3&nbsp;&nbsp;</kbd><br/> <kbd>&nbsp;123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;5&nbsp;&nbsp;</kbd><br/> <kbd>&nbsp;123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;15&nbsp;</kbd><br/> <kbd>&nbsp;456&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;2&nbsp;&nbsp;</kbd><br/> <kbd>&nbsp;456&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;4&nbsp;&nbsp;</kbd><br/> <kbd>&nbsp;456&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;5&nbsp;&nbsp;</kbd><br/> <kbd>&nbsp;456&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</kbd><kbd>&nbsp;16&nbsp;</kbd><br/> I researched this quite a bit in StackOverflow and Google, but didn't really find an answer that could apply. I apologize if I missed it. Please send links :D.
0
6,231,959
06/03/2011 19:50:51
783,292
06/03/2011 19:50:51
1
0
XSD: random order of same-named <elements> with different types = IMPOSSIBLE
Searched and experimented, researched and racked my brain about this (dreamt about it last night). Trying to build an XSD schema to validate the following example XML based on constraints of the <value> tag depending on the value of the <title> tag. <data> <dataSet> <title>mediaType</title> <value>FullLength</value> </dataSet> <dataSet> <title>available</title> <value>true</value> </dataSet> <dataSet> <title>country</title> <value>Canada</value> </dataSet> </data> the schema regarding constraints on the individual dataSet 's <xs:complexType name="typeAvailable"> <xs:sequence> <xs:element name="title"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="available" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="value"> <xs:simpleType> <xs:restriction base="xs:boolean" /> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="typeMediaType"> <xs:sequence> <xs:element name="title"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="mediaType" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="value"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="FullLength|Clip" /> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="typeCountry"> <xs:sequence> <xs:element name="title"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="typeCountry" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="value"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="Canada|US" /> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> The best I could come up with doesn't validate when the dataSet 's are out of order (which they will be) <xs:complexType name="typeData"> <xs:all> <xs:element name="dataSet" type="typeMediaType" /> <xs:element name="dataSet" type="typeAvailable" /> <xs:element name="dataSet" type="typeCountry" /> </xs:all> </xs:complexType> Of course, I'm stuck with the data that I get, but nothing says I can't transform it with XSLT -- into what, I don't know. I was hoping for an elegant XSD solution, alas, I fear this is impossible. Anyone can prove me wrong? This is my first scheme project in quite a long time.
xml
xsd
xml-schema
xml-validation
null
null
open
XSD: random order of same-named <elements> with different types = IMPOSSIBLE === Searched and experimented, researched and racked my brain about this (dreamt about it last night). Trying to build an XSD schema to validate the following example XML based on constraints of the <value> tag depending on the value of the <title> tag. <data> <dataSet> <title>mediaType</title> <value>FullLength</value> </dataSet> <dataSet> <title>available</title> <value>true</value> </dataSet> <dataSet> <title>country</title> <value>Canada</value> </dataSet> </data> the schema regarding constraints on the individual dataSet 's <xs:complexType name="typeAvailable"> <xs:sequence> <xs:element name="title"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="available" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="value"> <xs:simpleType> <xs:restriction base="xs:boolean" /> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="typeMediaType"> <xs:sequence> <xs:element name="title"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="mediaType" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="value"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="FullLength|Clip" /> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="typeCountry"> <xs:sequence> <xs:element name="title"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="typeCountry" /> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="value"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:pattern value="Canada|US" /> </xs:restriction> </xs:simpleType> </xs:element> </xs:sequence> </xs:complexType> The best I could come up with doesn't validate when the dataSet 's are out of order (which they will be) <xs:complexType name="typeData"> <xs:all> <xs:element name="dataSet" type="typeMediaType" /> <xs:element name="dataSet" type="typeAvailable" /> <xs:element name="dataSet" type="typeCountry" /> </xs:all> </xs:complexType> Of course, I'm stuck with the data that I get, but nothing says I can't transform it with XSLT -- into what, I don't know. I was hoping for an elegant XSD solution, alas, I fear this is impossible. Anyone can prove me wrong? This is my first scheme project in quite a long time.
0
4,829,902
01/28/2011 15:27:30
591,646
01/27/2011 03:54:57
28
2
How to call nested views in monotouch?
For example the twitter application you can open one profile and see his tweets then open another profile and go and repeat the same action over and over again, then you can tap on the back button as many times you opened tweets and profiles etc, returning from the same path. a code example would help me a lot :)
c#
iphone
mvc
view
monotouch
null
open
How to call nested views in monotouch? === For example the twitter application you can open one profile and see his tweets then open another profile and go and repeat the same action over and over again, then you can tap on the back button as many times you opened tweets and profiles etc, returning from the same path. a code example would help me a lot :)
0
7,207,293
08/26/2011 15:45:31
236,047
12/21/2009 13:58:44
11,250
438
CURLE_RECV_ERROR with PayPal API
I've developed an application that connects to the PayPal API with libcurl, which I use through the OCurl bindings for OCaml from a process running on a Debian server. The code always works when inside the Paypal sandbox (endpoint `https://api-3t.sandbox.paypal.com/nvp`) but never works when connecting to the actual Paypal servers (endpoint `https://api-3t.paypal.com/nvp`). Libcurl always returns `CURLE_RECV_ERROR`. The general consensus is that this error happens when there is a network problem, so I have investigated that. I ran the exact same request with the command-line `curl` tool from the exact same server, using the exact same process uid/gid, and it consistently works. Tracking the transfers with `tcpdump` does not reveal any difference in the structure of transactions made by the working command-line `curl` and the non-working application, so it all appears as if the HTTP request is successfully performed in both cases. Here is the OCaml code that performs the request: let c = new Curl.handle in let buffer = Buffer.create 1763 in c # set_url "https://api-3t.paypal.com/nvp" ; c # set_post true ; c # set_postfields "SOMEDATA" ; c # set_writefunction (fun x -> Buffer.add_string buffer x ; String.length x) ; c # perform ; c # cleanup ; Buffer.contents buffer Here is the equivalent `curl` command line: curl -X POST https://api-3t.paypal.com/nvp -d SOMEDATA What could be the cause of this error? How can I investigate to find out?
debugging
curl
ocaml
paypal-api
null
null
open
CURLE_RECV_ERROR with PayPal API === I've developed an application that connects to the PayPal API with libcurl, which I use through the OCurl bindings for OCaml from a process running on a Debian server. The code always works when inside the Paypal sandbox (endpoint `https://api-3t.sandbox.paypal.com/nvp`) but never works when connecting to the actual Paypal servers (endpoint `https://api-3t.paypal.com/nvp`). Libcurl always returns `CURLE_RECV_ERROR`. The general consensus is that this error happens when there is a network problem, so I have investigated that. I ran the exact same request with the command-line `curl` tool from the exact same server, using the exact same process uid/gid, and it consistently works. Tracking the transfers with `tcpdump` does not reveal any difference in the structure of transactions made by the working command-line `curl` and the non-working application, so it all appears as if the HTTP request is successfully performed in both cases. Here is the OCaml code that performs the request: let c = new Curl.handle in let buffer = Buffer.create 1763 in c # set_url "https://api-3t.paypal.com/nvp" ; c # set_post true ; c # set_postfields "SOMEDATA" ; c # set_writefunction (fun x -> Buffer.add_string buffer x ; String.length x) ; c # perform ; c # cleanup ; Buffer.contents buffer Here is the equivalent `curl` command line: curl -X POST https://api-3t.paypal.com/nvp -d SOMEDATA What could be the cause of this error? How can I investigate to find out?
0
11,049,085
06/15/2012 10:36:28
794,521
06/12/2011 05:53:22
16
0
How can I create curried anonymous function in scala?
How can I create an anonymous and curried function in Scala? The following two failed: scala> (x:Int)(y:Int) => x*y <console>:1: error: not a legal formal parameter (x:Int)(y:Int) => x*y ^ scala> ((x:Int)(y:Int)) => x*y <console>:1: error: not a legal formal parameter ((x:Int)(y:Int)) => x*y ^
scala
anonymous-function
currying
null
null
null
open
How can I create curried anonymous function in scala? === How can I create an anonymous and curried function in Scala? The following two failed: scala> (x:Int)(y:Int) => x*y <console>:1: error: not a legal formal parameter (x:Int)(y:Int) => x*y ^ scala> ((x:Int)(y:Int)) => x*y <console>:1: error: not a legal formal parameter ((x:Int)(y:Int)) => x*y ^
0
10,105,707
04/11/2012 12:14:30
1,310,362
04/03/2012 12:02:52
1
0
PHP script to get cell based on first column cell
I am trying to write a PHP script to use a string entered into an EditText form (in an android application. Imagine there are two columns: Firstname and surname; I would like to be able to get the surname by searching the Firstname(Entering the Firstname into the EditText. I know this may require a SELECT Surname FROM Names WHERE... query but how do I indicate the variable from my Java class? The PHP script so Far: <?php mysql_connect("localhost","root",""); mysql_select_db("androidapp"); $sql=mysql_query("SELECT surname WHERE $get'fname'"); while($row=mysql_fetch_assoc($sql)) $output[]=$row; print(json_encode($output)); mysql_close(); ?> Also, is the HttpGet method appropriate or HttPost method to do this, the result should display the surname in a TextView
java
php
android
mysql
null
04/26/2012 12:30:28
not a real question
PHP script to get cell based on first column cell === I am trying to write a PHP script to use a string entered into an EditText form (in an android application. Imagine there are two columns: Firstname and surname; I would like to be able to get the surname by searching the Firstname(Entering the Firstname into the EditText. I know this may require a SELECT Surname FROM Names WHERE... query but how do I indicate the variable from my Java class? The PHP script so Far: <?php mysql_connect("localhost","root",""); mysql_select_db("androidapp"); $sql=mysql_query("SELECT surname WHERE $get'fname'"); while($row=mysql_fetch_assoc($sql)) $output[]=$row; print(json_encode($output)); mysql_close(); ?> Also, is the HttpGet method appropriate or HttPost method to do this, the result should display the surname in a TextView
1