PostId
int64
13
11.8M
PostCreationDate
stringlengths
19
19
OwnerUserId
int64
3
1.57M
OwnerCreationDate
stringlengths
10
19
ReputationAtPostCreation
int64
-33
210k
OwnerUndeletedAnswerCountAtPostTime
int64
0
5.77k
Title
stringlengths
10
250
BodyMarkdown
stringlengths
12
30k
Tag1
stringlengths
1
25
Tag2
stringlengths
1
25
Tag3
stringlengths
1
25
Tag4
stringlengths
1
25
Tag5
stringlengths
1
25
PostClosedDate
stringlengths
19
19
OpenStatus
stringclasses
5 values
unified_texts
stringlengths
47
30.1k
OpenStatus_id
int64
0
4
7,774,676
10/14/2011 23:40:04
764,418
05/22/2011 01:53:35
12
0
Can a /proc/xyz be accessed programatically from user space in Android?
I am trying to programatically access a proc file in Android. I can do it from adb using echo and cat, but I tried the system call and fopen, but it dosen't work.
android
linux
linux-kernel
null
null
10/24/2011 02:46:23
not a real question
Can a /proc/xyz be accessed programatically from user space in Android? === I am trying to programatically access a proc file in Android. I can do it from adb using echo and cat, but I tried the system call and fopen, but it dosen't work.
1
6,155,534
05/27/2011 17:08:12
771,058
05/26/2011 09:43:43
1
0
how to pass current datetime in a database through objects in asp.net?
public partial class Employee_Default : System.Web.UI.Page { clsactprp obj = new clsactprp(); clsactmaster ob = new clsactmaster(); protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { obj.p_actdet=TextBox2.Text; obj.p_asgcod=Convert.ToInt32(TextBox1.Text); obj.p_acttim= ??????????
asp.net
sql
visual-studio-2008
sql-server-2005
visual
05/28/2011 16:03:13
not a real question
how to pass current datetime in a database through objects in asp.net? === public partial class Employee_Default : System.Web.UI.Page { clsactprp obj = new clsactprp(); clsactmaster ob = new clsactmaster(); protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { obj.p_actdet=TextBox2.Text; obj.p_asgcod=Convert.ToInt32(TextBox1.Text); obj.p_acttim= ??????????
1
6,145,731
05/26/2011 22:12:05
508,494
11/15/2010 16:32:22
16
1
JSON database that doesnt need a server
Is there any popular database that lets you store JSON-like documents without the need of running a server? Something similar to SQLite but for JSON documents?
database
json
null
null
null
null
open
JSON database that doesnt need a server === Is there any popular database that lets you store JSON-like documents without the need of running a server? Something similar to SQLite but for JSON documents?
0
3,620,828
09/01/2010 18:00:15
175,071
09/17/2009 16:25:19
252
9
sqlite select where empty?
Select in sqlite where some_colum is empty. empty counts as both NULL and "".
sql
sqlite
select
isnullorempty
null
null
open
sqlite select where empty? === Select in sqlite where some_colum is empty. empty counts as both NULL and "".
0
10,718,079
05/23/2012 10:27:55
1,412,331
05/23/2012 10:10:35
1
0
Facebook Open-Graph object linking and multiple posting
1. I've added my action and object to my app with facebook open graph. I've looked out everywhere, but couldn't find how to have the object word be clickable and follow to a link. I know it can be done as I've seen it done by instagram for instance: John Doe took a photo with Instagram. the 'photo' word is linked. I wish to know how to do that. 2. Another thing I've looked everywhere but couldnt find: How do i apply action on multiple objects in one post? e.g. John Doe bought "Item A" and "Item B" via MyApp I see the examples of the sentences in the dashboard action settings, and those sentences appear, so they should be possible to do, but I couldn't figure out how. Thanks. There examples of sentences
facebook
facebook-graph-api
facebook-opengraph
null
null
null
open
Facebook Open-Graph object linking and multiple posting === 1. I've added my action and object to my app with facebook open graph. I've looked out everywhere, but couldn't find how to have the object word be clickable and follow to a link. I know it can be done as I've seen it done by instagram for instance: John Doe took a photo with Instagram. the 'photo' word is linked. I wish to know how to do that. 2. Another thing I've looked everywhere but couldnt find: How do i apply action on multiple objects in one post? e.g. John Doe bought "Item A" and "Item B" via MyApp I see the examples of the sentences in the dashboard action settings, and those sentences appear, so they should be possible to do, but I couldn't figure out how. Thanks. There examples of sentences
0
6,780,666
07/21/2011 18:12:50
745,089
05/09/2011 11:55:14
11
0
Problems with jquery
I have a strange problem. I have loaded jquery-min javascript in my file. But I can only access jQuery.ajax not $.ajax. $.ajax is said to be undefined. Why is that?
javascript
jquery
null
null
null
07/22/2011 01:51:34
not a real question
Problems with jquery === I have a strange problem. I have loaded jquery-min javascript in my file. But I can only access jQuery.ajax not $.ajax. $.ajax is said to be undefined. Why is that?
1
10,355,740
04/27/2012 18:10:34
464,538
10/02/2010 10:57:06
161
1
Loading Google maps in a dynamic map container?
Im trying to load google maps in a dynamic map container, but I can't get it... **The process:** I click on a button, it makes an ajax call to show.php, and I want to show a google maps in a div loaded from show.php **js file:** var id = $(this).attr('rel'); var coords = jQuery(this).attr('coords'); jQuery.ajax({ type: "POST", url: "show", data: "sec=load_shop&id=" + id, success: function(msg){ jQuery("#" + id).html(msg); ini_map(coords, id); }, error: function(msg){ console.log(msg.statusText); } }); **ini_map function:** function ini_map(coords, id_shop) { var lat_lon = coords.split(","); var myOptions = { zoom: 15, center: new google.maps.LatLng(lat_lon[0],lat_lon[1]), disableDefaultUI: true, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById('map_' + id_shop), myOptions); var infowindow = new google.maps.InfoWindow(); var marker = new google.maps.Marker({ position: map.getCenter(), map: map, title: 'Dirección' }); google.maps.event.addListener(marker, 'click', function() { infowindow.setContent("<strong>OKAY!</strong>"); infowindow.open(map, this); }); } **show.php** $id = $_POST['id']; echo '<div id="map_'.$id.'" class="gmaps"></div>'; Ive checked with firebug that the php output is fine, ej.: <div id="map_20" class="gmaps"></div> But i get this error: TypeError: 'null' is not an object (evaluating 'a[gb]') I think that google maps api cannot find the map container. Any idea how to do it ? Thanks!
jquery
ajax
google-maps-api-3
null
null
null
open
Loading Google maps in a dynamic map container? === Im trying to load google maps in a dynamic map container, but I can't get it... **The process:** I click on a button, it makes an ajax call to show.php, and I want to show a google maps in a div loaded from show.php **js file:** var id = $(this).attr('rel'); var coords = jQuery(this).attr('coords'); jQuery.ajax({ type: "POST", url: "show", data: "sec=load_shop&id=" + id, success: function(msg){ jQuery("#" + id).html(msg); ini_map(coords, id); }, error: function(msg){ console.log(msg.statusText); } }); **ini_map function:** function ini_map(coords, id_shop) { var lat_lon = coords.split(","); var myOptions = { zoom: 15, center: new google.maps.LatLng(lat_lon[0],lat_lon[1]), disableDefaultUI: true, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById('map_' + id_shop), myOptions); var infowindow = new google.maps.InfoWindow(); var marker = new google.maps.Marker({ position: map.getCenter(), map: map, title: 'Dirección' }); google.maps.event.addListener(marker, 'click', function() { infowindow.setContent("<strong>OKAY!</strong>"); infowindow.open(map, this); }); } **show.php** $id = $_POST['id']; echo '<div id="map_'.$id.'" class="gmaps"></div>'; Ive checked with firebug that the php output is fine, ej.: <div id="map_20" class="gmaps"></div> But i get this error: TypeError: 'null' is not an object (evaluating 'a[gb]') I think that google maps api cannot find the map container. Any idea how to do it ? Thanks!
0
5,574,777
04/07/2011 01:10:25
695,877
04/07/2011 01:10:25
1
0
Amazon like store usinng paypal?
I would like to setup a website where people sell their stuff. A buyer who buys their products is charged for certain money and the money is transferred to the seller account, preferably twice a month. Which merchant service can I best suit this transaction? Paypal, amazon, google checkout or any other? Thanks!
google
service
paypal
amazon
null
04/07/2011 04:39:54
off topic
Amazon like store usinng paypal? === I would like to setup a website where people sell their stuff. A buyer who buys their products is charged for certain money and the money is transferred to the seller account, preferably twice a month. Which merchant service can I best suit this transaction? Paypal, amazon, google checkout or any other? Thanks!
2
10,093,687
04/10/2012 17:40:11
1,029,477
11/04/2011 10:17:26
127
9
the ABC of website deployment - ASP.NET and Entity Framework
I have built a data driven website - an asp.net website, using the entity framework. In my solution I have 4 projects - the web application PresentationLayer, and 3 class libraries - Data Layer, Business and Common Layer. In one of these libraries, Common Layer I have my Model (MyModel.edmx). I have always tested my application on Cassini - Asp.Net Development Server. I have never touched IIS in my life. Can anyone please guide as to what I need to buy, what I need to do, publish and arrange to deploy my website? 1. should I buy a domain and hosting? 2. Can I instead host it on my laptop on IIS? (i have windows 7) - i have tried many tutorials to test it and 'deploy' it from IIS but I didn't manage to do anything 3. are there any particular tools which one could use? 4. should I modify my database connection string from my App.Config? since it is pretty strange due to the fact that it is connection to my model. 4. what about any web services that I may have in my presentation layer? 5. are there any free and simple hosting plans to try it out and put my sql server database online? (or keep it stored on my pc) Thank you very much for all your patience!
c#
asp.net
entity-framework
deployment
null
04/10/2012 17:51:29
off topic
the ABC of website deployment - ASP.NET and Entity Framework === I have built a data driven website - an asp.net website, using the entity framework. In my solution I have 4 projects - the web application PresentationLayer, and 3 class libraries - Data Layer, Business and Common Layer. In one of these libraries, Common Layer I have my Model (MyModel.edmx). I have always tested my application on Cassini - Asp.Net Development Server. I have never touched IIS in my life. Can anyone please guide as to what I need to buy, what I need to do, publish and arrange to deploy my website? 1. should I buy a domain and hosting? 2. Can I instead host it on my laptop on IIS? (i have windows 7) - i have tried many tutorials to test it and 'deploy' it from IIS but I didn't manage to do anything 3. are there any particular tools which one could use? 4. should I modify my database connection string from my App.Config? since it is pretty strange due to the fact that it is connection to my model. 4. what about any web services that I may have in my presentation layer? 5. are there any free and simple hosting plans to try it out and put my sql server database online? (or keep it stored on my pc) Thank you very much for all your patience!
2
11,066,553
06/16/2012 19:52:20
244,246
01/05/2010 20:56:52
486
22
Best practice: how do I tell if a collection/set/let is a Guava ImmutableSet/Immutable map?
I've got a bug in my code, I'm trying to modify a List that is really a Guava ImmutableList passed in from a client program/programmer. What is the best way to test for this, rather than waiting for the exception when the .add() fails?
java
guava
null
null
null
null
open
Best practice: how do I tell if a collection/set/let is a Guava ImmutableSet/Immutable map? === I've got a bug in my code, I'm trying to modify a List that is really a Guava ImmutableList passed in from a client program/programmer. What is the best way to test for this, rather than waiting for the exception when the .add() fails?
0
8,150,422
11/16/2011 10:49:14
262,053
01/29/2010 18:31:22
31
1
First run of Rails on Windows: ERROR ArgumentError: dump format error for symbol(0x6)
I'm taking my first tentative steps with Ruby on Rails. I'm trying to get it up and running on a Windows machine (Win7 64). I installed using RubyInstaller and then installed Rails using Gem. I've had a bit of a nightmare because of missing gems, having to install devkit etc. which has been great fun for someone who has no idea what they're doing. Anyway, I've finally got to a point where I can run a new "empty" rails project and I was hoping to see the default rails page. Unfortunately instead I get an Internal Server Error and the following in the log: [2011-11-16 10:30:56] INFO WEBrick 1.3.1 [2011-11-16 10:30:56] INFO ruby 1.9.3 (2011-10-30) [i386-mingw32] [2011-11-16 10:30:56] INFO WEBrick::HTTPServer#start: pid=3432 port=3000 [2011-11-16 10:31:19] ERROR ArgumentError: dump format error for symbol(0x6) C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_view/template.rb:24:in `load' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_view/template.rb:24:in `<top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/coffee-rails-3.1.1/lib/coffee/rails/template_handler.rb:17:in `block in <top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:42:in `each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_view/base.rb:216:in `<class:Base>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_view/base.rb:133:in `<module:ActionView>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_view/base.rb:8:in `<top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/abstract_controller/view_paths.rb:90:in `view_paths=' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/abstract_controller/view_paths.rb:76:in `prepend_view_path' C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.1.2.rc2/lib/rails/engine.rb:532:in `block (2 levels) in <class:Engine>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:42:in `each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_controller/base.rb:234:in `<class:Base>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_controller/base.rb:171:in `<module:ActionController>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_controller/base.rb:3:in `<top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_dispatch/middleware/static.rb:31:in `ext' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_dispatch/middleware/static.rb:15:in `match?' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_dispatch/middleware/static.rb:47:in `call' C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.1.2.rc2/lib/rails/engine.rb:456:in `call' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/content_length.rb:14:in `call' C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.1.2.rc2/lib/rails/rack/log_tailer.rb:14:in `call' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/handler/webrick.rb:59:in `service' C:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service' C:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run' C:/Ruby193/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread' I seem to have a hit a bit of a (WE)Brick wall, and have no idea where to go from here (except maybe a Linux VM). Any help would be greatly appreciated. LJ
ruby-on-rails
ruby
null
null
null
null
open
First run of Rails on Windows: ERROR ArgumentError: dump format error for symbol(0x6) === I'm taking my first tentative steps with Ruby on Rails. I'm trying to get it up and running on a Windows machine (Win7 64). I installed using RubyInstaller and then installed Rails using Gem. I've had a bit of a nightmare because of missing gems, having to install devkit etc. which has been great fun for someone who has no idea what they're doing. Anyway, I've finally got to a point where I can run a new "empty" rails project and I was hoping to see the default rails page. Unfortunately instead I get an Internal Server Error and the following in the log: [2011-11-16 10:30:56] INFO WEBrick 1.3.1 [2011-11-16 10:30:56] INFO ruby 1.9.3 (2011-10-30) [i386-mingw32] [2011-11-16 10:30:56] INFO WEBrick::HTTPServer#start: pid=3432 port=3000 [2011-11-16 10:31:19] ERROR ArgumentError: dump format error for symbol(0x6) C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_view/template.rb:24:in `load' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_view/template.rb:24:in `<top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/coffee-rails-3.1.1/lib/coffee/rails/template_handler.rb:17:in `block in <top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:42:in `each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_view/base.rb:216:in `<class:Base>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_view/base.rb:133:in `<module:ActionView>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_view/base.rb:8:in `<top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/abstract_controller/view_paths.rb:90:in `view_paths=' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/abstract_controller/view_paths.rb:76:in `prepend_view_path' C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.1.2.rc2/lib/rails/engine.rb:532:in `block (2 levels) in <class:Engine>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:42:in `each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.2.rc2/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_controller/base.rb:234:in `<class:Base>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_controller/base.rb:171:in `<module:ActionController>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_controller/base.rb:3:in `<top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_dispatch/middleware/static.rb:31:in `ext' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_dispatch/middleware/static.rb:15:in `match?' C:/Ruby193/lib/ruby/gems/1.9.1/gems/actionpack-3.1.2.rc2/lib/action_dispatch/middleware/static.rb:47:in `call' C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.1.2.rc2/lib/rails/engine.rb:456:in `call' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/content_length.rb:14:in `call' C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.1.2.rc2/lib/rails/rack/log_tailer.rb:14:in `call' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.3.5/lib/rack/handler/webrick.rb:59:in `service' C:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service' C:/Ruby193/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run' C:/Ruby193/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread' I seem to have a hit a bit of a (WE)Brick wall, and have no idea where to go from here (except maybe a Linux VM). Any help would be greatly appreciated. LJ
0
4,761,841
01/21/2011 17:26:42
409,110
08/02/2010 22:26:31
90
2
google maps kml
i am generating a kml out of the posts created by users... but it may so happen that for a new user the kml will be empty... in this case the map does not show. any fixes for this?
javascript
google-maps
google-maps-api-3
kml
null
null
open
google maps kml === i am generating a kml out of the posts created by users... but it may so happen that for a new user the kml will be empty... in this case the map does not show. any fixes for this?
0
9,366,720
02/20/2012 18:51:36
868,300
07/28/2011 20:54:16
16
2
getting stuck with C pointer Structure
I am working on Embedded C . I am stuck with pointer structure .... Structures are given below .. /*structure 1*/ ZPS_tsAplApsmeBindingTableType *psAplApsmeAibBindingTable; /*structure 2*/ typedef struct { ZPS_tsAplApsmeBindingTableCache* psAplApsmeBindingTableCache; ZPS_tsAplApsmeBindingTable* psAplApsmeBindingTable; }ZPS_tsAplApsmeBindingTableType; /*structure3*/ typedef struct { uint64 u64SourceAddress; ZPS_tsAplApsmeBindingTableEntry* pvAplApsmeBindingTableEntryForSpSrcAddr; uint32 u32SizeOfBindingTable; }ZPS_tsAplApsmeBindingTable; /*structure 4*/ typedef struct { ZPS_tuAddress uDstAddress; uint16 u16ClusterId; uint8 u8DstAddrMode; uint8 u8SourceEndpoint; uint8 u8DestinationEndPoint; }ZPS_tsAplApsmeBindingTableEntry; I have declared ZPS_tsAplApsmeBindingTableType *p; but i want to access ZPS_tsAplApsmeBindingTableEntry structure values... How could i do that?? Can anyone tell me the difference between ZPS_tsAplApsmeBindingTable* psAplApsmeBindingTable and ZPS_tsAplApsmeBindingTable *psAplApsmeBindingTable; Thanks ....
c
pointers
embedded
structure
zigbee
null
open
getting stuck with C pointer Structure === I am working on Embedded C . I am stuck with pointer structure .... Structures are given below .. /*structure 1*/ ZPS_tsAplApsmeBindingTableType *psAplApsmeAibBindingTable; /*structure 2*/ typedef struct { ZPS_tsAplApsmeBindingTableCache* psAplApsmeBindingTableCache; ZPS_tsAplApsmeBindingTable* psAplApsmeBindingTable; }ZPS_tsAplApsmeBindingTableType; /*structure3*/ typedef struct { uint64 u64SourceAddress; ZPS_tsAplApsmeBindingTableEntry* pvAplApsmeBindingTableEntryForSpSrcAddr; uint32 u32SizeOfBindingTable; }ZPS_tsAplApsmeBindingTable; /*structure 4*/ typedef struct { ZPS_tuAddress uDstAddress; uint16 u16ClusterId; uint8 u8DstAddrMode; uint8 u8SourceEndpoint; uint8 u8DestinationEndPoint; }ZPS_tsAplApsmeBindingTableEntry; I have declared ZPS_tsAplApsmeBindingTableType *p; but i want to access ZPS_tsAplApsmeBindingTableEntry structure values... How could i do that?? Can anyone tell me the difference between ZPS_tsAplApsmeBindingTable* psAplApsmeBindingTable and ZPS_tsAplApsmeBindingTable *psAplApsmeBindingTable; Thanks ....
0
8,130,462
11/15/2011 01:32:58
1,046,634
11/15/2011 01:22:25
1
0
Verification of a message using an HSM exported Key
I am facing a problem with signing and verifying messages using HSM. The message has been signed by HSM. I am trying to use the HSM exported public key to verify the above signed message. I get the following error- Invalid Key Format- java.security.InvalidKeyException I am using the X509 format with RSA. Can anyone please help in this regard or provide any pointers?
java
hsm
null
null
null
11/16/2011 05:09:51
not a real question
Verification of a message using an HSM exported Key === I am facing a problem with signing and verifying messages using HSM. The message has been signed by HSM. I am trying to use the HSM exported public key to verify the above signed message. I get the following error- Invalid Key Format- java.security.InvalidKeyException I am using the X509 format with RSA. Can anyone please help in this regard or provide any pointers?
1
2,909,099
05/25/2010 22:55:54
344,535
05/18/2010 21:56:17
1
0
SQL Server 2005 sp_send_dbmail
When we use sp_send_dbmail to send email with attachment, the attachment gets copied into a folder inside C:\Windows\Temp. As we have many emails to be sent every day, the temp folder grows rapidly. This is the case with SQL Server 2005. We noticed that, with SQL Server 2008, we dont see these file under temp folder. Is there any setting to turn the above behavior off? Does SQL Server 2008 store the files in any other folder and not in temp? Appreciate your help and time. Thanks.
sql
sql-server-2005
server
sp-send-dbmail
null
null
open
SQL Server 2005 sp_send_dbmail === When we use sp_send_dbmail to send email with attachment, the attachment gets copied into a folder inside C:\Windows\Temp. As we have many emails to be sent every day, the temp folder grows rapidly. This is the case with SQL Server 2005. We noticed that, with SQL Server 2008, we dont see these file under temp folder. Is there any setting to turn the above behavior off? Does SQL Server 2008 store the files in any other folder and not in temp? Appreciate your help and time. Thanks.
0
6,938,452
08/04/2011 08:38:45
871,202
07/31/2011 02:04:31
119
0
Speed of "disk" access on virtual machines?
I've been playing with the free micro instance that amazon is offering, and it is quite cool how they abstract away the fact that you don't _actually_ have a disk; for all intents and purposes the local storage and EBS behave as if you really had one. However, i have no idea how fast they are, even in rough order of magnitude. The list i'm familiar with looks something like: - Direct memory accesses (nanosecond latency?) - Database accesses (???) - SSD accesses (???) - Hard Disk accesses are really slow (~10ms?), - Network requests (>500ms!!!) Where does the sort of Virtual disk that Amazon is providing fall on this line? They probably vary wildly, but even a rough order-of-magnitude number would be helpful.
performance
memory
amazon-ec2
virtualization
null
11/13/2011 11:33:09
off topic
Speed of "disk" access on virtual machines? === I've been playing with the free micro instance that amazon is offering, and it is quite cool how they abstract away the fact that you don't _actually_ have a disk; for all intents and purposes the local storage and EBS behave as if you really had one. However, i have no idea how fast they are, even in rough order of magnitude. The list i'm familiar with looks something like: - Direct memory accesses (nanosecond latency?) - Database accesses (???) - SSD accesses (???) - Hard Disk accesses are really slow (~10ms?), - Network requests (>500ms!!!) Where does the sort of Virtual disk that Amazon is providing fall on this line? They probably vary wildly, but even a rough order-of-magnitude number would be helpful.
2
7,723,052
10/11/2011 08:08:24
940,036
09/12/2011 07:09:28
1
0
Android: how to make *truly* transparent activity SwipePad style?
So yes, I know how to make my Activity look transparent (http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android), but I want the user being able to interact with what ever screen they are (for example YouTube), like done in SwipePad. Now I can make it transparent, but the user can't do anything before exiting my activity. I know this is possible as it's already done in SwipePad, but how?
android
activity
transparent
null
null
null
open
Android: how to make *truly* transparent activity SwipePad style? === So yes, I know how to make my Activity look transparent (http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android), but I want the user being able to interact with what ever screen they are (for example YouTube), like done in SwipePad. Now I can make it transparent, but the user can't do anything before exiting my activity. I know this is possible as it's already done in SwipePad, but how?
0
8,132,133
11/15/2011 06:01:36
618,775
02/15/2011 23:49:28
293
13
What Design Patterns are present in the .NET Entity Framework?
I was asked the question "What Gang of Four Design Patterns are used in Entity Framework". I could not really think of any. Can anyone help to identify some of the GOF design patterns in EF?
.net
entity-framework
design-patterns
null
null
11/15/2011 17:37:00
not constructive
What Design Patterns are present in the .NET Entity Framework? === I was asked the question "What Gang of Four Design Patterns are used in Entity Framework". I could not really think of any. Can anyone help to identify some of the GOF design patterns in EF?
4
6,208,833
06/01/2011 23:19:13
780,291
06/01/2011 22:58:18
1
0
Java game development - Look and shoot at mouse coordinates
I'm going to make a game where you run around with a character, seen from above. But the problem is how do I make the character look at the mouse all the time? And how do I calculate the angle so that I can shoot towards the mouse(where I'm currently looking). I guess you have to play around with trigonometry and stuff like that to get angles, but I really don't know how. I'm pretty good at math, so I might figure it out if you guys give me some help. And sorry for my eventually bad english, I'm swedish :) Thanks, Alexandberg
java
mouse
angle
null
null
null
open
Java game development - Look and shoot at mouse coordinates === I'm going to make a game where you run around with a character, seen from above. But the problem is how do I make the character look at the mouse all the time? And how do I calculate the angle so that I can shoot towards the mouse(where I'm currently looking). I guess you have to play around with trigonometry and stuff like that to get angles, but I really don't know how. I'm pretty good at math, so I might figure it out if you guys give me some help. And sorry for my eventually bad english, I'm swedish :) Thanks, Alexandberg
0
449,595
01/16/2009 05:34:32
55,362
01/15/2009 09:37:30
65
2
Google Interview Questions
I am preparing for an interview with Google (Mountain View) I was wondering if anybody could share some of the questions and experiences. I have been told that they ask both brain teasers and coding/algorithm questions this time
google
interview-questions
null
null
null
11/28/2011 20:37:08
not constructive
Google Interview Questions === I am preparing for an interview with Google (Mountain View) I was wondering if anybody could share some of the questions and experiences. I have been told that they ask both brain teasers and coding/algorithm questions this time
4
3,720,851
09/15/2010 18:58:47
329,811
04/30/2010 14:19:52
58
6
How to extract sybase (12.5) table ddl via sql.
Good afternoon, I've scanned similar questions but they seem to be referring to other databases and/or external languages. I'm looking to programatically extract table DDL via sql, with a result that's "good enough" to re-import and reconstruct the table. DBArtisan produces the exact result I'm looking for, but I have a dynamic list of a few dozen tables that I need to work with, and was hoping for a programatic solution. I figure DBArtisan has to be doing calling the api SOMEhow. Are they just ripping against the systables or is there a system installed stored proc (similar to the one that yields stored proc text) that I'm missing? Thanks o/
sql
perl
sybase
ddl
null
null
open
How to extract sybase (12.5) table ddl via sql. === Good afternoon, I've scanned similar questions but they seem to be referring to other databases and/or external languages. I'm looking to programatically extract table DDL via sql, with a result that's "good enough" to re-import and reconstruct the table. DBArtisan produces the exact result I'm looking for, but I have a dynamic list of a few dozen tables that I need to work with, and was hoping for a programatic solution. I figure DBArtisan has to be doing calling the api SOMEhow. Are they just ripping against the systables or is there a system installed stored proc (similar to the one that yields stored proc text) that I'm missing? Thanks o/
0
3,084,019
06/21/2010 11:01:20
176,514
09/15/2008 19:10:02
188
13
How to give advice to co-worker without seeming as though i'm lecturing him.
I have a co-worker who refuses to take advice on a solution to a problem. I think he will eventually get there however the solution will far more complex than it needs to be. His the lone warrior type, and get's passive aggressive when you try to give him advice. Do I just let him use the more complex solution which will take more time? I don't want to hurt his pride.
co-workers
null
null
null
null
06/21/2010 12:18:32
off topic
How to give advice to co-worker without seeming as though i'm lecturing him. === I have a co-worker who refuses to take advice on a solution to a problem. I think he will eventually get there however the solution will far more complex than it needs to be. His the lone warrior type, and get's passive aggressive when you try to give him advice. Do I just let him use the more complex solution which will take more time? I don't want to hurt his pride.
2
8,888,982
01/17/2012 02:32:05
1,153,037
01/17/2012 02:14:50
1
0
What are some ways to get started learning Java, and where should i go from there?
my name is Louis and i am 18; not too long ago i enrolled in a vocational highschool for trades of different types. I chose office Technologies, so i now have my Microsoft Specialist certification as well as my HTML cert. I know this isn't much but from here i wish to attempt to learn Java. I don't know much about programming but this year, during the summer i will be attending college for web design. I will be learning PHP, Javascript, HTML(more), SQL, and more. I cannot take more than 1 major as some classes overlap so i would really like to teach myself how to program on the side. I have only knowledge of CSS and HTML; but those are not programming languages. Visual basic i heard from many people was easy, however it is only for windows and is unique in its language meaning if i move on to another language it will be entirely new. Why did i pick Java to learn? I picked it because i hear there are many different libraries for it to do many different tasks with Java. Java, i know, is multi-platoform so it can be used in alot of different environments. What do i plan to do with the knowledge i wish to seek? Well i know i won't be able to create games or anything ridiculous like that for years to come (any amazing games anyways). What i really would like to do in Java is make web applications which are interactive that can be used to gather information. Such as a highscores list for games, or a chat system such as IRC; little things that are fun to use and provide information. In the future i would really like to be a part of a small team making 3d games but small games none the less. If someone could explain ways that will teach me about Java and its different libraries and what they do that would be great. I want to learn, but i do not know where to start. I want to (in a timeline) go from Learning the basics of Java and programming in general > Learn to make small applications for the web and data collection > mess around with game engines and use Java to make things work in the engines. This sounds like alot, i know, but i want to do this in a span of years and years, i know it won't be overnight. If someone could also explain what Java can do in conjunction with engines that would be great. Someone told me Java can be used with any engine, even if the engine is written in another coe, such as C++. Fore example you could use the Unreal Development kit and then use Java to add features and make them work? Sorry for the long wall of text, i wanted to make it as detailed as possible. Thank you for your time, it is appreciated.
java
application
ide
web
engines
01/17/2012 03:39:03
off topic
What are some ways to get started learning Java, and where should i go from there? === my name is Louis and i am 18; not too long ago i enrolled in a vocational highschool for trades of different types. I chose office Technologies, so i now have my Microsoft Specialist certification as well as my HTML cert. I know this isn't much but from here i wish to attempt to learn Java. I don't know much about programming but this year, during the summer i will be attending college for web design. I will be learning PHP, Javascript, HTML(more), SQL, and more. I cannot take more than 1 major as some classes overlap so i would really like to teach myself how to program on the side. I have only knowledge of CSS and HTML; but those are not programming languages. Visual basic i heard from many people was easy, however it is only for windows and is unique in its language meaning if i move on to another language it will be entirely new. Why did i pick Java to learn? I picked it because i hear there are many different libraries for it to do many different tasks with Java. Java, i know, is multi-platoform so it can be used in alot of different environments. What do i plan to do with the knowledge i wish to seek? Well i know i won't be able to create games or anything ridiculous like that for years to come (any amazing games anyways). What i really would like to do in Java is make web applications which are interactive that can be used to gather information. Such as a highscores list for games, or a chat system such as IRC; little things that are fun to use and provide information. In the future i would really like to be a part of a small team making 3d games but small games none the less. If someone could explain ways that will teach me about Java and its different libraries and what they do that would be great. I want to learn, but i do not know where to start. I want to (in a timeline) go from Learning the basics of Java and programming in general > Learn to make small applications for the web and data collection > mess around with game engines and use Java to make things work in the engines. This sounds like alot, i know, but i want to do this in a span of years and years, i know it won't be overnight. If someone could also explain what Java can do in conjunction with engines that would be great. Someone told me Java can be used with any engine, even if the engine is written in another coe, such as C++. Fore example you could use the Unreal Development kit and then use Java to add features and make them work? Sorry for the long wall of text, i wanted to make it as detailed as possible. Thank you for your time, it is appreciated.
2
10,566,503
05/12/2012 18:52:56
1,391,404
05/12/2012 18:43:39
1
0
Facebook share - sharer.php x facebook debugger
Please, Facebook sharer.php outcome is different of debugger outcome. Facebook debugger: Everything is alright! http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Ffiliticket.siteoficial.ws%2Fpayment%2Feventdetails%2F%3Fevent%3D15%26type%3Dofficial_ticket Sharer.php: Not as expected! http://www.facebook.com/sharer.php?u=http://filiticket.siteoficial.ws/payment/eventdetails/?event=15&type=official_ticket Could someone please help me? tks
facebook
debugging
share
facebook-sharer
null
05/12/2012 22:10:04
not a real question
Facebook share - sharer.php x facebook debugger === Please, Facebook sharer.php outcome is different of debugger outcome. Facebook debugger: Everything is alright! http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Ffiliticket.siteoficial.ws%2Fpayment%2Feventdetails%2F%3Fevent%3D15%26type%3Dofficial_ticket Sharer.php: Not as expected! http://www.facebook.com/sharer.php?u=http://filiticket.siteoficial.ws/payment/eventdetails/?event=15&type=official_ticket Could someone please help me? tks
1
10,544,506
05/11/2012 02:08:57
1,379,884
05/07/2012 13:38:45
36
2
What are the benefits of "public nested class"?
What are the benefits of "public nested class"? Some minor benefits that I can think of: 1.To save naming spaces 2.To make your code tidy , reducing the number of classes 3.The nested class can access private fields of the Outer class where you don't need to provide methods to expose private fields. But what else?
java
nested-class
null
null
null
05/11/2012 09:54:35
not constructive
What are the benefits of "public nested class"? === What are the benefits of "public nested class"? Some minor benefits that I can think of: 1.To save naming spaces 2.To make your code tidy , reducing the number of classes 3.The nested class can access private fields of the Outer class where you don't need to provide methods to expose private fields. But what else?
4
7,340,357
09/07/2011 20:48:21
921,520
08/31/2011 11:56:00
22
0
uploading images in php
When I upload my images, It's throwing an error. How do I change permission settings of my folder in windows? Is there anything wrong with my code? //This is my path for storing images. (I am using wamp 2.0) $targetPath="../artistImages/"; $image=$_FILES['myimage']; $image['name'] = mysql_real_escape_string($image['name']); $targetPath.=$image['name']; if(move_uploaded_file($image['tmp_name'],$targetPath)) { $insertQuery="INSERT INTO $tbl_name(ArtistImage)VALUES('".$image['name']."')"; $result=mysql_query($insertQuery) or die("Failed to upload image"); } else { echo "Could not upload file. Check read/write persmissions on the directory"; }
php
mysql
null
null
null
09/07/2011 23:59:21
not a real question
uploading images in php === When I upload my images, It's throwing an error. How do I change permission settings of my folder in windows? Is there anything wrong with my code? //This is my path for storing images. (I am using wamp 2.0) $targetPath="../artistImages/"; $image=$_FILES['myimage']; $image['name'] = mysql_real_escape_string($image['name']); $targetPath.=$image['name']; if(move_uploaded_file($image['tmp_name'],$targetPath)) { $insertQuery="INSERT INTO $tbl_name(ArtistImage)VALUES('".$image['name']."')"; $result=mysql_query($insertQuery) or die("Failed to upload image"); } else { echo "Could not upload file. Check read/write persmissions on the directory"; }
1
9,085,572
01/31/2012 19:22:23
478,458
10/17/2010 10:34:58
73
0
Creating a Zuma-like web game - which technology to use?
I'd like to port my [Zuma][1]-like game to browsers. It's not really complex 2D arcade game, just some animations and particle systems - really similar in complexity to the one I linked to. I'm wondering what technology should I use. I'm thinking about Java, Flash or maybe some solution working without a plugin (SVG, Canvas?). The cost of the technology is also really important to me (I'd prefer a free solution of course, but don't know if it's possible). It's really probable that I'll also port the game to Anrdoid and iPhone. Maybe if I picked Java, I could write one version that would work on both: browsers and Android phones? Sorry for my lack of knowledge, my situation is pretty weird now, since I got an interesting offer from a producer. [1]: http://www.popcap.com/games/zumas-revenge/online
java
flash
web
null
null
02/01/2012 03:35:17
not constructive
Creating a Zuma-like web game - which technology to use? === I'd like to port my [Zuma][1]-like game to browsers. It's not really complex 2D arcade game, just some animations and particle systems - really similar in complexity to the one I linked to. I'm wondering what technology should I use. I'm thinking about Java, Flash or maybe some solution working without a plugin (SVG, Canvas?). The cost of the technology is also really important to me (I'd prefer a free solution of course, but don't know if it's possible). It's really probable that I'll also port the game to Anrdoid and iPhone. Maybe if I picked Java, I could write one version that would work on both: browsers and Android phones? Sorry for my lack of knowledge, my situation is pretty weird now, since I got an interesting offer from a producer. [1]: http://www.popcap.com/games/zumas-revenge/online
4
11,474,911
07/13/2012 16:54:29
1,357,627
04/26/2012 02:46:00
9
0
why SELECT is still using CPU & DiskIO?
I have a large database, about 30GB. In order to delete some data from a table (most data is in this table, simply because the # of rows), I have to do delete in batch. However, if I delete in too many batches, the system becomes very slow. So, what we do is: query the # of data that will be deleted, then use 1/10 of the # as batch size. When I test this, I found a weird thing. since it has lots of data to be deleted, the delete batch loop takes a long time to finish. during the delete, when I use sp_who2 to check, I can see the CPU time and DiskIO of 2 SPID keep changing. One is for DELETE and one is for SELECT. the delete is for bacth delete. but the SELECT is for getting the # of data that will be deleted. I'm using the sqlcommand in c# to do this. The SELECT was done first, once get the #, then we do DELETE. The log actually shows the result of SELECT. My question is: why sp_who2 still shows the CPU time and DiskIO changing? Should it be done already? what can cause this? and at the same time, the CPU Time and DiskIO for delete is changing too. anyone has an explaination of this? thanks
c#
sql
sql-server
sql-server-2008
null
07/13/2012 23:54:48
off topic
why SELECT is still using CPU & DiskIO? === I have a large database, about 30GB. In order to delete some data from a table (most data is in this table, simply because the # of rows), I have to do delete in batch. However, if I delete in too many batches, the system becomes very slow. So, what we do is: query the # of data that will be deleted, then use 1/10 of the # as batch size. When I test this, I found a weird thing. since it has lots of data to be deleted, the delete batch loop takes a long time to finish. during the delete, when I use sp_who2 to check, I can see the CPU time and DiskIO of 2 SPID keep changing. One is for DELETE and one is for SELECT. the delete is for bacth delete. but the SELECT is for getting the # of data that will be deleted. I'm using the sqlcommand in c# to do this. The SELECT was done first, once get the #, then we do DELETE. The log actually shows the result of SELECT. My question is: why sp_who2 still shows the CPU time and DiskIO changing? Should it be done already? what can cause this? and at the same time, the CPU Time and DiskIO for delete is changing too. anyone has an explaination of this? thanks
2
8,693,034
01/01/2012 12:15:15
1,010,613
10/24/2011 10:00:02
115
0
Copyright of small images
Are small images(like background patterns in web pages) covered by copyright law? I can easily create a new one absolutely similar to the original, so if they are covered by copyright, no body can find the original one(?)
copyright
null
null
null
null
01/02/2012 05:52:16
off topic
Copyright of small images === Are small images(like background patterns in web pages) covered by copyright law? I can easily create a new one absolutely similar to the original, so if they are covered by copyright, no body can find the original one(?)
2
2,831,987
05/14/2010 05:19:53
340,949
05/14/2010 05:19:53
1
0
I want to create an Android App that checks a website like Woot
Im new to android and thought it would be fun to develop an app that goes out and checks woot.com. The idea I came up with is for the app to be a widget that refresh woot.com once a day and displays a picture of the item and price. If the widget is clicked on it would open the browser to woot.com. In theory this seems like it would be easy but Im having trouble figuring out where to begin. Any help would be appreciated. Thanks Tim
android
application
null
null
null
09/05/2011 19:07:48
not a real question
I want to create an Android App that checks a website like Woot === Im new to android and thought it would be fun to develop an app that goes out and checks woot.com. The idea I came up with is for the app to be a widget that refresh woot.com once a day and displays a picture of the item and price. If the widget is clicked on it would open the browser to woot.com. In theory this seems like it would be easy but Im having trouble figuring out where to begin. Any help would be appreciated. Thanks Tim
1
6,829,333
07/26/2011 11:30:43
863,341
07/26/2011 11:30:43
1
0
How to count charachters in RichEdit without two charachters that every new line gives?
I have problem with counting characters in richedit (Delphi XE). For every new line as a result i get two characters more but in text they not exists. Example: Here are 15 characters, but richedit gives 17 because of new line. line zero line one Is there solution for this?
count
newline
character
richedit
line-breaks
null
open
How to count charachters in RichEdit without two charachters that every new line gives? === I have problem with counting characters in richedit (Delphi XE). For every new line as a result i get two characters more but in text they not exists. Example: Here are 15 characters, but richedit gives 17 because of new line. line zero line one Is there solution for this?
0
9,128,049
02/03/2012 11:36:47
535,935
12/09/2010 05:08:49
44
21
View entire activities of an user in github
I am new to git hub . How can I view the entire activities of an user in github.com . Say Mr.Geos entire activites Mr.Geo pushed to .. Mr.Geo deleted ... ... Thanks in Advance
git
github
null
null
null
02/03/2012 21:28:30
off topic
View entire activities of an user in github === I am new to git hub . How can I view the entire activities of an user in github.com . Say Mr.Geos entire activites Mr.Geo pushed to .. Mr.Geo deleted ... ... Thanks in Advance
2
9,195,499
02/08/2012 14:44:32
832,187
07/06/2011 18:37:03
29
3
Applications or Ways to Import MySQL Database with Relations etc..?
I'm trying to edit my MySQL database after a long time of taking a rest, and I'm pretty confused what's what. Do you know of any application or a way in which I could import or merge my db on server into an application that will not only allow me to work with the database on my local pc, but be able to view the structure and relations visually? Thank you :)))
mysql
null
null
null
null
02/09/2012 17:10:20
off topic
Applications or Ways to Import MySQL Database with Relations etc..? === I'm trying to edit my MySQL database after a long time of taking a rest, and I'm pretty confused what's what. Do you know of any application or a way in which I could import or merge my db on server into an application that will not only allow me to work with the database on my local pc, but be able to view the structure and relations visually? Thank you :)))
2
5,672,898
04/15/2011 05:55:38
709,225
04/15/2011 05:50:28
1
0
I know C++ very well, what language should I learn next?
I have programmed in C++ for 2 years now and I love programming in C++.. i also have programmed in PHP for about 4 moths (PHP is extremely easy lol).. but i would like to learn another language... which would be recommended for a programmer who knows C++ well? Which would be easiest for me to learn? Languages which interest me in order from most to least: Python, Java, Lisp, Ada and C#.
c++
python
lisp
ada
null
04/15/2011 06:09:04
not a real question
I know C++ very well, what language should I learn next? === I have programmed in C++ for 2 years now and I love programming in C++.. i also have programmed in PHP for about 4 moths (PHP is extremely easy lol).. but i would like to learn another language... which would be recommended for a programmer who knows C++ well? Which would be easiest for me to learn? Languages which interest me in order from most to least: Python, Java, Lisp, Ada and C#.
1
3,816,983
09/28/2010 20:55:36
268,113
02/07/2010 13:00:03
3
0
How do I build a game in C with actors programmed in Lua?
I want to build a strategy game using C and Lua. C++ is also an option. I would like to create an environment where a player can move around. In the same environment, other actors (programmed in Lua) should be able to move around. Their Lua code should control how they move. It sounds simple enough, but I wonder what would be a good design approach for this project. As a simple example you can imagine a matrix that is the playing field. How do I write my code so that a player and several other (scripted) actors can move through it simultaneously? The Lua code of the actors should be able to get information from the playing field. For example: an actor could be programmed to follow a fixed path, looking around along the way. Then if the actor detects an other player, it could change its behavior to follow the other player. I imagine this problem has been solved many times, but I can't seem to find a simple example. Any links to other designs and original ideas are much appreciated.
c++
c
lua
null
null
09/28/2010 21:22:35
not a real question
How do I build a game in C with actors programmed in Lua? === I want to build a strategy game using C and Lua. C++ is also an option. I would like to create an environment where a player can move around. In the same environment, other actors (programmed in Lua) should be able to move around. Their Lua code should control how they move. It sounds simple enough, but I wonder what would be a good design approach for this project. As a simple example you can imagine a matrix that is the playing field. How do I write my code so that a player and several other (scripted) actors can move through it simultaneously? The Lua code of the actors should be able to get information from the playing field. For example: an actor could be programmed to follow a fixed path, looking around along the way. Then if the actor detects an other player, it could change its behavior to follow the other player. I imagine this problem has been solved many times, but I can't seem to find a simple example. Any links to other designs and original ideas are much appreciated.
1
1,874,143
12/09/2009 14:08:52
165,107
08/28/2009 20:55:46
93
3
How to get value of star rating from repeater?
I have an application with star rating. Star rating inside repeater. <asp:Repeater ID="reptweet" runat="server" onitemcommand="reptweet_ItemCommand"> <ItemTemplate> <div class="divtweet"> <span class="box_imag"> <asp:Image ID="ScreenImage" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem,"ImageUrl")%>' height="50" width="50" /></span> <span class="box_cont"> <div><strong> <a rel="external" href='http://twitter.com/<%#DataBinder.Eval(Container.DataItem,"ScreenName")%>' target="_blank"> <asp:Label ID="lblScreenName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ScreenName")%>'></asp:Label></a></strong> <asp:Label ID="lblText" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Text")%>'></asp:Label> </div> <div class="meta"><asp:Label ID="lblDate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Date")%>'></asp:Label></div> </span> <asp:UpdatePanel ID="updtpnlTweet" runat="server"> <ContentTemplate> <cc1:Rating ID="rateTweet" runat="server" CurrentRating="3" MaxRating = "5" StarCssClass="ratingStar" EmptyStarCssClass="empatyStarRating" FilledStarCssClass="filledStarRating" WaitingStarCssClass="savedStarRating" OnChanged="rateTweet_Changed" > </cc1:Rating> </ContentTemplate> </asp:UpdatePanel> <asp:DropDownList ID="DropDownList1" runat="server" Width="100px" CssClass="dropdowntweet" DataSourceID="SqlDataSource1" DataTextField="CategoryName" DataValueField="CategoryId" > </asp:DropDownList> </div> </ItemTemplate> </asp:Repeater> Through this code its shows multiple rows and i want sort this repeater content on the basis of star rating. So can i get the value of star according per row. Or is there any other way for star rating.
asp.net
null
null
null
null
null
open
How to get value of star rating from repeater? === I have an application with star rating. Star rating inside repeater. <asp:Repeater ID="reptweet" runat="server" onitemcommand="reptweet_ItemCommand"> <ItemTemplate> <div class="divtweet"> <span class="box_imag"> <asp:Image ID="ScreenImage" runat="server" ImageUrl='<%#DataBinder.Eval(Container.DataItem,"ImageUrl")%>' height="50" width="50" /></span> <span class="box_cont"> <div><strong> <a rel="external" href='http://twitter.com/<%#DataBinder.Eval(Container.DataItem,"ScreenName")%>' target="_blank"> <asp:Label ID="lblScreenName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "ScreenName")%>'></asp:Label></a></strong> <asp:Label ID="lblText" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Text")%>'></asp:Label> </div> <div class="meta"><asp:Label ID="lblDate" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Date")%>'></asp:Label></div> </span> <asp:UpdatePanel ID="updtpnlTweet" runat="server"> <ContentTemplate> <cc1:Rating ID="rateTweet" runat="server" CurrentRating="3" MaxRating = "5" StarCssClass="ratingStar" EmptyStarCssClass="empatyStarRating" FilledStarCssClass="filledStarRating" WaitingStarCssClass="savedStarRating" OnChanged="rateTweet_Changed" > </cc1:Rating> </ContentTemplate> </asp:UpdatePanel> <asp:DropDownList ID="DropDownList1" runat="server" Width="100px" CssClass="dropdowntweet" DataSourceID="SqlDataSource1" DataTextField="CategoryName" DataValueField="CategoryId" > </asp:DropDownList> </div> </ItemTemplate> </asp:Repeater> Through this code its shows multiple rows and i want sort this repeater content on the basis of star rating. So can i get the value of star according per row. Or is there any other way for star rating.
0
4,922,962
02/07/2011 15:20:33
475,735
10/14/2010 12:14:58
141
7
Most useful design patterns?
I have recently come across the singleton design pattern, and love it. I would like to learn the rest, but not all at once. I would prefer to focus my attention on a few at a time, master them, and then move on. As such, I would like to know what anyone's opinion is on which couple I should focus on next. Which design patterns have you found most useful? From any standpoint ( productivity, code maintainability / simplicity, etc ). Also, if you happen to know of a guide that you yourself found useful in learning your favorite design patterns, I would love a link.
design-patterns
survey
null
null
null
02/07/2011 15:24:02
not constructive
Most useful design patterns? === I have recently come across the singleton design pattern, and love it. I would like to learn the rest, but not all at once. I would prefer to focus my attention on a few at a time, master them, and then move on. As such, I would like to know what anyone's opinion is on which couple I should focus on next. Which design patterns have you found most useful? From any standpoint ( productivity, code maintainability / simplicity, etc ). Also, if you happen to know of a guide that you yourself found useful in learning your favorite design patterns, I would love a link.
4
7,679,234
10/06/2011 19:11:38
750,984
05/12/2011 16:53:58
79
4
Working on a desktop from a laptop
I have an older desktop computer that I want to use for web development. But I don't want to connect a screen, keyboard and mouse to work directly on the desktop. I would rather want to work wireless from my laptop computer. Thus, I want to be able to start Visual Studio on my desktop but I want to do it from my laptop. How do I do? :-)
asp.net
networking
laptop
desktop-development
null
10/06/2011 20:02:05
off topic
Working on a desktop from a laptop === I have an older desktop computer that I want to use for web development. But I don't want to connect a screen, keyboard and mouse to work directly on the desktop. I would rather want to work wireless from my laptop computer. Thus, I want to be able to start Visual Studio on my desktop but I want to do it from my laptop. How do I do? :-)
2
7,627,645
10/02/2011 16:30:38
465,465
10/04/2010 01:31:07
159
1
TWiki topic details on each page
I recently started using `TWiki` on Ubuntu, does anybody know if there is any plugin by which I can have topic information(something like authorname, module name, status, ...etc) on each page. Something similar to infobox at the right side?. Thanks in advance!
ubuntu
wiki
mediawiki
twiki
null
10/03/2011 11:10:56
off topic
TWiki topic details on each page === I recently started using `TWiki` on Ubuntu, does anybody know if there is any plugin by which I can have topic information(something like authorname, module name, status, ...etc) on each page. Something similar to infobox at the right side?. Thanks in advance!
2
11,737,587
07/31/2012 09:59:39
342,059
05/15/2010 18:53:52
1,146
9
Java IOException: Permission denied on linux while running as owner
I need to create some directories and files and all of them should have permission 0600. When I Run from NetBeans: After creating directory when i try to store some files there I get `IOException` with "Permission Denied" message while both directories and files are created with same application at the same time with the same user so I think 0600 (owner read/write) should work. And When Running Jar file chmod doesn't work at all! My code is: if(!Dest.exists()){ boolean res=dirs.mkdirs(); if(res){ Runtime.getRuntime().exec("chmod -R 600 '"+dirs.getAbsolutePath()+"'"); } } File Destination=new File(Dest, source.getName()); documentManager.copyFile(source, Destination); and the copyFile is: public static void copyFile(File sourceFile, File destFile) throws FileNotFoundException,IOException { if(!destFile.exists()) { destFile.createNewFile(); } FileChannel source = null; FileChannel destination = null; try { source = new FileInputStream(sourceFile).getChannel(); destination = new FileOutputStream(destFile).getChannel(); destination.transferFrom(source, 0, source.size()); } finally { if(source != null) { source.close(); } if(destination != null) { Runtime.getRuntime().exec("chmod 600 '"+destFile.getAbsolutePath()+"'"); destination.close(); } } } What's the problem? Thanks
java
linux
io
file-permissions
chmod
null
open
Java IOException: Permission denied on linux while running as owner === I need to create some directories and files and all of them should have permission 0600. When I Run from NetBeans: After creating directory when i try to store some files there I get `IOException` with "Permission Denied" message while both directories and files are created with same application at the same time with the same user so I think 0600 (owner read/write) should work. And When Running Jar file chmod doesn't work at all! My code is: if(!Dest.exists()){ boolean res=dirs.mkdirs(); if(res){ Runtime.getRuntime().exec("chmod -R 600 '"+dirs.getAbsolutePath()+"'"); } } File Destination=new File(Dest, source.getName()); documentManager.copyFile(source, Destination); and the copyFile is: public static void copyFile(File sourceFile, File destFile) throws FileNotFoundException,IOException { if(!destFile.exists()) { destFile.createNewFile(); } FileChannel source = null; FileChannel destination = null; try { source = new FileInputStream(sourceFile).getChannel(); destination = new FileOutputStream(destFile).getChannel(); destination.transferFrom(source, 0, source.size()); } finally { if(source != null) { source.close(); } if(destination != null) { Runtime.getRuntime().exec("chmod 600 '"+destFile.getAbsolutePath()+"'"); destination.close(); } } } What's the problem? Thanks
0
9,737,498
03/16/2012 12:46:13
1,162,727
01/21/2012 19:50:31
27
0
C# .NET digital book which focuses on databases
I am looking for a digital book for c# .net which focuses databases. I need this book to be for begginers. Thanks!
c#
books
digital
null
null
03/18/2012 22:33:40
off topic
C# .NET digital book which focuses on databases === I am looking for a digital book for c# .net which focuses databases. I need this book to be for begginers. Thanks!
2
8,060,592
11/09/2011 05:09:52
1,017,800
10/28/2011 05:50:02
7
0
How to change the sqlite database data into xml form?
iam developing one application.In that i need to get the sqlite database data in xml format.And i need to save the xml format data in sqlite database.So please tell me how to get that one.
iphone
null
null
null
null
11/10/2011 03:26:09
not a real question
How to change the sqlite database data into xml form? === iam developing one application.In that i need to get the sqlite database data in xml format.And i need to save the xml format data in sqlite database.So please tell me how to get that one.
1
5,840,098
04/30/2011 06:43:03
730,556
04/29/2011 06:23:41
1
0
Android Devlopment
How can i devloped andorid game ? there is any game engine for developed game in andorid ?
android
null
null
null
null
04/30/2011 06:46:25
not a real question
Android Devlopment === How can i devloped andorid game ? there is any game engine for developed game in andorid ?
1
8,577,563
12/20/2011 15:13:37
548,743
12/20/2010 14:27:48
13
0
centOS | Sending mail with attachment?
/mail -s "mail subject" -a "attachment.txt" example@example.com <./body.txt with this command i can send an e-mail on Fedora but today ,i try this command on centOS .Nevertheless , it gives an error as `/mail: invalid option -- a` After that i try to use uuencode but it did not work either.Have you any idea about this on centOS?
email
command
prompt
sending
null
12/20/2011 15:50:04
off topic
centOS | Sending mail with attachment? === /mail -s "mail subject" -a "attachment.txt" example@example.com <./body.txt with this command i can send an e-mail on Fedora but today ,i try this command on centOS .Nevertheless , it gives an error as `/mail: invalid option -- a` After that i try to use uuencode but it did not work either.Have you any idea about this on centOS?
2
2,661,929
04/18/2010 10:40:19
283,055
05/11/2009 14:24:50
859
31
Action -methods vs public methods in PHP frameworks
There are plenty of PHP frameworks out there as many of you know, and I am interested in your thoughts on this: Zend Framework has so-called action controllers that must contain at least one action method, a method whose name ends in "Action". For example: public function indexAction() {} The word "Action" is important, without it you can't access the method directly via the URI. However, in some other frameworks like Kohana you have public and private methods, where public methods are accessible and private are not. So my question is which do you think is a better approach? From a secure point of view I would vote Zend's approach, but I am interested in knowing what others think.
php
mvc
zend-framework
null
null
null
open
Action -methods vs public methods in PHP frameworks === There are plenty of PHP frameworks out there as many of you know, and I am interested in your thoughts on this: Zend Framework has so-called action controllers that must contain at least one action method, a method whose name ends in "Action". For example: public function indexAction() {} The word "Action" is important, without it you can't access the method directly via the URI. However, in some other frameworks like Kohana you have public and private methods, where public methods are accessible and private are not. So my question is which do you think is a better approach? From a secure point of view I would vote Zend's approach, but I am interested in knowing what others think.
0
6,338,260
06/14/2011 01:44:58
796,882
06/14/2011 01:35:56
1
0
submit form to php file then to cgi script
I have a shopping cart setup with cartmanager.net We setup a complex form, take a look (https://www.paulinameatmarket.com/?p=tasteofpaulina) To add items to your shopping cart, the form is submited to https://www.cartmanager.net/cgi-bin/cart.cgi With this page, i'm creating an admin page for the owner to track the ordered shipments monthly and check them off each month as they are shipped so I need to add the ordered information into a mysql database Cartmanager doesn't have a way to send back the variables from a submitted order so I want to add the ordered item to the database before the cart.cgi script is ran. The owner will then verify that the order was actually paid, and if it wasn't he'll just delete it from the admin section. So what I need is to have the form FIRST go to a php page, run the mysql query to insert the item info, THEN run the cart.cgi script. This is hard to explain but i'm trying
php
forms
cgi
submit
null
null
open
submit form to php file then to cgi script === I have a shopping cart setup with cartmanager.net We setup a complex form, take a look (https://www.paulinameatmarket.com/?p=tasteofpaulina) To add items to your shopping cart, the form is submited to https://www.cartmanager.net/cgi-bin/cart.cgi With this page, i'm creating an admin page for the owner to track the ordered shipments monthly and check them off each month as they are shipped so I need to add the ordered information into a mysql database Cartmanager doesn't have a way to send back the variables from a submitted order so I want to add the ordered item to the database before the cart.cgi script is ran. The owner will then verify that the order was actually paid, and if it wasn't he'll just delete it from the admin section. So what I need is to have the form FIRST go to a php page, run the mysql query to insert the item info, THEN run the cart.cgi script. This is hard to explain but i'm trying
0
8,582,740
12/20/2011 22:22:04
881,897
08/06/2011 12:04:02
64
0
C#: Getting information of method name and parameters using Reflections?
There is a section of my projects that deals with a Cpp DLL full of methods, which I've already made a DLLImport Attribute and a proper c# extern methods. Each method has a different name and various parameters which differ by name and type (-pretty obvious-)... I need to know the names of the methods, in order to build a dynamic form that would contain all the paramters and method names as TextBoxes. Well, the second paragraph is the final target of my question, but it doesn't matter what I plan to do, I would only like to know how to get that information (**a collection of methods: names & parameters in a C# Class**). Thanks in adavance.
c#
.net
reflection
assembly
methods
12/20/2011 22:24:40
too localized
C#: Getting information of method name and parameters using Reflections? === There is a section of my projects that deals with a Cpp DLL full of methods, which I've already made a DLLImport Attribute and a proper c# extern methods. Each method has a different name and various parameters which differ by name and type (-pretty obvious-)... I need to know the names of the methods, in order to build a dynamic form that would contain all the paramters and method names as TextBoxes. Well, the second paragraph is the final target of my question, but it doesn't matter what I plan to do, I would only like to know how to get that information (**a collection of methods: names & parameters in a C# Class**). Thanks in adavance.
3
4,499,427
12/21/2010 12:52:05
335,429
05/07/2010 12:28:12
20
2
Animate gallery view in android ?
Is it possible to flip images in gallery when i shift from left to right , or give an effect similar to iPhone. The simple scrolling images look very dull.
android
null
null
null
null
05/20/2012 23:36:23
not a real question
Animate gallery view in android ? === Is it possible to flip images in gallery when i shift from left to right , or give an effect similar to iPhone. The simple scrolling images look very dull.
1
7,429,215
09/15/2011 10:13:29
946,538
09/15/2011 10:13:29
1
0
I need to sort follwing array of hash by account_id. Please give me solution with explanation
@account_details = ({'account_name' => 'John','account_id' => '4'},{ 'account_name' => 'Tom','account_id' => '2'},{'account_name' => 'Joseph','account_id' => '18'}{'account_name' => 'Rahul','account_id' => '25'}); Please explain the steps if use Schwartzian Transform.
perl
null
null
null
null
09/16/2011 03:51:53
not a real question
I need to sort follwing array of hash by account_id. Please give me solution with explanation === @account_details = ({'account_name' => 'John','account_id' => '4'},{ 'account_name' => 'Tom','account_id' => '2'},{'account_name' => 'Joseph','account_id' => '18'}{'account_name' => 'Rahul','account_id' => '25'}); Please explain the steps if use Schwartzian Transform.
1
8,050,576
11/08/2011 12:46:41
207,869
11/10/2009 15:14:30
269
17
Log sql-queries agains local sql-express instance
Is there a way to log all queries against the local sql-express instance?
logging
sql-server-express
null
null
null
null
open
Log sql-queries agains local sql-express instance === Is there a way to log all queries against the local sql-express instance?
0
10,986,230
06/11/2012 19:20:35
962,891
09/24/2011 18:10:11
1,111
2
SQL: differencing between SUMs calculated over a period
I have a table that looks like this: CREATE TABLE foobar ( id SERIAL PRIMARY KEY, data_entry_date DATE NOT NULL, user_id INTEGER NOT NULL, wine_glasses_drunk INTEGER NOT NULL, whisky_shots_drunk INTEGER NOT NULL, beer_bottle_drunk INTEGER NOT NULL ); I want to write a query that shows me the difference in TOTAL wine_glasses_drunk, TOTAL whisky_shots_drunk and TOTAL beer_bottles_drunk over a given period, compared to the TOTALs for the previous period. It probably sounds more complicated than it is. If we are using a period* of 1 **week** == 7 days, then the query should return the difference in the totals consumed for **this week**, as compared to the totals consumed **last week**. A slight complication is that the dates in the table are not continuous - i.e. there are some missing dates, so the query needs to find the most relevant date when determining dates for period calculations. This is what I have so far: -- startdate='2010-01-01' -- enddate='2010-18-01' SELECT SUM(f1.wine_glasses_drunk) - SUM(f2.wine_glasses_drunk) as wine_diff, SUM(f1.whisky_shots_drunk) - SUM(f2.whisky_shots_drunk) as whisky_diff, SUM(f1.beer_bottle_drunk) - SUM(f2.beer_bottle_drunk) beer_diff FROM foobar f1 INNER JOIN foobar f2 ON f2.id=f1.id WHERE f1.user_id=1 AND f1.data_entry_date BETWEEN '(SQL1)' AND '(SQL2)' AND f2.data_entry_date BETWEEN '(SQL2)' AND '(SQL3)' GROUP BY user_id, data_entry_date Where: - SQL1 = SQL query to fetch startdate or date nearest to it in the table foobar - SQL2 = SQL query to fetch date that is **period** days away from startdate (or date - nearest to the calculated date) in the table foobar - SQL3 = SQL query to fetch date that is **2xperiod** days away from startdate (or date nearest to the calculated date) in the table foobar The must be a better way to write this query. Can someone help?. I am using postgreSQl, but would prefer if possible, database agnostic (i.e. ANSI) SQL. ***Note:** The period is a parameter that is passed to the query
sql
postgresql
null
null
null
null
open
SQL: differencing between SUMs calculated over a period === I have a table that looks like this: CREATE TABLE foobar ( id SERIAL PRIMARY KEY, data_entry_date DATE NOT NULL, user_id INTEGER NOT NULL, wine_glasses_drunk INTEGER NOT NULL, whisky_shots_drunk INTEGER NOT NULL, beer_bottle_drunk INTEGER NOT NULL ); I want to write a query that shows me the difference in TOTAL wine_glasses_drunk, TOTAL whisky_shots_drunk and TOTAL beer_bottles_drunk over a given period, compared to the TOTALs for the previous period. It probably sounds more complicated than it is. If we are using a period* of 1 **week** == 7 days, then the query should return the difference in the totals consumed for **this week**, as compared to the totals consumed **last week**. A slight complication is that the dates in the table are not continuous - i.e. there are some missing dates, so the query needs to find the most relevant date when determining dates for period calculations. This is what I have so far: -- startdate='2010-01-01' -- enddate='2010-18-01' SELECT SUM(f1.wine_glasses_drunk) - SUM(f2.wine_glasses_drunk) as wine_diff, SUM(f1.whisky_shots_drunk) - SUM(f2.whisky_shots_drunk) as whisky_diff, SUM(f1.beer_bottle_drunk) - SUM(f2.beer_bottle_drunk) beer_diff FROM foobar f1 INNER JOIN foobar f2 ON f2.id=f1.id WHERE f1.user_id=1 AND f1.data_entry_date BETWEEN '(SQL1)' AND '(SQL2)' AND f2.data_entry_date BETWEEN '(SQL2)' AND '(SQL3)' GROUP BY user_id, data_entry_date Where: - SQL1 = SQL query to fetch startdate or date nearest to it in the table foobar - SQL2 = SQL query to fetch date that is **period** days away from startdate (or date - nearest to the calculated date) in the table foobar - SQL3 = SQL query to fetch date that is **2xperiod** days away from startdate (or date nearest to the calculated date) in the table foobar The must be a better way to write this query. Can someone help?. I am using postgreSQl, but would prefer if possible, database agnostic (i.e. ANSI) SQL. ***Note:** The period is a parameter that is passed to the query
0
2,219,450
02/08/2010 03:45:38
268,399
02/08/2010 03:39:15
1
0
Newb SQL question: Is there a "foreign key" equivalent for referencing columns, or is it logical to store column names as strings in another table?
(Sorry if this was posted twice... I'm not used to the interface of this site yet) Disclaimer: I'm an SQL newb, just discovering the great possibilities of sqlite embedded in applications. I'm designing a small database for an application that primarily handles data storage for plotting. Say I have several instrument data tables (one for each type of instrument) called <instrument_type>_DATA with a column for each data field, such as pressure, temperature, humidity, etc. I would like to join these data tables, pull out the column names, and assign a more human-readable column "description" made available to the user for selecting the independent/dependent variables for plotting. Getting the column names in sqlite is easy enough, but I'm not sure if I should store the resulting names (and longer descriptions) as another table in the db or in a list of some sort in the application. If it were another table in the db, I think I would have to store the column name as a string... unless there is some way to reference a column in SQL? I'm not sure if there is a foreign key equivalent for columns, or if this is just a sign of bad database design needing restructuring. Thanks for any suggestions, stack overflowers.
sql
foreign
column
names
null
null
open
Newb SQL question: Is there a "foreign key" equivalent for referencing columns, or is it logical to store column names as strings in another table? === (Sorry if this was posted twice... I'm not used to the interface of this site yet) Disclaimer: I'm an SQL newb, just discovering the great possibilities of sqlite embedded in applications. I'm designing a small database for an application that primarily handles data storage for plotting. Say I have several instrument data tables (one for each type of instrument) called <instrument_type>_DATA with a column for each data field, such as pressure, temperature, humidity, etc. I would like to join these data tables, pull out the column names, and assign a more human-readable column "description" made available to the user for selecting the independent/dependent variables for plotting. Getting the column names in sqlite is easy enough, but I'm not sure if I should store the resulting names (and longer descriptions) as another table in the db or in a list of some sort in the application. If it were another table in the db, I think I would have to store the column name as a string... unless there is some way to reference a column in SQL? I'm not sure if there is a foreign key equivalent for columns, or if this is just a sign of bad database design needing restructuring. Thanks for any suggestions, stack overflowers.
0
9,068,980
01/30/2012 18:39:45
21,640
09/24/2008 12:24:18
3,583
295
Python: File doesn't read whole file, io.FileIO does - why?
The following code, executed in python 2.7.2, only reads in a fraction of the underlying file: import os in_file = open(os.path.join(settings.BASEPATH,'CompanyName.docx')) incontent = in_file.read() in_file.close() while this code works just fine: import io import os in_file = io.FileIO(os.path.join(settings.BASEPATH,'CompanyName.docx')) incontent = in_file.read() in_file.close() Why the difference? From my reading of the docs, they should perform identically.
python
io
mystery
null
null
null
open
Python: File doesn't read whole file, io.FileIO does - why? === The following code, executed in python 2.7.2, only reads in a fraction of the underlying file: import os in_file = open(os.path.join(settings.BASEPATH,'CompanyName.docx')) incontent = in_file.read() in_file.close() while this code works just fine: import io import os in_file = io.FileIO(os.path.join(settings.BASEPATH,'CompanyName.docx')) incontent = in_file.read() in_file.close() Why the difference? From my reading of the docs, they should perform identically.
0
8,035,206
11/07/2011 10:30:53
958,557
09/22/2011 07:43:00
1
0
Visual studio command window - one alias for more commands
is there a possibility in Visual Studio command window to have one alias for more commands? E.g. one alias for: - save all - close all - show output - build thanks, Petr
visual-studio
command-window
null
null
null
11/24/2011 15:40:56
not constructive
Visual studio command window - one alias for more commands === is there a possibility in Visual Studio command window to have one alias for more commands? E.g. one alias for: - save all - close all - show output - build thanks, Petr
4
2,776,443
05/05/2010 20:12:14
48,082
12/21/2008 03:44:34
20,562
1,013
SQL Server: ODBC Connection pooling / C API
I want to clarify how to do connection pooling with SQL Server from C, using [ODBC][1]. I know this question is, like.... sooooo 1998, but... I've never done it in C, so... here goes: First I think I have to set the attribute to enable pooling: rc = SQLSetEnvAttr( NULL, // make process level cursor pooling SQL_ATTR_CONNECTION_POOLING, (SQLPOINTER)SQL_CP_ONE_PER_DRIVER, SQL_IS_INTEGER); Then allocate the HENV and set it for ODBC3.0: rc = SQLAllocHandle(SQL_HANDLE_ENV, NULL, &henv1); rc = SQLSetEnvAttr(henv1, SQL_ATTR_ODBC_VERSION, (void *)SQL_OV_ODBC3, 0); ---- **Questions** <ol> <li>Is it correct that I can use the HENV allocated above, in multiple concurrent threads within a single process, as I call SQLAllocHandle to allocate db connections (HDBC)? <br/><br/></li> <li>When I want to use connection from the pool, is it correct that the typical sequence is: <br/><br/> <ol> <li>SQLAllocHandle to get connection handle (HDBC)</li> <li>SQLDriverConnect/SQLConnect to connect on that handle</li> <li>SQLExecute/SQLExecDirect + a series of SQLFetch, to use the connection</li> <li>SQLDisconnect </li> <li>SQLFreeConnect</li> </ol> <br/> </li> <li>Is there a significant latency benefit if I save the allocated HDBC handle, and re-use it across multiple SQLDriverConnect + SQLDisconnect calls? In other words, I'd skip steps 2.1 and 2.5, for each use of the connection. Or are steps 2.1 and 2.5 basically just malloc/free? (in which case, I don't think I care). </li> </ol> ---- In this particular scenario, the C app will likely be the only application accessing the SQL Server from this box. But it's going to run within a IIS environment, and that means it will be potentially multi-process and each process will be multi-threaded. I'll be getting and using that connection within the scope of a HTTP Request, so I'll want it to be as fast, efficient, and scalable as possible. [1]: http://msdn.microsoft.com/en-us/library/ms714562(VS.85).aspx
sql-server
odbc
c
connection-pooling
null
null
open
SQL Server: ODBC Connection pooling / C API === I want to clarify how to do connection pooling with SQL Server from C, using [ODBC][1]. I know this question is, like.... sooooo 1998, but... I've never done it in C, so... here goes: First I think I have to set the attribute to enable pooling: rc = SQLSetEnvAttr( NULL, // make process level cursor pooling SQL_ATTR_CONNECTION_POOLING, (SQLPOINTER)SQL_CP_ONE_PER_DRIVER, SQL_IS_INTEGER); Then allocate the HENV and set it for ODBC3.0: rc = SQLAllocHandle(SQL_HANDLE_ENV, NULL, &henv1); rc = SQLSetEnvAttr(henv1, SQL_ATTR_ODBC_VERSION, (void *)SQL_OV_ODBC3, 0); ---- **Questions** <ol> <li>Is it correct that I can use the HENV allocated above, in multiple concurrent threads within a single process, as I call SQLAllocHandle to allocate db connections (HDBC)? <br/><br/></li> <li>When I want to use connection from the pool, is it correct that the typical sequence is: <br/><br/> <ol> <li>SQLAllocHandle to get connection handle (HDBC)</li> <li>SQLDriverConnect/SQLConnect to connect on that handle</li> <li>SQLExecute/SQLExecDirect + a series of SQLFetch, to use the connection</li> <li>SQLDisconnect </li> <li>SQLFreeConnect</li> </ol> <br/> </li> <li>Is there a significant latency benefit if I save the allocated HDBC handle, and re-use it across multiple SQLDriverConnect + SQLDisconnect calls? In other words, I'd skip steps 2.1 and 2.5, for each use of the connection. Or are steps 2.1 and 2.5 basically just malloc/free? (in which case, I don't think I care). </li> </ol> ---- In this particular scenario, the C app will likely be the only application accessing the SQL Server from this box. But it's going to run within a IIS environment, and that means it will be potentially multi-process and each process will be multi-threaded. I'll be getting and using that connection within the scope of a HTTP Request, so I'll want it to be as fast, efficient, and scalable as possible. [1]: http://msdn.microsoft.com/en-us/library/ms714562(VS.85).aspx
0
2,562,054
04/01/2010 16:45:03
307,083
04/01/2010 16:45:03
1
0
Combining DOM0 and DOM2 event handlers - cancelling of event possible in the DOM0 handler?
please consider the following problem: (1) You have assigned an inline event handler to a DOM element, like so `<a id="link1" href="..." onclick=" ... ´"`> (2) You also assign one or more further event handler(s) to the onclick event of link1 with the DOM2 or IE-specific assignment mechanism. The verified behavior in FF3.019 and IE7 is: the handler assigned in (1) is executed BEFORE all handlers assigned in (2) in case of a click. This is nice (so, probably, nothing written into stone ...). But let's rely on this behaviour for a moment. QUESTION now: is it possible to CANCEL the bubbling of the click event to the handlers assigned in (2) WITHIN the handler assigned in (1)? Before you scream: Sure, why not, see the following: Assume you assign onclick="if (ready1) return true; else return loading(event);" to link1 and define loading to be function loading(e) { // alert("Still loading functionality - sorry, slow line perhaps..."); // no propagation if( e.stopPropagation ) { e.stopPropagation(); } e.cancelBubble = true; return false; // Cancel default handling } in some script tag above. This DOES NOT prevent propagation (neither in FF3.019 nor IE) to the handlers assigned in (2). Any hint appreciated! Thanks in advance! Jannico Context (or: why would I want to do this?): A) Lazy / Late loading of javascript for fast reendering of content. -> you want to inform the user that some functionality is still loading (instead of simply disabling an UI element, which is not really user-friendly -- why is this button disabled???). You also want to use minimal javascript already embedded into the page, because loading a javascript library first with an additional request somewhat defeats the purpose (otherwise you could, of course, use one of the implemented mechanisms that allow event registration with guaranteed execution sequence (which you'll need for B, see below) and B) you also want to "set the beasts free" at a single "atomic" point in time, that is: you don't want to be forced to integrate/change all handlers assigned in (2) to wait for some kind of signal "now you are allowed to work because everything is loaded", you simply want to give this signal to the head of the event processing chain (the handler assigned in (1)) only, which then can simply start propagating the event to whatever may come (otherwise, partial reactions to user input may occur, because some functionality is already attached and other functionality not -- which is potentially worse than doing nothing ;)
javascript
javascript-events
lazy-loading
null
null
null
open
Combining DOM0 and DOM2 event handlers - cancelling of event possible in the DOM0 handler? === please consider the following problem: (1) You have assigned an inline event handler to a DOM element, like so `<a id="link1" href="..." onclick=" ... ´"`> (2) You also assign one or more further event handler(s) to the onclick event of link1 with the DOM2 or IE-specific assignment mechanism. The verified behavior in FF3.019 and IE7 is: the handler assigned in (1) is executed BEFORE all handlers assigned in (2) in case of a click. This is nice (so, probably, nothing written into stone ...). But let's rely on this behaviour for a moment. QUESTION now: is it possible to CANCEL the bubbling of the click event to the handlers assigned in (2) WITHIN the handler assigned in (1)? Before you scream: Sure, why not, see the following: Assume you assign onclick="if (ready1) return true; else return loading(event);" to link1 and define loading to be function loading(e) { // alert("Still loading functionality - sorry, slow line perhaps..."); // no propagation if( e.stopPropagation ) { e.stopPropagation(); } e.cancelBubble = true; return false; // Cancel default handling } in some script tag above. This DOES NOT prevent propagation (neither in FF3.019 nor IE) to the handlers assigned in (2). Any hint appreciated! Thanks in advance! Jannico Context (or: why would I want to do this?): A) Lazy / Late loading of javascript for fast reendering of content. -> you want to inform the user that some functionality is still loading (instead of simply disabling an UI element, which is not really user-friendly -- why is this button disabled???). You also want to use minimal javascript already embedded into the page, because loading a javascript library first with an additional request somewhat defeats the purpose (otherwise you could, of course, use one of the implemented mechanisms that allow event registration with guaranteed execution sequence (which you'll need for B, see below) and B) you also want to "set the beasts free" at a single "atomic" point in time, that is: you don't want to be forced to integrate/change all handlers assigned in (2) to wait for some kind of signal "now you are allowed to work because everything is loaded", you simply want to give this signal to the head of the event processing chain (the handler assigned in (1)) only, which then can simply start propagating the event to whatever may come (otherwise, partial reactions to user input may occur, because some functionality is already attached and other functionality not -- which is potentially worse than doing nothing ;)
0
2,166,086
01/29/2010 23:50:07
117,039
06/04/2009 03:26:15
153
0
how to delete folder in dos console without list all contents deleted?
In windowsxp, I use "del /s /q myfolder" to delete a big folder. It will list all files and folders being deleted. is there a way to avoid that long display list? thanks,
dos
null
null
null
null
01/30/2010 00:09:36
off topic
how to delete folder in dos console without list all contents deleted? === In windowsxp, I use "del /s /q myfolder" to delete a big folder. It will list all files and folders being deleted. is there a way to avoid that long display list? thanks,
2
2,288,870
02/18/2010 13:28:14
267,831
10/08/2009 15:56:25
33
0
Django: display/edit form depending on whether user is authenticated?
I have a form in Django. If the user is authenticated, I want them to see a form that they can edit: if they aren't, then I would like them to see a display-only form. In both cases, I want to show the same information, just that if they are authenticated then I want the form to be editable. Is there an easy way to do this in Django? I can check user.is_authenticated either in the template or in the view: what I don't want to do is duplicate form code in the template. I found [this question][1], but the accepted answer looks insanely complicated. Surely there must be something inbuilt in Django to handle this problem? [1]: http://stackoverflow.com/questions/1906994/using-django-forms-to-display-and-edit
django
django-forms
null
null
null
null
open
Django: display/edit form depending on whether user is authenticated? === I have a form in Django. If the user is authenticated, I want them to see a form that they can edit: if they aren't, then I would like them to see a display-only form. In both cases, I want to show the same information, just that if they are authenticated then I want the form to be editable. Is there an easy way to do this in Django? I can check user.is_authenticated either in the template or in the view: what I don't want to do is duplicate form code in the template. I found [this question][1], but the accepted answer looks insanely complicated. Surely there must be something inbuilt in Django to handle this problem? [1]: http://stackoverflow.com/questions/1906994/using-django-forms-to-display-and-edit
0
9,033,128
01/27/2012 12:15:49
835,333
07/08/2011 12:14:57
21
2
Linq to sql update multiple record from list of records
Hello I am developing one wpf application. I am using linq to sql for all database operations. Now i want to update multiple record simultaneously from list of records by comparing their primary key. i.e. in sql server 2005 we pass one xml to procedure and we open it and update records like SELECT * INTO #TMP FROM openxml(Myxml); UPDATE myPhysicalTable SET myColumnName = #TMP.myColumnName , myColumnName1 = #TMP.myColumnName1 FROM #TMP WHERE myPhysicalTable.pkid = #TMP.pkid now i want to do same here from linq to sql then please suggest proper way.
.net
linq
linq-to-sql
null
null
null
open
Linq to sql update multiple record from list of records === Hello I am developing one wpf application. I am using linq to sql for all database operations. Now i want to update multiple record simultaneously from list of records by comparing their primary key. i.e. in sql server 2005 we pass one xml to procedure and we open it and update records like SELECT * INTO #TMP FROM openxml(Myxml); UPDATE myPhysicalTable SET myColumnName = #TMP.myColumnName , myColumnName1 = #TMP.myColumnName1 FROM #TMP WHERE myPhysicalTable.pkid = #TMP.pkid now i want to do same here from linq to sql then please suggest proper way.
0
7,374,725
09/10/2011 21:09:11
938,600
09/10/2011 21:09:11
1
0
Connection Resets Everytime I Try to Edit Common.js, Wikimedia 1.17
I've recently downloaded and installed the wikimedia (v1.17) on my server space, and I wanted to edit common.js to add some extra functionality. Unfortunately, when I try to save the common.js page after adding the changes, the connection resets. If I only post a small amount of text (roughly 100 lines) the edit holds despite the connection reset. However, if I try to add any more than that, the edit does not hold. I thought that it was a server issue, but common.js is the only page I have problems with. I even tried common.css, and it gave me no issues. I realize that's not the same, but I have tried a wide range of pages, all of them allow me to edit them and save the changes. Common.js does not. I'm sorry if this sounds like the wrong place to ask, but it is a very annoying problem that I've tried to find a solution for for 3 hours now. Just to be sure, I am the administrator of the server space, the wiki, the database, etc., so its not a permissions issue.
javascript
connection
reset
wikimedia
null
09/11/2011 00:11:22
too localized
Connection Resets Everytime I Try to Edit Common.js, Wikimedia 1.17 === I've recently downloaded and installed the wikimedia (v1.17) on my server space, and I wanted to edit common.js to add some extra functionality. Unfortunately, when I try to save the common.js page after adding the changes, the connection resets. If I only post a small amount of text (roughly 100 lines) the edit holds despite the connection reset. However, if I try to add any more than that, the edit does not hold. I thought that it was a server issue, but common.js is the only page I have problems with. I even tried common.css, and it gave me no issues. I realize that's not the same, but I have tried a wide range of pages, all of them allow me to edit them and save the changes. Common.js does not. I'm sorry if this sounds like the wrong place to ask, but it is a very annoying problem that I've tried to find a solution for for 3 hours now. Just to be sure, I am the administrator of the server space, the wiki, the database, etc., so its not a permissions issue.
3
2,342,235
02/26/2010 14:27:15
152,381
08/07/2009 10:07:21
5
0
drupal profile date format
I added some users from an excel via a script to my drupal database. This works fine except for one thing, i use the profile module to store some information, one of them is the date of birth. In my excel the date is stored like '18/02/1995' but in the database a date field has a format like this 'a:3:{s:5:"month";s:1:"2";s:3:"day";s:2:"18";s:4:"year";s:4:"1995";}' Of course the date's all come out the wrong way in drupal. So i have to convert my date's to drupal date's. So i would like to know what kind of format this is and is there a function to convert my date's to this format? (if it is in any way possible to do this in sql or excel that would even be more excellent)
drupal
date
format
null
null
null
open
drupal profile date format === I added some users from an excel via a script to my drupal database. This works fine except for one thing, i use the profile module to store some information, one of them is the date of birth. In my excel the date is stored like '18/02/1995' but in the database a date field has a format like this 'a:3:{s:5:"month";s:1:"2";s:3:"day";s:2:"18";s:4:"year";s:4:"1995";}' Of course the date's all come out the wrong way in drupal. So i have to convert my date's to drupal date's. So i would like to know what kind of format this is and is there a function to convert my date's to this format? (if it is in any way possible to do this in sql or excel that would even be more excellent)
0
5,685,022
04/16/2011 06:57:14
710,929
04/16/2011 06:57:14
1
0
Which PHP framework is better for this project.
I am new to php programming. I have been assigned a project to design a php based website through which video conferencing could be done.. I need help in deciding the framework of php for this specific project..Which of the frameworks of php will be best suitable for this project.. Thanks in advance
php
frameworks
null
null
null
04/16/2011 07:24:51
not constructive
Which PHP framework is better for this project. === I am new to php programming. I have been assigned a project to design a php based website through which video conferencing could be done.. I need help in deciding the framework of php for this specific project..Which of the frameworks of php will be best suitable for this project.. Thanks in advance
4
11,683,189
07/27/2012 07:22:53
422,737
08/17/2010 10:37:37
48
7
Queue Service Stops often but, doesnt reflect in services
i have a issue with Queue service. Nothing would help here so far. Can any1 suggest what might be going wrong. I can see the below mentioned log in the eventvwr. Just to add More information Connection string is pointing to proper DB. Queue Services stops suddenly with out any intimation. When i check the services it shows still running but , i can see the logs in eventvwr. i have to restart the service so as it make it work. System.Data.SqlClient.SqlException: Invalid object name 'ENVIRONMENT'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) at Manh.WMFW.DataAccess.DataHelper.GetDataSet(CommandType cmdType, String cmdText, IDataParameter[] parameters) at Manh.WMFW.DataAccess.DataHelper.GetTable(CommandType cmdType, String cmdText, IDataParameter[] parameters) at Manh.WMW.Configs.General.EnvironmentRetrieval.GetEnvironments(ISession session) at Manh.WMFW.Services.QueueScheduler.ProcRequests() at Manh.WMFW.Services.QueueThread.Run() For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
sql-server
sql-server-2008
null
null
null
07/27/2012 19:09:15
not a real question
Queue Service Stops often but, doesnt reflect in services === i have a issue with Queue service. Nothing would help here so far. Can any1 suggest what might be going wrong. I can see the below mentioned log in the eventvwr. Just to add More information Connection string is pointing to proper DB. Queue Services stops suddenly with out any intimation. When i check the services it shows still running but , i can see the logs in eventvwr. i have to restart the service so as it make it work. System.Data.SqlClient.SqlException: Invalid object name 'ENVIRONMENT'. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) at Manh.WMFW.DataAccess.DataHelper.GetDataSet(CommandType cmdType, String cmdText, IDataParameter[] parameters) at Manh.WMFW.DataAccess.DataHelper.GetTable(CommandType cmdType, String cmdText, IDataParameter[] parameters) at Manh.WMW.Configs.General.EnvironmentRetrieval.GetEnvironments(ISession session) at Manh.WMFW.Services.QueueScheduler.ProcRequests() at Manh.WMFW.Services.QueueThread.Run() For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
1
6,765,594
07/20/2011 16:58:07
441,521
09/07/2010 14:12:49
16
0
.NET FromBase64String length
If I run Convert.FromBase64String("test") I get the error that it's invalid length. I'm trying to convert to a byte array so I can encrypt it, but on shorter strings it's giving the length error. I tried rpadding with '=' but no matter how many I put nothing seems to work. What are my options with this?
c#
.net
null
null
null
07/21/2011 14:50:23
not a real question
.NET FromBase64String length === If I run Convert.FromBase64String("test") I get the error that it's invalid length. I'm trying to convert to a byte array so I can encrypt it, but on shorter strings it's giving the length error. I tried rpadding with '=' but no matter how many I put nothing seems to work. What are my options with this?
1
11,099,890
06/19/2012 11:21:44
1,291,632
03/25/2012 18:17:17
106
5
2 users updating a record at the same time
I would like to know what will happen in the following hypothetical situation. Let's say two teachers give the exact same class to the same students, they both want to update the student's, bob's, grades. Bob's current average is 60%, teacher 1 wants to update his average with a test where he got 70% and teacher 2 wants to update his average with a test where he scored 40%. So in the 1 to a million chance that the 2 teachers hit the update button simultaneously, precisely to the split-second exactly at the same time, what will happen? Will it give an error message, does php or mysql magically queue updates, will only the first score update bob's average and the second user get an error?
php
mysql
null
null
null
06/19/2012 18:13:48
not a real question
2 users updating a record at the same time === I would like to know what will happen in the following hypothetical situation. Let's say two teachers give the exact same class to the same students, they both want to update the student's, bob's, grades. Bob's current average is 60%, teacher 1 wants to update his average with a test where he got 70% and teacher 2 wants to update his average with a test where he scored 40%. So in the 1 to a million chance that the 2 teachers hit the update button simultaneously, precisely to the split-second exactly at the same time, what will happen? Will it give an error message, does php or mysql magically queue updates, will only the first score update bob's average and the second user get an error?
1
10,873,246
06/03/2012 19:24:56
1,433,920
06/03/2012 19:15:24
1
0
The smooth change from one number to another
[click to see image][1] The picture shows how to change the numbers. I would like to make a smooth transition of the numbers 1 and 2, that is, if the first number 1, click on it and the first figure to go down, and the second number comes out on top. I did not know JS and jQuery, and therefore can not be realized. I hope for your help! To all thanks in advance :) [1]: http://i.stack.imgur.com/P7bQm.png
javascript
jquery
image
animate
null
06/03/2012 19:35:56
not a real question
The smooth change from one number to another === [click to see image][1] The picture shows how to change the numbers. I would like to make a smooth transition of the numbers 1 and 2, that is, if the first number 1, click on it and the first figure to go down, and the second number comes out on top. I did not know JS and jQuery, and therefore can not be realized. I hope for your help! To all thanks in advance :) [1]: http://i.stack.imgur.com/P7bQm.png
1
65,664
09/15/2008 18:55:22
2,695
08/24/2008 15:29:59
761
54
Free Project management software
The company I work for has some project management issues about project management. Is not that it doesn't work but that I get the impression it could work much better. I'm looking for a good project management tool(web based). I want the company to perecive as free to improve possibilities for addoption (and I'm well aware of [this][1] other question in stackoverflow) so, any experience of free pm software? I've been playing with [dotproject][2] which I believe is excelent but I'd like to hear some other approaches (if any). I'm specially interested in opinions of people who can tell me why their choice is better than dotproject as that's the project I'm familiar with. [1]: http://stackoverflow.com/questions/60240/project-trackingmanagement-tool [2]: http://dotproject.net/
project-management
free
null
null
null
09/23/2011 12:46:36
off topic
Free Project management software === The company I work for has some project management issues about project management. Is not that it doesn't work but that I get the impression it could work much better. I'm looking for a good project management tool(web based). I want the company to perecive as free to improve possibilities for addoption (and I'm well aware of [this][1] other question in stackoverflow) so, any experience of free pm software? I've been playing with [dotproject][2] which I believe is excelent but I'd like to hear some other approaches (if any). I'm specially interested in opinions of people who can tell me why their choice is better than dotproject as that's the project I'm familiar with. [1]: http://stackoverflow.com/questions/60240/project-trackingmanagement-tool [2]: http://dotproject.net/
2
8,953,424
01/21/2012 13:39:59
1,162,308
01/21/2012 13:30:39
1
0
Get user name c++ linux
How can I get the actual "username" without use the environement (getenv, ...) in a program ? I need a C++ fonction, **not** a C function. Thanks for help!
c++
linux
username
null
null
null
open
Get user name c++ linux === How can I get the actual "username" without use the environement (getenv, ...) in a program ? I need a C++ fonction, **not** a C function. Thanks for help!
0
8,643,619
12/27/2011 10:29:23
140,693
07/18/2009 15:54:15
261
4
jquery 1.6.4 is not compatible with IE8
Looks like jQuery 1.6.4 ain't working fine with ie8. What other version is suggested for ie8 ?
jquery
internet-explorer
internet-explorer-8
jquery-1.6
null
12/27/2011 23:34:13
not a real question
jquery 1.6.4 is not compatible with IE8 === Looks like jQuery 1.6.4 ain't working fine with ie8. What other version is suggested for ie8 ?
1
3,097,746
06/22/2010 22:57:35
373,700
06/04/2009 07:53:13
1
0
Flex 4, packages and classes
can someone help me understand this because it's working in as3 but not so much in flex and I really can't seem to get my head around it. I can get it working by changing my function to static but I don't want to do this. Ok so first I've created a package <code>package testPackage<br /> {<br /> public class TestClass<br /> {<br /> public function TestClass() { } public function traceName(str:String):void { trace(str); } } }</code> and then I'm trying to import that package and create a class from that <code>import testPackage.TestClass; var getClass:TestClass = new TestClass();<br /> getClass.traceName("hello"); </code> But I keep getting the error **Access of undefined property getClass**
flex4
null
null
null
null
null
open
Flex 4, packages and classes === can someone help me understand this because it's working in as3 but not so much in flex and I really can't seem to get my head around it. I can get it working by changing my function to static but I don't want to do this. Ok so first I've created a package <code>package testPackage<br /> {<br /> public class TestClass<br /> {<br /> public function TestClass() { } public function traceName(str:String):void { trace(str); } } }</code> and then I'm trying to import that package and create a class from that <code>import testPackage.TestClass; var getClass:TestClass = new TestClass();<br /> getClass.traceName("hello"); </code> But I keep getting the error **Access of undefined property getClass**
0
944,838
06/03/2009 13:44:40
39,677
11/03/2008 21:48:03
1,784
2
please explain this jQuery statement
What is this doing exactly? this.$blah = jQuery("<div id=blahblah1></div>");
jquery
javascript
null
null
null
null
open
please explain this jQuery statement === What is this doing exactly? this.$blah = jQuery("<div id=blahblah1></div>");
0
11,598,170
07/22/2012 06:22:36
1,182,982
02/01/2012 15:06:20
401
33
How is Blogger.com database design like?
I am working on a project, where I need to create a Blogging Engine. Hence I am studying these two existing good Blogging engines - Wordpress - Google's Blogger For Wordpress everything was nicely documented, hence understanding how Wordpress worked was made relatively easy by using these links http://codex.wordpress.org/Database_Description and http://codex.wordpress.org/Developer_Documentation But for Blogger.com, I tried searching google and SO site for finding a similar documentation of its Database scheme, but failed to find any... Can anyone here at SO, help me understand **what blogger.com database design would be like ?****
database-design
blogger
null
null
null
07/22/2012 15:25:06
off topic
How is Blogger.com database design like? === I am working on a project, where I need to create a Blogging Engine. Hence I am studying these two existing good Blogging engines - Wordpress - Google's Blogger For Wordpress everything was nicely documented, hence understanding how Wordpress worked was made relatively easy by using these links http://codex.wordpress.org/Database_Description and http://codex.wordpress.org/Developer_Documentation But for Blogger.com, I tried searching google and SO site for finding a similar documentation of its Database scheme, but failed to find any... Can anyone here at SO, help me understand **what blogger.com database design would be like ?****
2
5,218,815
03/07/2011 10:57:34
648,016
03/07/2011 10:57:34
1
0
Removing element by class name with HTMLAgilityPack c#
I'm using the html agility pack to read the contents of my html document into a string etc. After this is done, I would like to remove certian elements in that content by their class, however I am stumbling upon a problem. My Html looks like this: <div id="wrapper"> <div class="maincolumn" > <div class="breadCrumbContainer"> <div class="breadCrumbs"> </div> </div> <div class="seo_list"> <div class="seo_head">Header</div> </div> Content goes here... </div> Now, I have used an xpath selector to get all the content within the <div id="wrapper"> and used the InnerHtml property like so: node = doc.DocumentNode.SelectSingleNode("//div[@id='wrapper']"); if (node != null) { pageContent = node.InnerHtml; } From this point, I would like to remove the div with the class of "breadCrumbContainer", however when using the code below, I get the error: "Node "<div class="breadCrumbContainer"></div>" was not found in the collection" node = doc.DocumentNode.SelectSingleNode("//div[@id='wrapper']"); node = node.RemoveChild(node.SelectSingleNode("//div[@class='breadCrumbContainer']")); if (node != null) { pageContent = node.InnerHtml; } Can anyone shed some light on this please? I'm quite new to Xpath, and really new to the HtmlAgility library. Thanks, Dave
c#
.net
xpath
selector
html-agility-pack
null
open
Removing element by class name with HTMLAgilityPack c# === I'm using the html agility pack to read the contents of my html document into a string etc. After this is done, I would like to remove certian elements in that content by their class, however I am stumbling upon a problem. My Html looks like this: <div id="wrapper"> <div class="maincolumn" > <div class="breadCrumbContainer"> <div class="breadCrumbs"> </div> </div> <div class="seo_list"> <div class="seo_head">Header</div> </div> Content goes here... </div> Now, I have used an xpath selector to get all the content within the <div id="wrapper"> and used the InnerHtml property like so: node = doc.DocumentNode.SelectSingleNode("//div[@id='wrapper']"); if (node != null) { pageContent = node.InnerHtml; } From this point, I would like to remove the div with the class of "breadCrumbContainer", however when using the code below, I get the error: "Node "<div class="breadCrumbContainer"></div>" was not found in the collection" node = doc.DocumentNode.SelectSingleNode("//div[@id='wrapper']"); node = node.RemoveChild(node.SelectSingleNode("//div[@class='breadCrumbContainer']")); if (node != null) { pageContent = node.InnerHtml; } Can anyone shed some light on this please? I'm quite new to Xpath, and really new to the HtmlAgility library. Thanks, Dave
0
9,339,910
02/18/2012 08:53:43
1,095,853
12/13/2011 13:36:35
1
0
Samsung laptop install windows 7 keep rebooting
I tried to install windows 7 on a Samsung Laptop 300v5z brand new. I boot from cd, install windows. It asks me a reboot, i reboot, starting windows, making same other configuration at installing, and in the end the Second reboot that should finished installing windows. At this second reboot surprise: it doesn;t find anything and keep rebooting itself. Where do I do wrong? This laptop is the second one that i received from the shop, and with the first one the same things happened. Thank you, TJ
windows
laptop
null
null
null
02/19/2012 14:20:43
off topic
Samsung laptop install windows 7 keep rebooting === I tried to install windows 7 on a Samsung Laptop 300v5z brand new. I boot from cd, install windows. It asks me a reboot, i reboot, starting windows, making same other configuration at installing, and in the end the Second reboot that should finished installing windows. At this second reboot surprise: it doesn;t find anything and keep rebooting itself. Where do I do wrong? This laptop is the second one that i received from the shop, and with the first one the same things happened. Thank you, TJ
2
8,898,153
01/17/2012 16:27:48
764,624
05/22/2011 08:29:28
8
0
Preserve apostrophes sent in JSON
I am sending a JSONArray to a server where my script decodes it and uses the data within to update a MYSql database. The problem at the moment is that everything works as it should do until the script encounters a field containing an apostrophe which I understand is used by php as an escape character. How do I avoid this while still preserving the apostrophe? Do I add something at the Android end and then remove it server side or can I ignore it at the server side while still preserving it? Any help is appreciated.
php
android
json
null
null
01/18/2012 06:06:45
not a real question
Preserve apostrophes sent in JSON === I am sending a JSONArray to a server where my script decodes it and uses the data within to update a MYSql database. The problem at the moment is that everything works as it should do until the script encounters a field containing an apostrophe which I understand is used by php as an escape character. How do I avoid this while still preserving the apostrophe? Do I add something at the Android end and then remove it server side or can I ignore it at the server side while still preserving it? Any help is appreciated.
1
8,096,354
11/11/2011 15:41:24
603,127
02/04/2011 12:26:02
281
2
SQL Server Express R2 database size limitation?
As you know, SQL Server 2008 R2 Express supports 10GB. So What happens if I try to attach a file which's size is more than 10GB? choices, A- warn me before trying to attach and stop attaching. B- attach 10gb of file and then warn me about "can not attach anymore".
sql-server
sql-server-2008
sql-server-2008-r2
limitations
attach
11/12/2011 15:55:11
not a real question
SQL Server Express R2 database size limitation? === As you know, SQL Server 2008 R2 Express supports 10GB. So What happens if I try to attach a file which's size is more than 10GB? choices, A- warn me before trying to attach and stop attaching. B- attach 10gb of file and then warn me about "can not attach anymore".
1
3,663,370
09/07/2010 23:03:29
441,905
09/07/2010 23:03:29
1
0
jQuery - getting attribute from HTML Text - IE not working
I'm using and $.ajax method to get an html text. I would like to parse this html, getting the "src" from an "img" tag. I've done this way: $.ajax({ type: "GET", url: "image1.html", success: function(msg){ var htmlCode = $(msg).html(); var title = $("#immagine", htmlCode).attr("src"); alert( title); } }); I can get the right result from Firefox and Chrome. They alert the correct "src" value. But IE return an "undefined" alert. Can someone help me? Thanks
jquery
ajax
image
preload
attr
null
open
jQuery - getting attribute from HTML Text - IE not working === I'm using and $.ajax method to get an html text. I would like to parse this html, getting the "src" from an "img" tag. I've done this way: $.ajax({ type: "GET", url: "image1.html", success: function(msg){ var htmlCode = $(msg).html(); var title = $("#immagine", htmlCode).attr("src"); alert( title); } }); I can get the right result from Firefox and Chrome. They alert the correct "src" value. But IE return an "undefined" alert. Can someone help me? Thanks
0
11,735,082
07/31/2012 07:20:04
1,181,998
02/01/2012 05:54:59
43
5
why firefox browser is running inside Tomcat?
when i want to run my xhtml file, firefox browser is running inside Tomcat. what shall i do? please help me. before this page, it worked well. but now firefox browser running inside the eclipse. i don't know what i should do. ![enter image description here][1] personel.xhtml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.prime.com.tr/ui" > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>اطلاعات پرسنلی</title> </head> <body> <h1>اضافه کردن پرسنل جدید</h1> <h:form> <h:panelGrid columns="6" dir="rtl"> شماره پرسنلی : <h:inputText id="name" value="#{personelMB.personel_id}" size="20" required="true" label="id" > </h:inputText> نام : <h:inputText id="name" value="#{personelMB.pname}" size="20" required="true" label="Name" > </h:inputText> نام خانوادگی: <h:inputText id="family" value="#{personelMB.pfamily}" size="20" required="true" label="family" > </h:inputText> آدرس : <h:inputTextarea id="address" value="#{personelMB.paddress}" cols="30" rows="10" required="true" label="Address" > </h:inputTextarea> تلفن: <h:inputText id="tel" value="#{personelMB.pphone}" size="20" required="true" label="tel" > </h:inputText> </h:panelGrid> <h:commandButton value="درج اطلاعات" action="#{personelMB.addPersonel()}" /> </h:form> </body> </html> [1]: http://i.stack.imgur.com/WWJOh.jpg
jsf
java-ee
tomcat
jsf-2.0
tomcat7
07/31/2012 13:15:58
too localized
why firefox browser is running inside Tomcat? === when i want to run my xhtml file, firefox browser is running inside Tomcat. what shall i do? please help me. before this page, it worked well. but now firefox browser running inside the eclipse. i don't know what i should do. ![enter image description here][1] personel.xhtml <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.prime.com.tr/ui" > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>اطلاعات پرسنلی</title> </head> <body> <h1>اضافه کردن پرسنل جدید</h1> <h:form> <h:panelGrid columns="6" dir="rtl"> شماره پرسنلی : <h:inputText id="name" value="#{personelMB.personel_id}" size="20" required="true" label="id" > </h:inputText> نام : <h:inputText id="name" value="#{personelMB.pname}" size="20" required="true" label="Name" > </h:inputText> نام خانوادگی: <h:inputText id="family" value="#{personelMB.pfamily}" size="20" required="true" label="family" > </h:inputText> آدرس : <h:inputTextarea id="address" value="#{personelMB.paddress}" cols="30" rows="10" required="true" label="Address" > </h:inputTextarea> تلفن: <h:inputText id="tel" value="#{personelMB.pphone}" size="20" required="true" label="tel" > </h:inputText> </h:panelGrid> <h:commandButton value="درج اطلاعات" action="#{personelMB.addPersonel()}" /> </h:form> </body> </html> [1]: http://i.stack.imgur.com/WWJOh.jpg
3
6,307,036
06/10/2011 13:30:09
321,589
04/20/2010 18:28:11
216
14
Every other Visual Studio "run test" attempt results in "Unable to start program QTAgent32.exe"
Whenever I run a test, and then try to run a test again, I get the following error: >Failed to queue test run. >Unable to start program 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\QTAgent32.exe'. If I run the test again after that, it proceeds as normal. In other words, I get this error every other time I try to run a test. It doesn't matter whether the previous test succeeded or failed, whether it ran to completion or was interrupted, or whether I run one test or all of them across the whole solution. What could be causing this? What can I try to fix it?
.net
visual-studio
visual-studio-2010
.net-4.0
null
null
open
Every other Visual Studio "run test" attempt results in "Unable to start program QTAgent32.exe" === Whenever I run a test, and then try to run a test again, I get the following error: >Failed to queue test run. >Unable to start program 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\QTAgent32.exe'. If I run the test again after that, it proceeds as normal. In other words, I get this error every other time I try to run a test. It doesn't matter whether the previous test succeeded or failed, whether it ran to completion or was interrupted, or whether I run one test or all of them across the whole solution. What could be causing this? What can I try to fix it?
0
6,962,489
08/05/2011 20:51:16
629,681
02/23/2011 06:47:36
39
6
Lost JSF beginner: Linux, Geronimo and tag library
I use Geronimo with J2EE 5 and Tomcat 6 and I'm trying to create one simple page using JSF. I put the tag library files `myfaces_core.tld` and `myfaces_html.tld` in `WEB-INF` and it works, but just on Windows. Under Linux I got `IOException` with *an unknown reason* when I was deploying the WAR. To remove the two tag library files made the deploy possible. But then I got an error when I was opening the page in browser. It was missing the file `WEB-INF/myfaces_html.tld`, which is specified in the header of JSP file. In examples for MyFaces there is used not MyFaces TLD, but common Sun Java TLD. I have overwritten the URI `WEB-INF/myfaces_html.tld` to `http://java.sun.com/jsf/html` ant now I'm getting the error *The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application*. I'm lost now. Must I or must I not put the tag library description files into my WAR to use JSF components? These files are already contained in MyFaces JARs in Geronimo Container, aren't? The container must have the same behavior regardless to platform or it needn't? What shall I do to create my simple application really platform independent?
linux
jsf
tomcat
geronimo
null
null
open
Lost JSF beginner: Linux, Geronimo and tag library === I use Geronimo with J2EE 5 and Tomcat 6 and I'm trying to create one simple page using JSF. I put the tag library files `myfaces_core.tld` and `myfaces_html.tld` in `WEB-INF` and it works, but just on Windows. Under Linux I got `IOException` with *an unknown reason* when I was deploying the WAR. To remove the two tag library files made the deploy possible. But then I got an error when I was opening the page in browser. It was missing the file `WEB-INF/myfaces_html.tld`, which is specified in the header of JSP file. In examples for MyFaces there is used not MyFaces TLD, but common Sun Java TLD. I have overwritten the URI `WEB-INF/myfaces_html.tld` to `http://java.sun.com/jsf/html` ant now I'm getting the error *The absolute uri: http://java.sun.com/jsf/html cannot be resolved in either web.xml or the jar files deployed with this application*. I'm lost now. Must I or must I not put the tag library description files into my WAR to use JSF components? These files are already contained in MyFaces JARs in Geronimo Container, aren't? The container must have the same behavior regardless to platform or it needn't? What shall I do to create my simple application really platform independent?
0
10,529,739
05/10/2012 07:59:13
598,511
02/01/2011 14:16:14
1,742
81
Ajax error handling, ie7
Im opening XML-files using jquery ajax. I would like to debug an error in IE7, but currently all i get in the alert is: "Error: error, [object Error]" My error callback: error: function (a, b, c) { alert('Error: ' + b + ", " + c); } My guess would be that `b` is an object that contains some info, but i cant inspect object in IE7, since it has no console. Anyone know what the object properties are? I would like to know what went wrong in the XML import :) Thanks
jquery
ajax
internet-explorer-7
null
null
null
open
Ajax error handling, ie7 === Im opening XML-files using jquery ajax. I would like to debug an error in IE7, but currently all i get in the alert is: "Error: error, [object Error]" My error callback: error: function (a, b, c) { alert('Error: ' + b + ", " + c); } My guess would be that `b` is an object that contains some info, but i cant inspect object in IE7, since it has no console. Anyone know what the object properties are? I would like to know what went wrong in the XML import :) Thanks
0
9,247,449
02/12/2012 08:28:41
496,700
11/04/2010 02:21:42
874
9
Programming bottom up (by Paul Graham) with Lisp and design in general
Note: Text written in **bold** means my question. Sorry for the long post, but I want things to be clear with a concrete example, rather than discussion on vague ideas. As I understand, top-down design is by refining the abstract high level concept into smaller concrete and comprehensible parts, until the smallest building block is defined. On the other hand, bottom up defines low level parts, then gradually build up higher level blocks until the whole system is formed. In practice, it is said best to combine the two methods: starts with high level specification to fully specify the domain knowledge, its relationship and constraints. Once the problem is well understood, smallest building blocks are created to build up the system. The process of: - Creating requirement spec - Create a design spec (with diagrams) - Implement - Deliver - Repeat (in iterative development, rather than doing a whole chunk in each phase, we do a little bit each repeatedly, and got daily meeting to adapt to customer's dynamic requirement) look perfectly normal to me (with specs as plans). Let's take an example: Suppose I'm going to write a Web Server. Since probably all of us have basic understanding of the domain knowledge (which is about server and network), I won't write requirement spec. For design spec, these components are needed to define (from the perspective of C++): - Server: A component to unite related components. - Acceptor: To accept connection and identify what type of connection is (HTTP, FTP...) - Connection Manager: To manage connections, include storing a collection of connections, and process connection according to each of its states (such as alive/not responding/time out). - Connection: Represent each connection, and takes care of basic actions like send/receive data. - Session Manager: Manage the session data of each connection. It associates state data with a reference to each connection. - Module Manager: Manage how the server is adapted to user created module in order to exten its functionality. After the overview of each component, I further refine each into lower level details: - Acceptor: An abstract class to represent a generic acceptor. - HttpAcceptor: A class to accept and validate if a connection is Http, which connects through port 80. - FtpAcceeptor: Same as HttpAcceptor, except for Ftp and port 22 - Connection Manager: A class to keep a collection of active connections and perform said functionalities - Connection: A generic connection class - HttpConnection: Process the request and response of Http messages. - FtpConnection: Process the request and response of Ftp messages. - Session Manager: Use something like `std::map` to associate session data and a reference of a connection. - SessionData: A class contains the `std::map` of `<Key, Value>` pairs for keeping state data of a website. The `<Key,Value>` pair is implemented using `template<class Key, class Value>`. This is an oversimplification design I thought on top of my head for this example based on basic understanding. Of course, it will have flaws, but that's why we got iterative development: instead of spending time on one phase, says, requirement analysis to study every possible thing in domain knowledge which is subjected to changes (possibly daily), we do a little bit of analysis, a little bit of design and then implements it, in a day. Another way is that each iteration is a mini-waterfall fashion, where analysis is done in a few days (or a week). The same applies for design. The rest of time is spent for implementation. Then we deliver a build to our clients. If requirement is unclear, we keep study the domain model until we have a spec which is implementable. I can't imagine jump right into programming without, even basic, up front planning. **What's wrong with top-down approach in combination with iterative development?** In his essay about bottom-up programming, **did Paul Graham encourage build from bottom up completely? Or just program it from bottom up, but not the requirement analysis/desing phase?** Because in one of his paragraph, he said: > Experienced Lisp programmers divide up their programs differently. As > well as top-down design, they follow a principle which could be called > bottom-up design-- changing the language to suit the problem. As far as I get, what he meant is that Lisper still performs top-down design, but program bottom up, is that true? Another point he said: > It's worth emphasizing that bottom-up design doesn't mean just writing > the same program in a different order. When you work bottom-up, you > usually end up with a different program. Instead of a single, > monolithic program, you will get a larger language with more abstract > operators, and a smaller program written in it. Instead of a lintel, > you'll get an arch. **This means, during the period of writing a program in Lisp, you end up with a generic tool which can be used to write similar programs of the original one, doesn't it?** I'm going to learn Lisp. Take my server example, how do you design such reusable component in Lisp?
c++
design
null
null
null
02/12/2012 08:55:29
off topic
Programming bottom up (by Paul Graham) with Lisp and design in general === Note: Text written in **bold** means my question. Sorry for the long post, but I want things to be clear with a concrete example, rather than discussion on vague ideas. As I understand, top-down design is by refining the abstract high level concept into smaller concrete and comprehensible parts, until the smallest building block is defined. On the other hand, bottom up defines low level parts, then gradually build up higher level blocks until the whole system is formed. In practice, it is said best to combine the two methods: starts with high level specification to fully specify the domain knowledge, its relationship and constraints. Once the problem is well understood, smallest building blocks are created to build up the system. The process of: - Creating requirement spec - Create a design spec (with diagrams) - Implement - Deliver - Repeat (in iterative development, rather than doing a whole chunk in each phase, we do a little bit each repeatedly, and got daily meeting to adapt to customer's dynamic requirement) look perfectly normal to me (with specs as plans). Let's take an example: Suppose I'm going to write a Web Server. Since probably all of us have basic understanding of the domain knowledge (which is about server and network), I won't write requirement spec. For design spec, these components are needed to define (from the perspective of C++): - Server: A component to unite related components. - Acceptor: To accept connection and identify what type of connection is (HTTP, FTP...) - Connection Manager: To manage connections, include storing a collection of connections, and process connection according to each of its states (such as alive/not responding/time out). - Connection: Represent each connection, and takes care of basic actions like send/receive data. - Session Manager: Manage the session data of each connection. It associates state data with a reference to each connection. - Module Manager: Manage how the server is adapted to user created module in order to exten its functionality. After the overview of each component, I further refine each into lower level details: - Acceptor: An abstract class to represent a generic acceptor. - HttpAcceptor: A class to accept and validate if a connection is Http, which connects through port 80. - FtpAcceeptor: Same as HttpAcceptor, except for Ftp and port 22 - Connection Manager: A class to keep a collection of active connections and perform said functionalities - Connection: A generic connection class - HttpConnection: Process the request and response of Http messages. - FtpConnection: Process the request and response of Ftp messages. - Session Manager: Use something like `std::map` to associate session data and a reference of a connection. - SessionData: A class contains the `std::map` of `<Key, Value>` pairs for keeping state data of a website. The `<Key,Value>` pair is implemented using `template<class Key, class Value>`. This is an oversimplification design I thought on top of my head for this example based on basic understanding. Of course, it will have flaws, but that's why we got iterative development: instead of spending time on one phase, says, requirement analysis to study every possible thing in domain knowledge which is subjected to changes (possibly daily), we do a little bit of analysis, a little bit of design and then implements it, in a day. Another way is that each iteration is a mini-waterfall fashion, where analysis is done in a few days (or a week). The same applies for design. The rest of time is spent for implementation. Then we deliver a build to our clients. If requirement is unclear, we keep study the domain model until we have a spec which is implementable. I can't imagine jump right into programming without, even basic, up front planning. **What's wrong with top-down approach in combination with iterative development?** In his essay about bottom-up programming, **did Paul Graham encourage build from bottom up completely? Or just program it from bottom up, but not the requirement analysis/desing phase?** Because in one of his paragraph, he said: > Experienced Lisp programmers divide up their programs differently. As > well as top-down design, they follow a principle which could be called > bottom-up design-- changing the language to suit the problem. As far as I get, what he meant is that Lisper still performs top-down design, but program bottom up, is that true? Another point he said: > It's worth emphasizing that bottom-up design doesn't mean just writing > the same program in a different order. When you work bottom-up, you > usually end up with a different program. Instead of a single, > monolithic program, you will get a larger language with more abstract > operators, and a smaller program written in it. Instead of a lintel, > you'll get an arch. **This means, during the period of writing a program in Lisp, you end up with a generic tool which can be used to write similar programs of the original one, doesn't it?** I'm going to learn Lisp. Take my server example, how do you design such reusable component in Lisp?
2
7,775,835
10/15/2011 04:55:36
980,393
10/05/2011 12:58:51
3
0
Find out value of child custom control from parent custom control at client side
* How to find out the value of child custom control from parent custom control on client side.* ------------------------------------------------------------------------
asp.net
null
null
null
null
10/15/2011 16:04:51
not a real question
Find out value of child custom control from parent custom control at client side === * How to find out the value of child custom control from parent custom control on client side.* ------------------------------------------------------------------------
1
8,636,766
12/26/2011 14:50:05
1,116,381
12/26/2011 13:38:10
1
0
Install jdk in linux
I installed java from a binary package(bin format) now i wanna know how to set environment variable in linux(ubuntu) nothing happend when i type se path=<location of bin folder> 2.then how to run a .jar app
java
linux
ubuntu
install
jdk
12/26/2011 15:08:54
off topic
Install jdk in linux === I installed java from a binary package(bin format) now i wanna know how to set environment variable in linux(ubuntu) nothing happend when i type se path=<location of bin folder> 2.then how to run a .jar app
2
3,983,757
10/21/2010 01:59:17
482,280
10/20/2010 21:04:05
1
0
Is it possible to store a FILE * in a user defined struct?
first post here so be nice ;) Is it possible to store a FILE * in a struct, i see no reason why not but the following code wont compile, i can't seem to store a reference to file pointer either. typedef struct fileType { FILE * file; char fileName[MAX_FILENAME_LEN]; unsigned linesRead; unsigned nextBufLine; /* next line to be inserted/removed in the buffer */ pthread_mutex_t * mtxFile; /* mutex controlling access to this file */ }FileType; My compiler doesn't seem to recognise the type 'FILE' throwing this error at that line, and of course i have included stdio.h in the header `error: expected specifier-qualifier-list before '(' token` Basically I'm writing a program which spawns a a series of child process, taking turns to read lines from a file and inserting them into a circular buffer where they are read by a another set of child processes, encrypted and written to a new file (line by line). It is a requirement that the parent open and closes the file. I'm permitted to use globals for this but want to avoid it if possible, thanks for any replies. =]
c
file
null
null
null
null
open
Is it possible to store a FILE * in a user defined struct? === first post here so be nice ;) Is it possible to store a FILE * in a struct, i see no reason why not but the following code wont compile, i can't seem to store a reference to file pointer either. typedef struct fileType { FILE * file; char fileName[MAX_FILENAME_LEN]; unsigned linesRead; unsigned nextBufLine; /* next line to be inserted/removed in the buffer */ pthread_mutex_t * mtxFile; /* mutex controlling access to this file */ }FileType; My compiler doesn't seem to recognise the type 'FILE' throwing this error at that line, and of course i have included stdio.h in the header `error: expected specifier-qualifier-list before '(' token` Basically I'm writing a program which spawns a a series of child process, taking turns to read lines from a file and inserting them into a circular buffer where they are read by a another set of child processes, encrypted and written to a new file (line by line). It is a requirement that the parent open and closes the file. I'm permitted to use globals for this but want to avoid it if possible, thanks for any replies. =]
0
5,007,863
02/15/2011 18:30:22
509,670
11/16/2010 15:17:24
585
14
How to Setup My Own Directory Index Rules in htaccess to Allow/Block Special Folder Access?
Imagine a I have folders inside it are a bunch of photos from my latest nude colony camp visit, and the extravagant shots in it and all, that I dont want just everyone to have access to when typing the main folder e.g. `www.website.org/photos/` While those who have direct link of the entire file, can have access: `www.website.org/photos/my_first_nude_colony_camp_visit_00281.jpg` Now, is there any possibility, and if yes, whats the proper correct apache language, to have the following rules for my website using htaccess or other magical powers: > RULE1: By default, block access to the ftp-lookalike-free-file listings to any and all folder contents. > RULE2: When however a (hidden?) file named pass.port is present in that folder, then do allow ftp-lookalike free listing of all the contents. That way I can make exception to which folders I want to let BE visible, and which better NOT. Thank you for your clues and suggestions!
apache
.htaccess
indexing
special-folders
directoryindex
null
open
How to Setup My Own Directory Index Rules in htaccess to Allow/Block Special Folder Access? === Imagine a I have folders inside it are a bunch of photos from my latest nude colony camp visit, and the extravagant shots in it and all, that I dont want just everyone to have access to when typing the main folder e.g. `www.website.org/photos/` While those who have direct link of the entire file, can have access: `www.website.org/photos/my_first_nude_colony_camp_visit_00281.jpg` Now, is there any possibility, and if yes, whats the proper correct apache language, to have the following rules for my website using htaccess or other magical powers: > RULE1: By default, block access to the ftp-lookalike-free-file listings to any and all folder contents. > RULE2: When however a (hidden?) file named pass.port is present in that folder, then do allow ftp-lookalike free listing of all the contents. That way I can make exception to which folders I want to let BE visible, and which better NOT. Thank you for your clues and suggestions!
0
9,355,460
02/20/2012 02:25:01
1,219,892
02/19/2012 23:12:11
58
11
What are the best algorithms for Word-Sense-Disambiguation
What are the best algorithms for Word-Sense-Disambiguation I read a lot of posts, and each one proves in a research document that a specific algorithm is the best, this is very confusing. I just come up with 2 realizations 1-Lesk Algorithm is deprecated, 2-Adapted Lesk is good but not the best Please if anybody based on his (Experience) know any other good algorithm that give accuracy up to say 70% or more please mention it . and if there's a link to any Pseudo Code for the algorithm it'll be great, I'll try to implement it in Python or Java .
python
nlp
nltk
text-processing
null
02/21/2012 02:02:38
off topic
What are the best algorithms for Word-Sense-Disambiguation === What are the best algorithms for Word-Sense-Disambiguation I read a lot of posts, and each one proves in a research document that a specific algorithm is the best, this is very confusing. I just come up with 2 realizations 1-Lesk Algorithm is deprecated, 2-Adapted Lesk is good but not the best Please if anybody based on his (Experience) know any other good algorithm that give accuracy up to say 70% or more please mention it . and if there's a link to any Pseudo Code for the algorithm it'll be great, I'll try to implement it in Python or Java .
2
11,662,449
07/26/2012 04:42:43
1,457,923
06/15/2012 06:12:53
51
0
What is meant by library, package, module and scripts in python
i had read the documentation of python and many sources about the meaning of `package, library, module and script` , i got some and i know thats a basic question but its confusing and very important to know the difference between them. I know this is basic question but please don't down vote it, because sure this will be useful for others. Can anyone explain very easily without confusion between them.
python
null
null
null
null
07/26/2012 07:43:27
not a real question
What is meant by library, package, module and scripts in python === i had read the documentation of python and many sources about the meaning of `package, library, module and script` , i got some and i know thats a basic question but its confusing and very important to know the difference between them. I know this is basic question but please don't down vote it, because sure this will be useful for others. Can anyone explain very easily without confusion between them.
1
2,740,386
04/29/2010 19:56:54
304,532
03/29/2010 19:40:41
30
0
How to make Java and C programs communicate together
I have written a command line interface program in the C language. This kind of programs (as you know) waits for user commands typed in the terminal and reacts on depend of them. In fact, the program implements a callback function which parses the command and invokes the appropriate function in order to respond to the user. Now, I have to make a Java GUI (Graphical user interface) for the desktop (Ubuntu) version of this program and then port the same program to the Android Platform (of course the GUI will respect Android framework), so I'm looking for the best way to do it. I have heard about JNI and JNA and I don't known which one will be the best for me. By the way what are the main differences between JNI and JNA. And what about the others IPC techniques and middle-ware (like DBUS). Any suggestion will be appreciated. Thanks in advance.
c
java
android
null
null
05/15/2012 11:32:45
not a real question
How to make Java and C programs communicate together === I have written a command line interface program in the C language. This kind of programs (as you know) waits for user commands typed in the terminal and reacts on depend of them. In fact, the program implements a callback function which parses the command and invokes the appropriate function in order to respond to the user. Now, I have to make a Java GUI (Graphical user interface) for the desktop (Ubuntu) version of this program and then port the same program to the Android Platform (of course the GUI will respect Android framework), so I'm looking for the best way to do it. I have heard about JNI and JNA and I don't known which one will be the best for me. By the way what are the main differences between JNI and JNA. And what about the others IPC techniques and middle-ware (like DBUS). Any suggestion will be appreciated. Thanks in advance.
1
8,373,709
12/04/2011 06:20:44
1,001,938
10/18/2011 20:16:07
30
0
What is correct web-app file structure? And why?
What is a typical file structure for a web-app? You've got your brouchure websites: [+] root [+] images [+] css [+] javascripts [+] pages - index.html - biographies.html - contacts.html <br/><br/><br/> And you've got your web-apps (**what goes here?** This is my understanding): [ +] root [+] build [+] classes - Database.php - User.php [+] includes - config.php [+] public [+] css [+] js [+] img [+] pages - index.php - eventpage.php - createabear.php
php
file
web-applications
filesystems
directory-structure
12/04/2011 13:15:36
not constructive
What is correct web-app file structure? And why? === What is a typical file structure for a web-app? You've got your brouchure websites: [+] root [+] images [+] css [+] javascripts [+] pages - index.html - biographies.html - contacts.html <br/><br/><br/> And you've got your web-apps (**what goes here?** This is my understanding): [ +] root [+] build [+] classes - Database.php - User.php [+] includes - config.php [+] public [+] css [+] js [+] img [+] pages - index.php - eventpage.php - createabear.php
4
2,408,625
03/09/2010 11:30:15
119,732
06/09/2009 10:52:31
526
20
Creating installers in .net
> I want to create a installer which > would just dump few files and folders > at a location specified by user. But > the problem is these files are > required to be picked up from a fixed > source folder and then the installer > is build. Also, these files may change > any time and then again a new version > of the installer is required to be > created. I want to do this in .Net using Setup and Deployment project. I'm not sure how to do this. Do I need to create another class library project with a Setup Poject? Does anyone has any idea?
c#
.net
installer
windows-installer
msi
null
open
Creating installers in .net === > I want to create a installer which > would just dump few files and folders > at a location specified by user. But > the problem is these files are > required to be picked up from a fixed > source folder and then the installer > is build. Also, these files may change > any time and then again a new version > of the installer is required to be > created. I want to do this in .Net using Setup and Deployment project. I'm not sure how to do this. Do I need to create another class library project with a Setup Poject? Does anyone has any idea?
0
8,338,426
12/01/2011 08:32:45
114,459
05/29/2009 17:52:31
64
19
poker-network how to configure rake in xml files
I've managed to install and run poker-network on a ubuntu. Now I would like to refine a little bit the configurations. For example, I wanted to change the rake
python
poker
null
null
null
12/02/2011 05:10:17
not a real question
poker-network how to configure rake in xml files === I've managed to install and run poker-network on a ubuntu. Now I would like to refine a little bit the configurations. For example, I wanted to change the rake
1
8,787,228
01/09/2012 10:48:24
371,991
04/14/2010 10:09:51
492
0
How to save images in global path in asp.net?
As of now i am creating one floder in my solution and saving the images in that folder.but i need to save the images in external global path system.i.e i am trying to save the images in "http://ipaddress/images/" path . Please tell me .
asp.net
null
null
null
null
01/09/2012 12:51:47
not a real question
How to save images in global path in asp.net? === As of now i am creating one floder in my solution and saving the images in that folder.but i need to save the images in external global path system.i.e i am trying to save the images in "http://ipaddress/images/" path . Please tell me .
1
11,405,494
07/10/2012 01:35:32
1,513,444
07/10/2012 01:28:25
1
0
Login and Logout in php
i wanted to know about how to do the coding in core php. What i really wanted to do is to show login option in every page and when the user login then he will be redirected to the same page and after that the login button won`t be display anymore and it is being removed by logout option after that and will be display in everypage till he logout from the website. Thanks
php
null
null
null
null
07/10/2012 01:38:54
not a real question
Login and Logout in php === i wanted to know about how to do the coding in core php. What i really wanted to do is to show login option in every page and when the user login then he will be redirected to the same page and after that the login button won`t be display anymore and it is being removed by logout option after that and will be display in everypage till he logout from the website. Thanks
1
9,975,146
04/02/2012 10:57:19
1,298,215
03/28/2012 12:55:09
6
0
How to implement Autocomplete Textbox using sql server 2008 in asp.net MVC3
I need implement Auto complete text box,values getting from database (Server) using Asp.Net MVC3, using javascript not with jQuery. So please try help me with source. I am using ASP.Net MVC3.
asp.net-mvc-3
null
null
null
null
04/08/2012 20:42:56
not a real question
How to implement Autocomplete Textbox using sql server 2008 in asp.net MVC3 === I need implement Auto complete text box,values getting from database (Server) using Asp.Net MVC3, using javascript not with jQuery. So please try help me with source. I am using ASP.Net MVC3.
1
9,954,594
03/31/2012 09:14:17
193,400
10/20/2009 21:07:00
768
23
64bit instance vs 32bit instance for Apache Web Server on Centos - httpd + PHP5
any recommendation whether to use 64bit instance vs 32bit instance for Apache Web Server on Centos - httpd mainly working with PHP5 ? cheers
apache
php5
centos
null
null
04/01/2012 07:48:46
off topic
64bit instance vs 32bit instance for Apache Web Server on Centos - httpd + PHP5 === any recommendation whether to use 64bit instance vs 32bit instance for Apache Web Server on Centos - httpd mainly working with PHP5 ? cheers
2
6,274,432
06/08/2011 05:07:40
655,443
03/11/2011 13:42:45
46
0
Android Endless List
from [this][1] tutor If I want to load more list after I press "Load more" ** must press text only , not auto load How to code it ? [1]: http://p-xr.com/android-tutorial-dynamicaly-load-more-items-to-the-listview-never-ending-list/
android
listview
null
null
null
06/08/2011 10:12:15
not a real question
Android Endless List === from [this][1] tutor If I want to load more list after I press "Load more" ** must press text only , not auto load How to code it ? [1]: http://p-xr.com/android-tutorial-dynamicaly-load-more-items-to-the-listview-never-ending-list/
1
8,030,873
11/06/2011 22:24:19
958,168
09/22/2011 02:21:07
8
0
Simple Bash-programs
1. To find user in system (user as parametr) 2. Output of files' names, which start from a symbol. Directory and first symbol as parametrs. 3. Script which backups directory. The name of backup should be current date. Also, would be grateful if you tell me what to read about BASH. Cheers, Nick
homework
bash
books
null
null
11/07/2011 10:18:56
not constructive
Simple Bash-programs === 1. To find user in system (user as parametr) 2. Output of files' names, which start from a symbol. Directory and first symbol as parametrs. 3. Script which backups directory. The name of backup should be current date. Also, would be grateful if you tell me what to read about BASH. Cheers, Nick
4
5,825,165
04/28/2011 21:19:02
529,995
12/03/2010 23:08:22
423
19
JavaScript: Alert.Show(message) From ASP.NET Code-behind
I am reading this [JavaScript: Alert.Show(message) From ASP.NET Code-behind][1] [1]: http://archive.devnewz.com/devnewz-3-20061129JavaScriptAlertShowmessagefromASPNETCodebehind.html I am trying to implement the same. So I created a static class like this: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Data.SqlClient; using System.Web; using System.Text; using System.Web.UI; namespace Registration.DataAccess { public static class Repository { /// <summary> /// Shows a client-side JavaScript alert in the browser. /// </summary> /// <param name="message">The message to appear in the alert.</param> public static void Show(string message) { // Cleans the message to allow single quotation marks string cleanMessage = message.Replace("'", "\'"); string script = "<script type="text/javascript">alert('" + cleanMessage + "');</script>"; // Gets the executing web page Page page = HttpContext.Current.CurrentHandler as Page; // Checks if the handler is a Page and that the script isn't allready on the Page if (page != null && !page.ClientScript.IsClientScriptBlockRegistered("alert")) { page.ClientScript.RegisterClientScriptBlock(typeof(Alert), "alert", script); } } } } On this line: string script = "<script type="text/javascript">alert('" + cleanMessage + "');</script>"; It is showing me err: **; Expected** And also on page.ClientScript.RegisterClientScriptBlock(typeof(Alert), "alert", script); Err: **The type or namespace name 'Alert' could not be found (are you missing a using directive or an assembly reference?)** What I am doing wrong here?
c#
javascript
asp.net
null
null
null
open
JavaScript: Alert.Show(message) From ASP.NET Code-behind === I am reading this [JavaScript: Alert.Show(message) From ASP.NET Code-behind][1] [1]: http://archive.devnewz.com/devnewz-3-20061129JavaScriptAlertShowmessagefromASPNETCodebehind.html I am trying to implement the same. So I created a static class like this: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Data.SqlClient; using System.Web; using System.Text; using System.Web.UI; namespace Registration.DataAccess { public static class Repository { /// <summary> /// Shows a client-side JavaScript alert in the browser. /// </summary> /// <param name="message">The message to appear in the alert.</param> public static void Show(string message) { // Cleans the message to allow single quotation marks string cleanMessage = message.Replace("'", "\'"); string script = "<script type="text/javascript">alert('" + cleanMessage + "');</script>"; // Gets the executing web page Page page = HttpContext.Current.CurrentHandler as Page; // Checks if the handler is a Page and that the script isn't allready on the Page if (page != null && !page.ClientScript.IsClientScriptBlockRegistered("alert")) { page.ClientScript.RegisterClientScriptBlock(typeof(Alert), "alert", script); } } } } On this line: string script = "<script type="text/javascript">alert('" + cleanMessage + "');</script>"; It is showing me err: **; Expected** And also on page.ClientScript.RegisterClientScriptBlock(typeof(Alert), "alert", script); Err: **The type or namespace name 'Alert' could not be found (are you missing a using directive or an assembly reference?)** What I am doing wrong here?
0
8,670,413
12/29/2011 16:27:05
1,121,541
12/29/2011 16:26:03
1
0
Displaying week start and end dates in dropdown asp.net
I have a requirement where i need to get the users to select from a dropdown. the Dropdown will contain the weekstart date - weekenddate.The user will not be able to see the same week or previous weeks also he should be able to see just 4 weeks in the dropdown and not more than that .I require the solution in asp.net in C# > could anyone help me..my id is caesar.reagan@gmail.com quick help is really appreciated
c#
asp.net
null
null
null
12/30/2011 08:27:49
not a real question
Displaying week start and end dates in dropdown asp.net === I have a requirement where i need to get the users to select from a dropdown. the Dropdown will contain the weekstart date - weekenddate.The user will not be able to see the same week or previous weeks also he should be able to see just 4 weeks in the dropdown and not more than that .I require the solution in asp.net in C# > could anyone help me..my id is caesar.reagan@gmail.com quick help is really appreciated
1