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
8,896,281
01/17/2012 14:26:59
1,154,110
01/17/2012 14:24:00
1
0
void Value not ignored as it ought to be -- C
void getdata(int arr[],int n) { for(int i=0; i < n;i++) { int a = srand(time(NULL)) arr[i] = a; } } and i call my function in main getdata(arr,1024); but i dont understand what is wrong with that what i take this error ? Ty.
c
null
null
null
null
null
open
void Value not ignored as it ought to be -- C === void getdata(int arr[],int n) { for(int i=0; i < n;i++) { int a = srand(time(NULL)) arr[i] = a; } } and i call my function in main getdata(arr,1024); but i dont understand what is wrong with th...
0
7,975,935
11/02/2011 04:50:49
1,022,677
10/31/2011 20:36:27
28
0
Is there a LINQ function for getting the longest string in a list of strings?
Is there a LINQ function for this is or would one have to code it themselves like this: static string GetLongestStringInList() { string longest = list[0]; foreach (string s in list) { if (s.Length > longest.Length) { longest = s; ...
c#
string
linq
null
null
null
open
Is there a LINQ function for getting the longest string in a list of strings? === Is there a LINQ function for this is or would one have to code it themselves like this: static string GetLongestStringInList() { string longest = list[0]; foreach (string s in list) { ...
0
6,310,040
06/10/2011 17:33:45
679,047
03/27/2011 15:18:24
17
0
Neo4j Standalone vs Embedded server?
I want to know what is the difference between these two implementations of neo4j. Of-course names of both techniques is self-explanatory,but still what are the main differences? What factors should be considered in deciding which technique to use in the project? Pros and cons. P.S. Sorry if it is a repeat question...
embedded
standalone
neo4j
null
null
null
open
Neo4j Standalone vs Embedded server? === I want to know what is the difference between these two implementations of neo4j. Of-course names of both techniques is self-explanatory,but still what are the main differences? What factors should be considered in deciding which technique to use in the project? Pros and cons...
0
8,048,898
11/08/2011 10:19:45
846,351
07/15/2011 11:20:02
346
7
Multithreaded/Parallel programing book?
hi guys I'm looking for a through guide for .NET parallel programing in C# from framework 1.1 to 5.0 one with many real life examples and exercises. I know the basics as race conditions deadlocks etc.. but how to actually use those in real life, and what tools .NET provides? what is recommended?
c#
multithreading
c#-4.0
parallel-processing
null
11/08/2011 10:28:22
not constructive
Multithreaded/Parallel programing book? === hi guys I'm looking for a through guide for .NET parallel programing in C# from framework 1.1 to 5.0 one with many real life examples and exercises. I know the basics as race conditions deadlocks etc.. but how to actually use those in real life, and what tools .NET pr...
4
5,162,544
03/02/2011 01:46:44
626,883
02/21/2011 15:54:00
30
0
c++ library issue
I'm trying to make a call to a c++ assembly from my c#. I also have a sample application written in c++ that invokes the same library, and works fine. However, the call from c# throws an error: "attempted to read or write protected memory. this is often an indication that other memory is corrupt". The c# code is: ...
c#
c++
c
null
null
null
open
c++ library issue === I'm trying to make a call to a c++ assembly from my c#. I also have a sample application written in c++ that invokes the same library, and works fine. However, the call from c# throws an error: "attempted to read or write protected memory. this is often an indication that other memory is corrupt...
0
2,100,635
01/20/2010 10:31:11
232,812
12/16/2009 09:40:31
1
0
Objective-C #import a whole directory
Hey guys, sure hope you can help me. I've got around 50 Model-Classes stored in a seperate Folder (not only a group) and I really don't want to write an #import for each of these classes. Is there a way to import a whole directory? I know it's possible within other programming languaged and perhabs I simply us...
objective-c
import
directory
null
null
null
open
Objective-C #import a whole directory === Hey guys, sure hope you can help me. I've got around 50 Model-Classes stored in a seperate Folder (not only a group) and I really don't want to write an #import for each of these classes. Is there a way to import a whole directory? I know it's possible within other pr...
0
4,246,387
11/22/2010 14:25:27
118,810
06/07/2009 13:08:46
312
11
Is Razor mature enough to use it in application right now?
Good day! I'm planning to upgrade WebForms application and I have two possible choices: - Write it in ASP.NET MVC 2.0 with WebForms view engine and upgrade it to 3.0 when it will be out - Write it using ASP.NET MVC 3.0 RC with Razor as view engine It seems that Razor is the only 3.0 feature I really can tak...
asp.net-mvc
razor
null
null
null
11/22/2010 16:38:04
not constructive
Is Razor mature enough to use it in application right now? === Good day! I'm planning to upgrade WebForms application and I have two possible choices: - Write it in ASP.NET MVC 2.0 with WebForms view engine and upgrade it to 3.0 when it will be out - Write it using ASP.NET MVC 3.0 RC with Razor as view engine...
4
6,673,632
07/13/2011 03:07:22
627,569
02/22/2011 01:52:21
1,863
180
Try-with-resources in Java 7?
In the new Try-with-Resources syntax in Java 7 do I need to worry about the order of the resources? try (InputStream in = loadInput(...); // <--- can these be in any order? OutputStream out = createOutput(...) ){ copy(in, out); } catch (Exception e) { // Problem reading and ...
java-7
try-with-resources
null
null
null
null
open
Try-with-resources in Java 7? === In the new Try-with-Resources syntax in Java 7 do I need to worry about the order of the resources? try (InputStream in = loadInput(...); // <--- can these be in any order? OutputStream out = createOutput(...) ){ copy(in, out); } catch (Exception e)...
0
5,226,827
03/08/2011 00:00:55
591,149
01/26/2011 19:04:00
1
0
complex data requirement.
Here is my query: select Table1.a, Table1.b, Table1.c, Table1.d, Table2.e, Table3.f, Table4.g, Table5.h from Table1 left join Table6 on Table1.b=Table6.b left join Table3 on Table6.j=Table3.j left join Table7 on Table1.b=Table7.b left join Table5 on Table7.h=Table5.h inner join Table4 on Table1.k...
tsql
null
null
null
null
null
open
complex data requirement. === Here is my query: select Table1.a, Table1.b, Table1.c, Table1.d, Table2.e, Table3.f, Table4.g, Table5.h from Table1 left join Table6 on Table1.b=Table6.b left join Table3 on Table6.j=Table3.j left join Table7 on Table1.b=Table7.b left join Table5 on Table7.h=Table5.h...
0
7,684,537
10/07/2011 08:01:41
593,627
01/28/2011 10:20:04
5,622
236
How to update field from SQL database
I have a lotus notes application that has a document with a `Number`, and a `description` field. Users reserve a series of numbers at which point documents are created. They then fill in the description and a few other things. Once this is done they go into another, application (Qpulse; not a notes application)...
sql
fields
lotus-notes
updating
null
null
open
How to update field from SQL database === I have a lotus notes application that has a document with a `Number`, and a `description` field. Users reserve a series of numbers at which point documents are created. They then fill in the description and a few other things. Once this is done they go into another, ap...
0
7,244,381
08/30/2011 13:56:10
403,658
07/27/2010 16:57:36
600
31
Why is does my stopwatch keep reseting after 1 second
So I have the following code block: var sw = new Stopwatch(); sw.Start(); while (sw.Elapsed.Seconds<10) { System.Threading.Thread.Sleep(50); Console.WriteLine(sw.Elapsed.Milliseconds.ToString() + " ms"); } ...
c#
null
null
null
null
null
open
Why is does my stopwatch keep reseting after 1 second === So I have the following code block: var sw = new Stopwatch(); sw.Start(); while (sw.Elapsed.Seconds<10) { System.Threading.Thread.Sleep(50); Console.WriteLine(sw...
0
10,958,554
06/09/2012 05:13:49
1,000,847
10/18/2011 09:56:12
168
1
Dot lock protection for IPhone app
In Android, there is one feature for login protecting by dot lock password. For IPhone, I have seen some apps in app store to implemented that features for protecting photos, mail, videos and etc. I want to create that feature(for login password) in IPhone app. Is that possible? If you have any idea (or) sample c...
iphone
ios
login
password-protection
null
06/10/2012 16:16:55
not a real question
Dot lock protection for IPhone app === In Android, there is one feature for login protecting by dot lock password. For IPhone, I have seen some apps in app store to implemented that features for protecting photos, mail, videos and etc. I want to create that feature(for login password) in IPhone app. Is that possibl...
1
11,308,923
07/03/2012 10:23:51
1,498,456
07/03/2012 10:18:13
1
0
How 2 populate amazon cloud search using ASP DOT NET and HTTP API
Can any one help me with a link od how to add data to amazon cloud search using HTML API in ASP .NET. I have googled it and even seen in the sample codes in amazon but was did'nt find a cingle link.
asp.net
asp.net-mvc
null
null
null
07/04/2012 12:59:22
not constructive
How 2 populate amazon cloud search using ASP DOT NET and HTTP API === Can any one help me with a link od how to add data to amazon cloud search using HTML API in ASP .NET. I have googled it and even seen in the sample codes in amazon but was did'nt find a cingle link.
4
11,198,404
06/25/2012 22:40:30
105,035
05/11/2009 21:40:38
2,060
17
WCF Async Service or MVC Async controller thread usage?
Can anyone explain when to use async controller versus an async wcf service? As in thread usage etc? My async controller looks like this public class EventController : AsyncController { [HttpPost] public void RecordAsync(EventData eventData) { AsyncManager.OutstandingOperations.Incremen...
c#
wcf
mvc
asynchronous
thread-safety
null
open
WCF Async Service or MVC Async controller thread usage? === Can anyone explain when to use async controller versus an async wcf service? As in thread usage etc? My async controller looks like this public class EventController : AsyncController { [HttpPost] public void RecordAsync(EventData ev...
0
7,317,699
09/06/2011 09:27:37
896,472
08/16/2011 10:32:59
6
1
Suggestions based on old transactions
I want to use some mechanisms to suggest(or refer) the items in the database to users based on the current transaction. For ex, In IMDB or Amazon, users are suggested with items based on the current viewing item. What should i read to implement such kind of mechanism? I need to implement it in java. Is there any java A...
suggestions
autosuggest
null
null
null
09/24/2011 14:55:36
not a real question
Suggestions based on old transactions === I want to use some mechanisms to suggest(or refer) the items in the database to users based on the current transaction. For ex, In IMDB or Amazon, users are suggested with items based on the current viewing item. What should i read to implement such kind of mechanism? I need t...
1
10,698,205
05/22/2012 08:12:29
1,061,499
11/23/2011 09:03:38
635
23
Javascript code check in JSPs
Is there a way, in Eclipse, to enable some kind of code check for Javascript inside a JSP? I have some code between `<script>` tags and when a syntax error occurs I cannot easily find where the error is... This is very annoying...
javascript
eclipse
jsp
valid
null
null
open
Javascript code check in JSPs === Is there a way, in Eclipse, to enable some kind of code check for Javascript inside a JSP? I have some code between `<script>` tags and when a syntax error occurs I cannot easily find where the error is... This is very annoying...
0
936,895
06/01/2009 21:30:37
9,382
09/15/2008 18:36:29
1,370
30
SQL Server 2005 Service Pack 3 won't install.
I am trying to install SQL Server 2005 Service Pack 3 and it keeps failing. Comes back with the following: Microsoft SQL Server 2005 - Update 'Service Pack 3 for SQL Server Database Services 2005 ENU (KB955706)' could not be installed. Error code 1603. The detailed dump reveals the following: MSI (s) (90:C8)...
sql-server-2005
servicepacks
sp3
null
null
10/04/2009 19:51:29
off topic
SQL Server 2005 Service Pack 3 won't install. === I am trying to install SQL Server 2005 Service Pack 3 and it keeps failing. Comes back with the following: Microsoft SQL Server 2005 - Update 'Service Pack 3 for SQL Server Database Services 2005 ENU (KB955706)' could not be installed. Error code 1603. The deta...
2
8,198,420
11/20/2011 00:13:55
341,497
05/13/2010 11:21:07
176
11
Open source VNC client for Android
Where can i find an open source VNC (RFB) client? Thanks, Eyal.
android
open-source
vnc
null
null
11/20/2011 01:58:09
off topic
Open source VNC client for Android === Where can i find an open source VNC (RFB) client? Thanks, Eyal.
2
11,658,893
07/25/2012 21:26:34
1,438,637
06/06/2012 01:29:55
45
0
Neural network - data with both binary and continuous inputs?
I'm using the nnet package in R to attempt to build an ANN to predict real estate prices for condos (personal project). I am new to this and don't have a math background so please bare with me. I have input variables that are both binary and continuous. For example some binary variables which were originally yes/no ...
r
neural-network
null
null
null
07/26/2012 13:00:20
off topic
Neural network - data with both binary and continuous inputs? === I'm using the nnet package in R to attempt to build an ANN to predict real estate prices for condos (personal project). I am new to this and don't have a math background so please bare with me. I have input variables that are both binary and continuo...
2
10,256,758
04/21/2012 06:14:54
651,174
03/09/2011 08:26:41
1,595
41
Strategies for large amount of db queries for single page request
For sites like IMDB ( http://www.imdb.com/name/nm0000138/), LinkedIn, or Facebook, it seems like there could be a thousand queries for the loading of a single page. Is there an upper limit on the number of queries that can be (sensibly) generated on a page request? Or is this problem solved by caching, like `memcac...
mysql
sql
caching
memcached
null
04/23/2012 02:45:46
not constructive
Strategies for large amount of db queries for single page request === For sites like IMDB ( http://www.imdb.com/name/nm0000138/), LinkedIn, or Facebook, it seems like there could be a thousand queries for the loading of a single page. Is there an upper limit on the number of queries that can be (sensibly) generate...
4
3,948,652
10/16/2010 11:14:32
477,869
10/16/2010 11:14:32
1
0
Artistic worm creation
I have a problem, some friends and I are looking for some place we can upload our school design project like this: http://www.freewebs.com/gfxvoidworm/worm.html . Each of those images are uploaded next to eachoter and not as a long single image. How can we upload our different images next to eachother like that withou...
jpeg
photoshop
art
null
null
10/20/2010 19:27:02
off topic
Artistic worm creation === I have a problem, some friends and I are looking for some place we can upload our school design project like this: http://www.freewebs.com/gfxvoidworm/worm.html . Each of those images are uploaded next to eachoter and not as a long single image. How can we upload our different images next t...
2
3,280,992
07/19/2010 12:26:58
356,387
06/02/2010 11:44:16
167
5
Can't release array objects, but they are causing leaks.
I have 2 arrays, 1 in the viewDidLoad method and 1 in the add method(adds an object to favorites) NSUserDefaults *myDefault = [NSUserDefaults standardUserDefaults]; NSArray *prefs = [myDefault arrayForKey:@"addedPrefs"]; userAdded = [[NSMutableArray alloc] initWithArray:prefs]; Instruments is showing l...
iphone
objective-c
memory-management
memory-leaks
instruments
null
open
Can't release array objects, but they are causing leaks. === I have 2 arrays, 1 in the viewDidLoad method and 1 in the add method(adds an object to favorites) NSUserDefaults *myDefault = [NSUserDefaults standardUserDefaults]; NSArray *prefs = [myDefault arrayForKey:@"addedPrefs"]; userAdded = [[NSMutable...
0
8,118,941
11/14/2011 08:25:34
580,488
01/18/2011 20:10:47
169
8
Using htaccess to change document root
My website has document root ~/public_html but i want to add all the files into ~/public_html/www Is there a way to do this with htaccess? Thank you.
apache
.htaccess
null
null
null
11/26/2011 08:34:43
off topic
Using htaccess to change document root === My website has document root ~/public_html but i want to add all the files into ~/public_html/www Is there a way to do this with htaccess? Thank you.
2
7,718,171
10/10/2011 20:17:39
985,736
10/08/2011 19:44:15
1
0
AJAX.NET Asnycpostback not working
I created an AJAX.NET application and I am running my application with the help of `<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />` but now my following sample code is posting back on every button click. I need th...
asp.net
ajax
ajax.net
null
null
null
open
AJAX.NET Asnycpostback not working === I created an AJAX.NET application and I am running my application with the help of `<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />` but now my following sample code is posti...
0
7,193,871
08/25/2011 16:23:05
517,193
11/23/2010 09:11:42
74
8
java - MongoDB + Solr performances
I've been looking around a lot to see how to use MongoDB in combination with Solr, and some questions here have partial responses, but nothing really concrete (more like theories). In my application, I will have lots and lots of documents stored in MongoDB (maybe up to few hundred millions), and I want to implement ful...
java
mongodb
solr
null
null
null
open
java - MongoDB + Solr performances === I've been looking around a lot to see how to use MongoDB in combination with Solr, and some questions here have partial responses, but nothing really concrete (more like theories). In my application, I will have lots and lots of documents stored in MongoDB (maybe up to few hundre...
0
6,451,956
06/23/2011 09:28:51
701,281
04/10/2011 21:45:27
13
0
FlowCoverView How to change tile (texture) size?
I'm using FlowCoverView, an open source (and AppStore compliant) alternative to Apple's cover flow (you can find it here http://chaosinmotion.com/flowcover.m) How can I change the tile (or texture as it's called in the library) size (statically at least)? The code comes with a statically fixed 256x256 tile size. ...
iphone
opengl-es
coverflow
null
null
null
open
FlowCoverView How to change tile (texture) size? === I'm using FlowCoverView, an open source (and AppStore compliant) alternative to Apple's cover flow (you can find it here http://chaosinmotion.com/flowcover.m) How can I change the tile (or texture as it's called in the library) size (statically at least)? The ...
0
11,390,775
07/09/2012 07:36:18
1,353,335
04/24/2012 09:43:53
2
0
c# nunit test not enough space in buffer
I have a question. I got a problem with one unit test. Is a OutOfMemmory ecxeption. Buffer is set on 1MB and file is bigger than 1MB. Can somebody help with that problem I can just change test code. Thanks
c#
nunit
null
null
null
07/10/2012 14:19:51
not a real question
c# nunit test not enough space in buffer === I have a question. I got a problem with one unit test. Is a OutOfMemmory ecxeption. Buffer is set on 1MB and file is bigger than 1MB. Can somebody help with that problem I can just change test code. Thanks
1
4,884,987
02/03/2011 10:29:38
100,567
05/04/2009 00:39:29
615
28
PHP: whitespaces that do matter
Whitespaces are generally ignored in PHP syntax, but there are several places where you cannot put them without affecting the sense (and the result). One example is: $a = 5.5; // five and a half (float) $b = 5 . 5; // "55" (string) Do you know of any other examples?
php
syntax
whitespace
null
null
02/04/2011 17:56:16
not constructive
PHP: whitespaces that do matter === Whitespaces are generally ignored in PHP syntax, but there are several places where you cannot put them without affecting the sense (and the result). One example is: $a = 5.5; // five and a half (float) $b = 5 . 5; // "55" (string) Do you know of any other exam...
4
1,469,153
09/24/2009 00:01:08
143,030
07/22/2009 17:14:12
1,982
30
How can I get the value in the URL and modify it for paging with mod-rewrite on?
I am trying to get my old paging class to work which relied on the variables available with $_GET in PHP to reconstruct the URL for the paging links, it worked great but now I am changing to have "pretty url's" with mod-rewrite. So this **domain.com/?p=the-pagename-identifier&userid=12&page=3** would now...
php
paging
mod-rewrite
null
null
null
open
How can I get the value in the URL and modify it for paging with mod-rewrite on? === I am trying to get my old paging class to work which relied on the variables available with $_GET in PHP to reconstruct the URL for the paging links, it worked great but now I am changing to have "pretty url's" with mod-rewrite. ...
0
7,800,258
10/17/2011 22:17:06
999,078
10/17/2011 11:47:09
1
0
Adding custom rules at build time
I'm looking for tools (preferrably open source) which will help me to add/evaluate custom rules at the build time for C/C++ projects. For example, I want to add a rule such that trailing spaces in the code will be treated as error and after a file is compiled, the rule-checker will evaluate the file against the gi...
c++
c
make
null
null
10/18/2011 08:22:32
not constructive
Adding custom rules at build time === I'm looking for tools (preferrably open source) which will help me to add/evaluate custom rules at the build time for C/C++ projects. For example, I want to add a rule such that trailing spaces in the code will be treated as error and after a file is compiled, the rule-checke...
4
858,990
05/13/2009 16:32:16
5,552
09/10/2008 13:38:06
1,240
46
How can I target CSS to a particular sharepoint Page Layout file?
Is it possible to create a .CSS file for each sharepoint Page Layout I develop, or does the CSS for each possible layout in a master page need to be referenced in the master page? IE is it possible to effect the <head> of the page a page layout is used in?
sharepoint
css
page-layout
null
null
null
open
How can I target CSS to a particular sharepoint Page Layout file? === Is it possible to create a .CSS file for each sharepoint Page Layout I develop, or does the CSS for each possible layout in a master page need to be referenced in the master page? IE is it possible to effect the <head> of the page a page layout i...
0
11,041,180
06/14/2012 20:53:39
400,589
07/23/2010 19:11:20
775
26
How would you replicate try/catch/finally using On Error Goto
Suppose in VB.NET you have: Try Debug.Print("Trying...") Catch ex as Exception Debug.Print("Exception...") Finally Debug.Print("Finally...") End Try How would you write this using the "On Error Goto" construct? (please no questions asking why I would want to do this, jus...
vb.net
null
null
null
null
06/15/2012 00:35:06
not constructive
How would you replicate try/catch/finally using On Error Goto === Suppose in VB.NET you have: Try Debug.Print("Trying...") Catch ex as Exception Debug.Print("Exception...") Finally Debug.Print("Finally...") End Try How would you write this using the "On Error Goto" cons...
4
2,252,934
02/12/2010 15:39:40
5,055
09/07/2008 15:43:03
921
39
Javascript - what does this line do?
What does the following javascript do? var groups = countrylist.split(','); for( var i = -1, group; group = groupsCounty[++i]; ){ ... }
javascript
loops
null
null
null
null
open
Javascript - what does this line do? === What does the following javascript do? var groups = countrylist.split(','); for( var i = -1, group; group = groupsCounty[++i]; ){ ... }
0
6,686,700
07/13/2011 23:02:08
809,684
06/22/2011 04:46:31
13
1
problem with using colorbox in ajax.php page
I have a page called `example1.js` . This page calls another page with some values using ajax that page is `ajax.php`. Now problem is in `ajax.php` there is a submit button for which i want to use colorbox. Now this `ajax.php` file does not have any header or .js files for colorbox. What is the best way to achieve ...
php
ajax
colorbox
null
null
07/14/2011 01:04:49
not a real question
problem with using colorbox in ajax.php page === I have a page called `example1.js` . This page calls another page with some values using ajax that page is `ajax.php`. Now problem is in `ajax.php` there is a submit button for which i want to use colorbox. Now this `ajax.php` file does not have any header or .js fil...
1
8,317,451
11/29/2011 20:42:49
1,072,154
11/29/2011 20:33:47
1
0
Getting JSON feed data from RESTFul web service
my requirement is similar to what the post below mentioned. i tried to follow the same approach but i am getting error like "Illegal characters in path." how would like get/access the information in file.. for excample..below is the JSON result data and i would like to read/display in webpage the data as Sto...
c#
mvc-3
null
null
null
11/30/2011 03:38:09
not a real question
Getting JSON feed data from RESTFul web service === my requirement is similar to what the post below mentioned. i tried to follow the same approach but i am getting error like "Illegal characters in path." how would like get/access the information in file.. for excample..below is the JSON result data and i wou...
1
6,538,937
06/30/2011 17:49:50
5,175
09/08/2008 10:47:07
915
7
Database schema design - how to store specific application settings against entities
I'm trying to design some database tales to store configuration settings about certain entities and the applications they are associated with. I can get so far but have hit a "brick wall". I'll show you what I mean... (do not take the following: pictures, as a literal business problem, pictures are just an easy way o...
database-design
null
null
null
null
null
open
Database schema design - how to store specific application settings against entities === I'm trying to design some database tales to store configuration settings about certain entities and the applications they are associated with. I can get so far but have hit a "brick wall". I'll show you what I mean... (do not ta...
0
1,254,995
08/10/2009 13:46:31
9,204
09/15/2008 18:03:06
1,291
59
Thread-safe memoization
Let's take [Wes Dyer's][1] approach to function memoization as the starting point: public static Func<A, R> Memoize<A, R>(this Func<A, R> f) { var map = new Dictionary<A, R>(); return a => { R value; if (map.TryGetValue(a, out value)) return value; ...
c#
locking
memoization
multithreading
thread-safety
null
open
Thread-safe memoization === Let's take [Wes Dyer's][1] approach to function memoization as the starting point: public static Func<A, R> Memoize<A, R>(this Func<A, R> f) { var map = new Dictionary<A, R>(); return a => { R value; if (map.TryGetValue(a, out value))...
0
10,299,092
04/24/2012 13:39:38
1,353,815
04/24/2012 13:35:17
1
0
Need a Free Sharepoint pie chart sandbox webpart
I am looking for a free SharePoint Pie chart webpart which would be fancy and highly dynamic in nature. We need to display list columns mainly "Status" column in task list as pie chart to see the overall performance of the team. This webpart is need for an Office 365 SharePoint Online website so needs to be Sandbox ...
sharepoint
office365
null
null
null
04/25/2012 14:06:50
not constructive
Need a Free Sharepoint pie chart sandbox webpart === I am looking for a free SharePoint Pie chart webpart which would be fancy and highly dynamic in nature. We need to display list columns mainly "Status" column in task list as pie chart to see the overall performance of the team. This webpart is need for an Office...
4
11,543,060
07/18/2012 13:54:24
1,510,629
07/08/2012 22:08:04
1
0
Creating a web interface with python (cgi)
I am unable to display my python created webpage in my browser and I am not sure why. I believe my html syntax is correct. I think my problem is with the path I am using and the shebang. Does anyone know what I should do? Your help will be much appreciated. I am using cgi by the way.
python
html
web
connection
cgi
07/19/2012 19:15:18
not a real question
Creating a web interface with python (cgi) === I am unable to display my python created webpage in my browser and I am not sure why. I believe my html syntax is correct. I think my problem is with the path I am using and the shebang. Does anyone know what I should do? Your help will be much appreciated. I am using cgi...
1
10,349,213
04/27/2012 10:45:55
1,360,862
04/27/2012 10:04:16
1
0
GET Url from Android default browser
How to Find the latest url in android browser which user has clicked , in run time will a service be required ? any help will be helpful. thanks
android
url
null
null
null
06/20/2012 12:39:27
not a real question
GET Url from Android default browser === How to Find the latest url in android browser which user has clicked , in run time will a service be required ? any help will be helpful. thanks
1
3,797,245
09/26/2010 09:40:06
213,637
11/18/2009 10:17:38
1
0
Doubling Internet Connection Speed
Scenario: I have two ADSL modem that are connected to to different ISPs. Each has 256KBps Speed. Question:Is it possible to have 512KBps speed?(I have one PC that can be host any OS) Is any special appliance essential for doing that? Thanks in Advance, Ashkan.
networking
null
null
null
null
09/26/2010 10:36:21
off topic
Doubling Internet Connection Speed === Scenario: I have two ADSL modem that are connected to to different ISPs. Each has 256KBps Speed. Question:Is it possible to have 512KBps speed?(I have one PC that can be host any OS) Is any special appliance essential for doing that? Thanks in Advance, Ashkan.
2
6,436,899
06/22/2011 08:19:48
809,938
06/22/2011 08:15:32
1
0
android screenshot ?
{ Button button = (Button)findViewById(R.id.btnTakeScreenshot); button.setOnClickListener(new View.OnClickListener() { //@Override public void onClick(View v) { final View content = findViewById(R.id.layoutroot); Bitmap bitmap = content.getDrawingCache(); File file = n...
android
button
screenshot
null
null
06/22/2011 09:47:32
not a real question
android screenshot ? === { Button button = (Button)findViewById(R.id.btnTakeScreenshot); button.setOnClickListener(new View.OnClickListener() { //@Override public void onClick(View v) { final View content = findViewById(R.id.layoutroot); Bitmap bitmap = content.getDrawingCach...
1
11,485,325
07/14/2012 16:13:56
343,592
05/18/2010 01:52:37
19
1
Most recommended Android Developnent Book
Ive searching for a good android java development book. But i could found nothing but awfull book or neither old books oriented to android 2.2 or 1.6 versions. Im looking for something more updated as i recently bought an android 4 tablet. Just looking for something simple and straight forward. Any opinions would b...
android
books
null
null
null
07/14/2012 17:35:04
off topic
Most recommended Android Developnent Book === Ive searching for a good android java development book. But i could found nothing but awfull book or neither old books oriented to android 2.2 or 1.6 versions. Im looking for something more updated as i recently bought an android 4 tablet. Just looking for something simpl...
2
8,752,499
01/06/2012 01:55:36
591,534
01/27/2011 00:33:22
25
0
Navigation for sliding doors (full page slider)
I'm using jstn's <a href="https://gist.github.com/267584/846c5b367738fca9fe4c8ba309a894da814289e6">Sliding Doors</a> script (which is essentially a full page slider) but I'm having some trouble with the navigation. Instead of having to link directly to the frames, I would just like to have "previous" and "next" links t...
javascript
mootools
slider
null
null
null
open
Navigation for sliding doors (full page slider) === I'm using jstn's <a href="https://gist.github.com/267584/846c5b367738fca9fe4c8ba309a894da814289e6">Sliding Doors</a> script (which is essentially a full page slider) but I'm having some trouble with the navigation. Instead of having to link directly to the frames, I ...
0
4,471,743
12/17/2010 15:02:52
439,507
11/01/2008 22:11:03
353
22
How to catch users which open application from multiple page
In my web application, some users open app in multiple browser page. How can I catch users when they do it?
c#
asp.net
session
null
null
null
open
How to catch users which open application from multiple page === In my web application, some users open app in multiple browser page. How can I catch users when they do it?
0
9,397,311
02/22/2012 15:05:05
1,119,148
12/28/2011 10:52:46
6
0
What is the best gaming framework for android and iphone
What is the best gaming framework that can I use for both android and iPhone ??
android
iphone
null
null
null
02/23/2012 01:42:47
not constructive
What is the best gaming framework for android and iphone === What is the best gaming framework that can I use for both android and iPhone ??
4
5,894,029
05/05/2011 07:19:38
740,374
05/05/2011 07:19:38
1
0
C++ Using arrays in functions
I have this question that I didn't know how to solve. Hope anybody can help me: Write the C++ function void zero (int x[ ] [N], zerroArray [ ], int rows, int cols) that accepts the 2D integer array (matrix) x of size rows and cols, and returns, as the one dimensional array zerroArray [ ], the numbe...
c++
null
null
null
null
05/05/2011 16:47:26
not a real question
C++ Using arrays in functions === I have this question that I didn't know how to solve. Hope anybody can help me: Write the C++ function void zero (int x[ ] [N], zerroArray [ ], int rows, int cols) that accepts the 2D integer array (matrix) x of size rows and cols, and returns, as the one dimensio...
1
7,473,484
09/19/2011 15:15:09
480,101
10/19/2010 06:07:19
55
3
Problems while restoring application from backup
I have a rooted android phone, I am working on an app which does backup of application installed in sdcard to PC. I am able to successfully backup the application from sdcard to PC. While restoring the application from the backup, I restored all files(asec,pkg,cache,data) pertaining to the application in the exact same...
sd-card
backup
launcher
null
null
null
open
Problems while restoring application from backup === I have a rooted android phone, I am working on an app which does backup of application installed in sdcard to PC. I am able to successfully backup the application from sdcard to PC. While restoring the application from the backup, I restored all files(asec,pkg,cache...
0
11,510,735
07/16/2012 18:56:31
700,074
04/09/2011 15:28:29
466
4
rails - has_many categories
From a person record I need to be able to add documents of specific types. Including the conditions for category_id works but at this point I can not assume that the category ids will be the same. This is also an issue with testing where I only create the categories I need. Is there a way I can dynamically set the ca...
ruby-on-rails
null
null
null
null
null
open
rails - has_many categories === From a person record I need to be able to add documents of specific types. Including the conditions for category_id works but at this point I can not assume that the category ids will be the same. This is also an issue with testing where I only create the categories I need. Is there a...
0
11,156,038
06/22/2012 12:20:09
1,474,737
06/22/2012 12:03:12
1
0
"Not defined" javascript error in Firefox
I'm very new to JS, and understand that my script is probably terrible, but it all works fine in Safari and Chrome, just not in Firefox. Amongst other things, I'm calling two functions to hide and reveal a custom Quicktime movie controller by placing a "mask" over the top of it (I know a toggle would be a more elega...
javascript
firefox
null
null
null
null
open
"Not defined" javascript error in Firefox === I'm very new to JS, and understand that my script is probably terrible, but it all works fine in Safari and Chrome, just not in Firefox. Amongst other things, I'm calling two functions to hide and reveal a custom Quicktime movie controller by placing a "mask" over the t...
0
5,637,724
04/12/2011 15:28:29
356,790
06/02/2010 18:59:59
565
16
.net construct / pattern to block by segment of code, not by thread
Is there a construct or pattern in .net that defines a segment of code that can be accessed by multiple threads but blocks if any thread is in some other segment of code (and vice-versa)? For example: void SomeOperationA() { Block( B ) { Segment1: ... only e...
c#
.net
multithreading
design-patterns
.net-4.0
null
open
.net construct / pattern to block by segment of code, not by thread === Is there a construct or pattern in .net that defines a segment of code that can be accessed by multiple threads but blocks if any thread is in some other segment of code (and vice-versa)? For example: void SomeOperationA() { ...
0
11,150,222
06/22/2012 04:33:09
433,570
08/28/2010 07:11:43
1,283
19
Need help understanding Sprite & Texture
I recently started looking at cocos2d game development. What's the difference between sprite and texture? Maybe I could through in 'bitmap' in there. What is a bitmap? They all seem to be the same thing as 2d image.
cocos2d
sprite
texture
null
null
null
open
Need help understanding Sprite & Texture === I recently started looking at cocos2d game development. What's the difference between sprite and texture? Maybe I could through in 'bitmap' in there. What is a bitmap? They all seem to be the same thing as 2d image.
0
2,756,055
05/03/2010 04:08:27
308,315
04/03/2010 13:55:08
49
5
AVAudioPlayer not unloading cached memory after each new allocation
I am seeing in Instruments that when I play a sound via the standard "AddMusic" example method that Apple provides, it allocates 32kb of memory via the `prepareToPlay` call (which references the `AudioToolBox` framework's `Cache_DataSource::ReadBytes` function) each time a new player is allocated (i.e. each time a diff...
iphone
avaudioplayer
audiotoolbox
objective-c
null
null
open
AVAudioPlayer not unloading cached memory after each new allocation === I am seeing in Instruments that when I play a sound via the standard "AddMusic" example method that Apple provides, it allocates 32kb of memory via the `prepareToPlay` call (which references the `AudioToolBox` framework's `Cache_DataSource::ReadBy...
0
224,827
10/22/2008 08:15:08
11,979
09/16/2008 12:42:54
53
1
Tips for optimizing an sqlite database with over a gig of data in it?
I am working with a larger than average sqlite database (for use on both on windows and linux) and am looking to maximize the performance I get out of it. The database is to be installed on commodity hardware along with an sqlite gui. The users I am delivering this to are sql savvy but are unlikely to undertake their o...
sqlite
optimization
windows
linux
configuration
01/27/2012 15:21:31
too localized
Tips for optimizing an sqlite database with over a gig of data in it? === I am working with a larger than average sqlite database (for use on both on windows and linux) and am looking to maximize the performance I get out of it. The database is to be installed on commodity hardware along with an sqlite gui. The users ...
3
3,830,784
09/30/2010 13:10:05
178,575
09/24/2009 16:22:33
331
25
How to set host and port in full java without dmcl.ini
Using Documentum DFC, I would like to set up a docbase connection without using a dmcl.ini. How can I do such a thing?
java
documentum
dfc
null
null
null
open
How to set host and port in full java without dmcl.ini === Using Documentum DFC, I would like to set up a docbase connection without using a dmcl.ini. How can I do such a thing?
0
5,108,503
02/24/2011 17:51:16
58,800
01/25/2009 15:51:15
252
16
Java OAuth Server
Are there any open source projects that enabled implementing OAuth Server? Apache Foundation ones?
java
source
open
oauth-2.0
oauth-provider
02/28/2012 14:20:23
not constructive
Java OAuth Server === Are there any open source projects that enabled implementing OAuth Server? Apache Foundation ones?
4
6,222,528
06/03/2011 02:57:19
374,220
06/23/2010 12:37:06
1
1
UnitTesting the webapp.RequestHandler in GAE - Python
I'm struggling on how to setup my environment for TDD with Google App Engine - Python. (I'm also pretty new to Python) I am using IntelliJ with the Python plugin, so running unittests is as simple as hitting ctrl-shft-f10. I've also read the documentation on testbed and have successfully tested the datastore a...
python
unit-testing
google-app-engine
google
null
null
open
UnitTesting the webapp.RequestHandler in GAE - Python === I'm struggling on how to setup my environment for TDD with Google App Engine - Python. (I'm also pretty new to Python) I am using IntelliJ with the Python plugin, so running unittests is as simple as hitting ctrl-shft-f10. I've also read the documentat...
0
6,709,182
07/15/2011 15:09:55
836,420
07/09/2011 05:18:25
1
0
cropping an UIImage to a new aspect ratio
i want to crop an UIImage to get a new aspect ratio... bounds is a CGRect with `(0,0, newwidth, newhigh)`... - (UIImage *)croppedImage:(UIImage *)myImage :(CGRect)bounds { CGImageRef imageRef = CGImageCreateWithImageInRect(myImage.CGImage, bounds); UIImage *croppedImage = [UIImage imageWithC...
iphone
xcode
ipad
uiimage
crop
null
open
cropping an UIImage to a new aspect ratio === i want to crop an UIImage to get a new aspect ratio... bounds is a CGRect with `(0,0, newwidth, newhigh)`... - (UIImage *)croppedImage:(UIImage *)myImage :(CGRect)bounds { CGImageRef imageRef = CGImageCreateWithImageInRect(myImage.CGImage, bounds); ...
0
10,306,248
04/24/2012 21:27:45
1,353,611
04/24/2012 12:03:55
1
0
C++ excercises reference
Does anyone have a C++ exercises website (or a reference), where I can test my skills in the previously mentioned programming langauge? I already know about this site : http://www.cplusplus.com/forum/articles/12974/, so don't post it. It can be commercial or non-commercial. **Thank you a lot!**
c++
tasks
excercises
null
null
04/24/2012 21:35:01
not constructive
C++ excercises reference === Does anyone have a C++ exercises website (or a reference), where I can test my skills in the previously mentioned programming langauge? I already know about this site : http://www.cplusplus.com/forum/articles/12974/, so don't post it. It can be commercial or non-commercial. **Than...
4
8,153,878
11/16/2011 15:10:02
886,582
08/09/2011 18:47:34
1
1
jQuery Isotope - Not working within a responsive/fluid grid
I am in the process of building a photoblog which utilises the brilliant Isotope plugin by David DeSandro but I am curently having some difficulty getting the plugin to work as intended within a responsive / fluid grid. www.lewismalpas.co.uk/tumblr (Demo) Each image is wrapped within a div (.item) which has an e...
jquery
jquery-plugins
jquery-masonry
responsive-design
jquery-isotope
null
open
jQuery Isotope - Not working within a responsive/fluid grid === I am in the process of building a photoblog which utilises the brilliant Isotope plugin by David DeSandro but I am curently having some difficulty getting the plugin to work as intended within a responsive / fluid grid. www.lewismalpas.co.uk/tumblr (D...
0
4,689
08/07/2008 13:08:44
637
08/07/2008 12:33:15
1
0
Recommended Fonts for Programming?
What fonts do you use for programming, and for what language/ide? I use [Consolas][1] for all my Visual Studio work, any other recommendations? [1]: http://www.microsoft.com/downloads/details.aspx?familyid=22e69ae4-7e40-4807-8a86-b3d36fab68d3&displaylang=en "Consolas"
font
null
null
null
null
09/26/2011 22:55:42
not constructive
Recommended Fonts for Programming? === What fonts do you use for programming, and for what language/ide? I use [Consolas][1] for all my Visual Studio work, any other recommendations? [1]: http://www.microsoft.com/downloads/details.aspx?familyid=22e69ae4-7e40-4807-8a86-b3d36fab68d3&displaylang=en "Consolas"
4
1,227,618
08/04/2009 13:43:52
147,150
07/29/2009 14:14:02
396
35
Big clickable areas on a web page
Excuse me while I detach from reality.. I have a summary div which contains a small heading, a little bit of text, maybe an image. I'd like the whole summary div to be a link, something like this: <div class="summary"> <a href="#"> <h4>Small Heading</h4> <p>Small amount of text</p> ...
html
css
null
null
null
null
open
Big clickable areas on a web page === Excuse me while I detach from reality.. I have a summary div which contains a small heading, a little bit of text, maybe an image. I'd like the whole summary div to be a link, something like this: <div class="summary"> <a href="#"> <h4>Small Heading</h4> ...
0
8,767,534
01/07/2012 05:05:04
927,667
09/04/2011 15:06:39
329
2
Is there a company logo database online?
I would like to allow a company logo to display on my page when an user specify company name. Is there an online database, or a Rails gem for this purpose? This would be similar to Gravatar, but for companies. Thank you.
ruby-on-rails
api
null
null
null
01/07/2012 05:27:48
off topic
Is there a company logo database online? === I would like to allow a company logo to display on my page when an user specify company name. Is there an online database, or a Rails gem for this purpose? This would be similar to Gravatar, but for companies. Thank you.
2
8,409,308
12/07/2011 01:26:10
1,093,391
11/28/2011 04:08:06
10
0
ios - Login app
im making this application that logs in on an api link i am getting server response in the console but i dont have any response at the app what seems to be the problem? **here is my code:** -(IBAction)btnClicked:(id)sender { ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL ...
ios
login
response
asihttprequest
null
12/07/2011 19:14:40
not a real question
ios - Login app === im making this application that logs in on an api link i am getting server response in the console but i dont have any response at the app what seems to be the problem? **here is my code:** -(IBAction)btnClicked:(id)sender { ASIFormDataRequest *request = [ASIFormDataRequest r...
1
9,536,004
03/02/2012 15:36:12
966,638
09/27/2011 08:52:12
565
15
Call to Javascript method
I'm a complete beginner in JS, so pls have patience :) my.hello = function () { $("#ok").myMethod({ goodbye: function () { }, alividerci: function (event, ui) { ...
javascript
jquery
null
null
null
03/05/2012 04:42:50
not a real question
Call to Javascript method === I'm a complete beginner in JS, so pls have patience :) my.hello = function () { $("#ok").myMethod({ goodbye: function () { }, alividerci: function (event, ui) { ...
1
937,797
06/02/2009 03:25:50
105,135
05/12/2009 04:11:46
15
0
How do you do a query in Access with a fixed amount of columns
I want to pull data with an MS Access crosstab query so I can bind it to a report. When I load the page I get a Run-time error'3637': Cannot use the crosstab of a non-fixed column as a subquery. I would like a way to get back a fixed grid when I run the query and if the cell is null display a zero.
sql
ms-access
crosstab
null
null
null
open
How do you do a query in Access with a fixed amount of columns === I want to pull data with an MS Access crosstab query so I can bind it to a report. When I load the page I get a Run-time error'3637': Cannot use the crosstab of a non-fixed column as a subquery. I would like a way to get back a fixed grid when I run...
0
8,058,551
11/08/2011 23:37:15
311,660
12/02/2009 21:32:31
6,087
281
Lightweight convention based MVVM frameworks, are there any?
I've been looking for a nice convention based MVVM framework, I've looked at [NakedMVVM](http://blog.vuscode.com/malovicn/archive/2010/11/07/naked-mvvm-simplest-possible-mvvm-approach.aspx#comments), which seems to be along the lines of what I'm after. But can there really be only one? What other options are availab...
c#
wpf
mvvm
null
null
11/09/2011 13:30:46
too localized
Lightweight convention based MVVM frameworks, are there any? === I've been looking for a nice convention based MVVM framework, I've looked at [NakedMVVM](http://blog.vuscode.com/malovicn/archive/2010/11/07/naked-mvvm-simplest-possible-mvvm-approach.aspx#comments), which seems to be along the lines of what I'm after. ...
3
11,721,770
07/30/2012 12:38:58
1,561,262
07/29/2012 17:08:35
3
0
How to make report in winforms using c sharp?
i want to filter records according to my value.like i want to select party name , date between from and to. these are user values and according to this report should be generated.can any one help me with code.how to filter records.
c#
ms-access
null
null
null
07/30/2012 12:41:15
not a real question
How to make report in winforms using c sharp? === i want to filter records according to my value.like i want to select party name , date between from and to. these are user values and according to this report should be generated.can any one help me with code.how to filter records.
1
7,413,933
09/14/2011 09:14:39
899,271
07/14/2011 12:20:28
313
0
how do i refactorise the below code using c#
i have two text boxes and one combobox and i am retrieving the data based upon the text entered into the text boxes and combobox selecion ...by using the following method.... private void textboxfillnames() { if (txtlastname.Text != "") { ...
c#
.net
linq
refactoring
null
09/14/2011 09:43:55
not a real question
how do i refactorise the below code using c# === i have two text boxes and one combobox and i am retrieving the data based upon the text entered into the text boxes and combobox selecion ...by using the following method.... private void textboxfillnames() { if (txtlastn...
1
2,585,214
04/06/2010 13:41:20
32,826
10/30/2008 16:40:25
1,315
53
Morphing from an image to a shape in Silverlight 3
I have a requirement to morph from an image (png) to a shape (polygon) in Silverlight 3 as an effect, but of course there is no built in transition or method to do this. At the moment the best I have is fade one out and the other in, but can anyone suggest a decent alternative that may work or look better? Regard...
silverlight-3.0
silverlight
null
null
null
null
open
Morphing from an image to a shape in Silverlight 3 === I have a requirement to morph from an image (png) to a shape (polygon) in Silverlight 3 as an effect, but of course there is no built in transition or method to do this. At the moment the best I have is fade one out and the other in, but can anyone suggest a de...
0
9,511,190
03/01/2012 05:41:19
1,241,857
10/11/2010 06:29:02
1
0
How can i handle split view in android sdk using
how to split the screen into two..and making left screen constant and how to navigate the screen which is on the right side..![the expected result attached to the mail,have a look @ image and can any one let me know the how to approach these kind of requirement.. i already got the split using fragments ...now the prob...
android
null
null
null
null
null
open
How can i handle split view in android sdk using === how to split the screen into two..and making left screen constant and how to navigate the screen which is on the right side..![the expected result attached to the mail,have a look @ image and can any one let me know the how to approach these kind of requirement.. i...
0
7,359,651
09/09/2011 09:32:30
894,701
08/15/2011 09:08:23
13
0
Mac os: move from 1 widget to another in Dashboard (hotkey)
Is there a hotkey to move from 1 widget to another in Dashboard in Mac OS X? As I understand, tab doesn`t work there.
osx
widget
dashboard
null
null
null
open
Mac os: move from 1 widget to another in Dashboard (hotkey) === Is there a hotkey to move from 1 widget to another in Dashboard in Mac OS X? As I understand, tab doesn`t work there.
0
4,635,824
01/08/2011 19:56:11
568,268
01/08/2011 19:25:55
1
0
4.0 framework Request validation will not allow code-behind to htmlencode textboxes
I have a form that I have been getting submissions that have punctuation and special characters that trigger the potentially dangerous Request.Form value error. I have been trying use the httpUtility.htmlencode and Server.htmlencode method to sanitize textboxes and textareas. All my tests do not fire because the bui...
asp.net
vb.net
null
null
null
10/14/2011 12:48:48
too localized
4.0 framework Request validation will not allow code-behind to htmlencode textboxes === I have a form that I have been getting submissions that have punctuation and special characters that trigger the potentially dangerous Request.Form value error. I have been trying use the httpUtility.htmlencode and Server.htmlencod...
3
9,438,197
02/24/2012 21:18:40
464,253
10/01/2010 21:13:13
281
7
how do you upload an attachment to github wiki?
I know how to reference it from wikis but where in github site do I upload the attachment? Thanks a lot!
github
wiki
null
null
null
02/25/2012 02:33:24
off topic
how do you upload an attachment to github wiki? === I know how to reference it from wikis but where in github site do I upload the attachment? Thanks a lot!
2
10,308,419
04/25/2012 02:02:45
553,508
12/24/2010 18:59:54
136
9
Declaring objects of type option in Java
How is it possible to declare an object of type `option` in Java? I was told that the following code would convert a Vector of Strings into a Vector of Option, but `new Option(String)` is not a valid constructor: private <T> Vector<Option> convertToOptions( Vector<T> convert ) { Vector<Option> opt...
java
string
option
null
null
null
open
Declaring objects of type option in Java === How is it possible to declare an object of type `option` in Java? I was told that the following code would convert a Vector of Strings into a Vector of Option, but `new Option(String)` is not a valid constructor: private <T> Vector<Option> convertToOptions( Vector<T>...
0
11,527,504
07/17/2012 17:14:23
1,365,760
04/30/2012 11:55:50
1
0
PHP guestbook error
<?php $sql = mysql_connect("localhost" , "root" , "usbw") or die(mysql_error); mysql_select_db("guestbook" , $sql); if($_SERVER['REQUEST_METHOD'] == 'POST') ( $user = mysql_real_escape_string($_POST['user']); $message = mysql_real_escape_string($_POST['message']); ...
php
parsing
syntax
null
null
07/17/2012 21:42:00
too localized
PHP guestbook error === <?php $sql = mysql_connect("localhost" , "root" , "usbw") or die(mysql_error); mysql_select_db("guestbook" , $sql); if($_SERVER['REQUEST_METHOD'] == 'POST') ( $user = mysql_real_escape_string($_POST['user']); $message = mysql_real_escape_string(...
3
7,233,573
08/29/2011 17:28:53
503,569
11/10/2010 17:42:07
93
1
SenchTouch onItemDisclosure load detailed view problem
I'm trying to get my test project working and have it set out with various viewports js files for each screen. I have now managed to load the data onto the screen with the code below however I am struggling with trying to set-up the onItemDisclosure function so that it switches to a detailed view which shows more infor...
javascript
mvc
sencha-touch
null
null
null
open
SenchTouch onItemDisclosure load detailed view problem === I'm trying to get my test project working and have it set out with various viewports js files for each screen. I have now managed to load the data onto the screen with the code below however I am struggling with trying to set-up the onItemDisclosure function s...
0
11,303,296
07/03/2012 01:19:55
1,445,052
06/08/2012 16:54:51
39
8
File seems to lock up while writing to it in C
I'm trying to write randomly generated names, last names and ages to a file in C++, i'm using turbo C, i have to do it this way, it's for a school project and they require me to do it like this. <br/> The problem is when i'm writing to the file it stops generating names at the 136th iteration, and it stops generatin...
c++
c
homework
file
turbo-c
07/03/2012 06:44:48
too localized
File seems to lock up while writing to it in C === I'm trying to write randomly generated names, last names and ages to a file in C++, i'm using turbo C, i have to do it this way, it's for a school project and they require me to do it like this. <br/> The problem is when i'm writing to the file it stops generating n...
3
6,597,083
07/06/2011 13:20:56
831,649
07/06/2011 13:20:56
1
0
Linq to xml-How to retrieve xml file from column
I have save xml file in mt table having column data type as xml now I want to retrieve that file in xml format,How I can do this?
.net
sql
linq
sql-server-2005
server
07/06/2011 14:23:34
not a real question
Linq to xml-How to retrieve xml file from column === I have save xml file in mt table having column data type as xml now I want to retrieve that file in xml format,How I can do this?
1
3,805,995
09/27/2010 16:54:41
459,739
09/27/2010 16:46:27
1
0
Complicated problem. Need help with regular expression replace.
I'm in the process of updating a program that fixes subtitles. Till now I got away without using regular expressions, but the last problem that has come up might benefit by their use. (I've already solved it without regular expressions, but it's a very unoptimized method that slows my program significantly). TL;...
c#
php
regex
string
null
null
open
Complicated problem. Need help with regular expression replace. === I'm in the process of updating a program that fixes subtitles. Till now I got away without using regular expressions, but the last problem that has come up might benefit by their use. (I've already solved it without regular expressions, but it's a...
0
2,081,113
01/17/2010 13:34:33
116,522
06/03/2009 11:09:03
207
20
jquery date picker split into multiple fields
I have the usual Jquery datepicker working fine. But I want to feed it into a set of selectboxes rather than one textfield. I have had success feeding it into one select field with a specific format but am unsure how to feed all three into different fields with different formats. $(document).ready(function(){ ...
jquery
jquery-ui
datepicker
jquery-datepicker
ruby-on-rails
null
open
jquery date picker split into multiple fields === I have the usual Jquery datepicker working fine. But I want to feed it into a set of selectboxes rather than one textfield. I have had success feeding it into one select field with a specific format but am unsure how to feed all three into different fields with diffe...
0
1,325,434
08/25/2009 00:13:03
86,878
04/03/2009 19:32:44
66
2
Crystal Reports: Suppresing a field conditionaly acording to group name in current page
I have a group named: "Group #1 Name" and as you know when viewing the report at the first page in Group 1 section we see the title of group but this is not appears in next page till we navigate to next group.<br/> Now i want to display the current Group Title navigating by user in the header of page to help user know...
crystal-reports
suppression
suppress
null
null
null
open
Crystal Reports: Suppresing a field conditionaly acording to group name in current page === I have a group named: "Group #1 Name" and as you know when viewing the report at the first page in Group 1 section we see the title of group but this is not appears in next page till we navigate to next group.<br/> Now i want ...
0
367,656
12/15/2008 07:11:18
36,254
11/10/2008 17:33:18
1
0
String extraction.
Currently I am working very basic game using the C++ environment. The game used to be a school project but now that I am done with that programming class, I wanted to expand my skills and put some more flourish on this old assignment. I have already made a lot of changes that I am pleased with. I have centralized al...
c++
string
middle
extraction
extract
null
open
String extraction. === Currently I am working very basic game using the C++ environment. The game used to be a school project but now that I am done with that programming class, I wanted to expand my skills and put some more flourish on this old assignment. I have already made a lot of changes that I am pleased wit...
0
5,387,468
03/22/2011 06:03:50
1,126,761
02/23/2011 06:08:40
24
0
program for windows in c++
i need to develop silverlight application for windows embedded ce 6.0 and for that i need to programming in c++ can you suggest me to give some useful materials to get success
c++
null
null
null
null
03/22/2011 19:38:23
off topic
program for windows in c++ === i need to develop silverlight application for windows embedded ce 6.0 and for that i need to programming in c++ can you suggest me to give some useful materials to get success
2
7,164,427
08/23/2011 16:36:43
616,017
02/14/2011 10:13:30
28
1
nginx rewrite rules to php files open a download dialog box?
I have a nginx server with work with php by fast cgi. when I use a rewrite like this: rewrite "^/tested\.html" /index.html last; everything is ok, and page index.html shown for tested.html, but when my target is a php file like this: rewrite "^/tested\.html" /index.php last; a download dialogbox is ...
php
nginx
rewrite
null
null
08/24/2011 02:09:45
off topic
nginx rewrite rules to php files open a download dialog box? === I have a nginx server with work with php by fast cgi. when I use a rewrite like this: rewrite "^/tested\.html" /index.html last; everything is ok, and page index.html shown for tested.html, but when my target is a php file like this: rew...
2
4,528,272
12/24/2010 20:41:54
244,681
01/06/2010 12:07:18
350
7
Is MVC now the only way to write PHP?
Hey... its XMAS Eve and something is bugging me... yes, I have work on my mind even when I am on holiday. The vast amount of frameworks available for PHP now use MVC. Even ASP.net has its own MVC module. I can see the attraction of MVC, I really can and I use it frequently. The only downside that I can see is that y...
php
mvc
null
null
null
12/25/2010 02:51:17
off topic
Is MVC now the only way to write PHP? === Hey... its XMAS Eve and something is bugging me... yes, I have work on my mind even when I am on holiday. The vast amount of frameworks available for PHP now use MVC. Even ASP.net has its own MVC module. I can see the attraction of MVC, I really can and I use it frequently....
2
4,439,369
12/14/2010 12:55:07
528,696
12/02/2010 23:15:42
61
1
[SQL][MSaccess] Question about ms access query (combining 2 query)
I have this query: SELECT "I1" & "," & "I2" AS Item_set, Round(Sum([T1].Fuzzy_Value)/Count(*),15) AS Support FROM (SELECT * FROM Prune AS t WHERE t.Trans_ID IN (SELECT t1.Trans_ID FROM ( SELECT *FROM Prune WHERE [Nama]="I1") AS t1 ...
sql
query
ms-access
null
null
null
open
[SQL][MSaccess] Question about ms access query (combining 2 query) === I have this query: SELECT "I1" & "," & "I2" AS Item_set, Round(Sum([T1].Fuzzy_Value)/Count(*),15) AS Support FROM (SELECT * FROM Prune AS t WHERE t.Trans_ID IN (SELECT t1.Trans_ID FROM ( ...
0
2,389,234
03/05/2010 19:08:34
132,270
07/02/2009 12:51:32
135
9
rendering pdf on webside ala google documents
In a current project i need to display PDFs in a webpage. Right now we are embedding them with the Adobe PDF Reader but i would rather have something more elegant (the reader does not integrate well, it can not be overlaid with transparent regions, ...). I envision something close google documents, where they displa...
java
pdf
null
null
null
null
open
rendering pdf on webside ala google documents === In a current project i need to display PDFs in a webpage. Right now we are embedding them with the Adobe PDF Reader but i would rather have something more elegant (the reader does not integrate well, it can not be overlaid with transparent regions, ...). I envision ...
0
8,128,140
11/14/2011 21:09:01
1,046,379
11/14/2011 21:04:48
1
0
jquery + html get
I what to know ho to make something like this : I have link `<a href="#" id="123">Link</a>` And when I click on it i whant to get `id=123` with jQuery or somtehing like that. And then add this `id=123` to another div : Like this `<div class='info'>id=123</div>` Can you help me ?
jquery
html
class
null
null
11/14/2011 22:11:54
not a real question
jquery + html get === I what to know ho to make something like this : I have link `<a href="#" id="123">Link</a>` And when I click on it i whant to get `id=123` with jQuery or somtehing like that. And then add this `id=123` to another div : Like this `<div class='info'>id=123</div>` Can you help ...
1
7,561,558
09/26/2011 21:30:38
613,967
07/22/2010 06:45:54
1
1
How Do You Handle Expired Access Tokens for the New OpenGraph Publish Actions Feature?
It looks like, even when you have publish_actions permission, the access_token still expires after a few hours. If the goal of publish_actions is to be able to do things for the user in the background without having to ask for permissions over and over again, how do we renew the token without input from the user? I...
facebook
opengraph
beta
null
null
null
open
How Do You Handle Expired Access Tokens for the New OpenGraph Publish Actions Feature? === It looks like, even when you have publish_actions permission, the access_token still expires after a few hours. If the goal of publish_actions is to be able to do things for the user in the background without having to ask for p...
0
10,128,389
04/12/2012 17:07:59
602,175
02/03/2011 20:12:19
34
1
What's different from using UploadProgress with Lighttpd vs Upload Progress module in Nginx?
I have an app that successfully tracks upload's progress using UploadProgress & Lighttpd, and I'm porting it over to Nginx. After reading the documentation: http://wiki.nginx.org/HttpUploadProgressModule I'm not very clear on wether they work the same way or not. Currently, the process goes like this: 1. I hav...
file-upload
nginx
null
null
null
null
open
What's different from using UploadProgress with Lighttpd vs Upload Progress module in Nginx? === I have an app that successfully tracks upload's progress using UploadProgress & Lighttpd, and I'm porting it over to Nginx. After reading the documentation: http://wiki.nginx.org/HttpUploadProgressModule I'm not very cl...
0
8,976,585
01/23/2012 18:21:04
1,158,801
01/19/2012 15:14:51
3
0
Unable to instantiate activity
as allways, i get a problem, never a solution...LOL! In this oportunity i tray to do a simple activity that get a EditText, a Button and make an intent when i press the button to call to the number in the edittext. The activity start, but throw an exception like this... 01-23 14:41:13.760: E/AndroidRuntime(305...
android
android-layout
android-intent
android-activity
null
null
open
Unable to instantiate activity === as allways, i get a problem, never a solution...LOL! In this oportunity i tray to do a simple activity that get a EditText, a Button and make an intent when i press the button to call to the number in the edittext. The activity start, but throw an exception like this... 01-2...
0
11,736,143
07/31/2012 08:35:27
1,565,031
07/31/2012 07:43:14
1
0
c# Multithreaded min-max algorithm
I have written a single-threaded min-max algorithm for a chess game that works fine. Now I am trying to rewrite it to use all avaliable cpu-cores, but I can not get it to work correctly. My idea is to spawn as many threads as there are cores on the system (in my case 4) and to let the threads add and remove work it...
c#
multithreading
chess
minmax
null
null
open
c# Multithreaded min-max algorithm === I have written a single-threaded min-max algorithm for a chess game that works fine. Now I am trying to rewrite it to use all avaliable cpu-cores, but I can not get it to work correctly. My idea is to spawn as many threads as there are cores on the system (in my case 4) and t...
0
5,763,043
04/23/2011 08:01:01
707,808
04/14/2011 11:03:12
1
0
IndexTank: how to query without a query string, geolocation only
I know how to query IndexTank with a query string, with or without geolocation. But how do you query with no query string and only geolocation? index.addFunction(5, "-miles(d[0], d[1], q[0], q[1])"); results = index.search(Query.forString(queryString) .withScoringFunctio...
java
search
null
null
null
null
open
IndexTank: how to query without a query string, geolocation only === I know how to query IndexTank with a query string, with or without geolocation. But how do you query with no query string and only geolocation? index.addFunction(5, "-miles(d[0], d[1], q[0], q[1])"); results = index.search...
0
10,482,124
05/07/2012 12:30:56
1,030,726
02/14/2010 05:17:51
1
0
can we validate image height and width using paperclip gem
I would like to add validations for the image that uses paerclip gem. can we validate image height and width using paperclip gem Thank You, Uma Mahesh
paperclip-validation
null
null
null
null
null
open
can we validate image height and width using paperclip gem === I would like to add validations for the image that uses paerclip gem. can we validate image height and width using paperclip gem Thank You, Uma Mahesh
0
3,790,419
09/24/2010 19:42:11
245,762
01/07/2010 17:35:15
132
5
Why an Operation System(OS) is called as hardware dependent?
Why we are saying that the OS is purely hardware dependent (other than peripherals)? Can you please give me the exact hardware dependencies in a simple/common OS? Meaning exactly in which are all points the OS is accessing the hardware or depending on the platform? Also is it possible to write a simple OS(using C l...
c
operating-system
hardware
platform
null
09/25/2010 19:05:58
not a real question
Why an Operation System(OS) is called as hardware dependent? === Why we are saying that the OS is purely hardware dependent (other than peripherals)? Can you please give me the exact hardware dependencies in a simple/common OS? Meaning exactly in which are all points the OS is accessing the hardware or depending on t...
1
3,096,096
06/22/2010 18:38:56
373,504
06/22/2010 18:38:56
1
0
python and xml integration
how to i get the output of a python code in an XML file?(URGENT)
python
null
null
null
null
06/24/2010 05:13:41
not a real question
python and xml integration === how to i get the output of a python code in an XML file?(URGENT)
1
11,648,815
07/25/2012 11:35:24
828,261
07/04/2011 14:12:35
1,688
132
Google maps in china "Are they actually blocked"?
Hi guys im working on a site which has a majority of chinese users. The problem is that it has been reported that google maps is not working for our users in china, because it is blocked. I have trawled the net looking for a definitive answer but cant seem to find one, does any one know for sure weather it is blocke...
google-maps
null
null
null
null
07/25/2012 11:53:25
off topic
Google maps in china "Are they actually blocked"? === Hi guys im working on a site which has a majority of chinese users. The problem is that it has been reported that google maps is not working for our users in china, because it is blocked. I have trawled the net looking for a definitive answer but cant seem to fi...
2
11,105,444
06/19/2012 16:38:28
1,070,422
11/29/2011 01:21:27
40
0
unix - run a command as another user
I am a newbie to Unix. I am trying to run a shell script and command as another user. For example: I am logged in as user1 and want to execute a script as user2. I dont want the password prompt and I want it to be auto-entered. I am aware of the public key authentication but I am trying to find if there is somethin...
unix
script
sudo
null
null
06/20/2012 03:00:37
off topic
unix - run a command as another user === I am a newbie to Unix. I am trying to run a shell script and command as another user. For example: I am logged in as user1 and want to execute a script as user2. I dont want the password prompt and I want it to be auto-entered. I am aware of the public key authentication bu...
2
3,807,837
09/27/2010 21:01:19
251,153
01/14/2010 23:18:20
10,163
323
FileNotFoundException trying to load a DLL from managed code
To start off, I'd like to say I'm rather unfamiliar with the Windows linking system. This is my setup: I've got two projects in the same solution. The first is a C++/CLI project we'll call `Foo`. `Foo` is a library project that depends on an external library (the Java Runtime Environment), and thus has the appropria...
.net
dll
dynamic-linking
null
null
null
open
FileNotFoundException trying to load a DLL from managed code === To start off, I'd like to say I'm rather unfamiliar with the Windows linking system. This is my setup: I've got two projects in the same solution. The first is a C++/CLI project we'll call `Foo`. `Foo` is a library project that depends on an external ...
0